-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sepolia v3 integration #610
Comments
Hello @nikitashaban11 Thank you for reaching to Our Github. Customer service may take some time to respond due to a large number of requests. We believe your case will be resolved as soon as possible. Kindly visit the HERE TO CONTACT OUR LIVE SUPPORT DEV for instant support response |
Bug Report
Unable to use sepolia testnet
Package name / version
Description
I am trying to use aavev3 protocol. With mainnet everything works ok, but with sepolia I have an error.
`import { ethers } from 'ethers';
import {
UiPoolDataProvider,
UiIncentiveDataProvider,
ChainId,
} from '@aave/contract-helpers';
import * as markets from '@bgd-labs/aave-address-book';
console.log(markets.AaveV3Sepolia.UI_POOL_DATA_PROVIDER);
const TESTNET = 'https://sepolia.infura.io/v3/key';
const provider = new ethers.providers.JsonRpcProvider(TESTNET);
const poolDataProviderContract = new UiPoolDataProvider({
uiPoolDataProviderAddress: markets.AaveV3Sepolia.UI_POOL_DATA_PROVIDER,
provider,
chainId: ChainId.sepolia,
});
const incentiveDataProviderContract = new UiIncentiveDataProvider({
uiIncentiveDataProviderAddress:
markets.AaveV3Ethereum.UI_INCENTIVE_DATA_PROVIDER,
provider,
chainId: ChainId.sepolia,
});
export async function fetchContractData(userAccount: string) {
const reserves = await poolDataProviderContract.getReservesHumanized({
lendingPoolAddressProvider: markets.AaveV3Sepolia.POOL_ADDRESSES_PROVIDER,
});
const userReserves = await poolDataProviderContract.getUserReservesHumanized({
lendingPoolAddressProvider: markets.AaveV3Sepolia.POOL_ADDRESSES_PROVIDER,
user: userAccount,
});
const reserveIncentives =
await incentiveDataProviderContract.getReservesIncentivesDataHumanized({
lendingPoolAddressProvider: markets.AaveV3Sepolia.POOL_ADDRESSES_PROVIDER,
});
const userIncentives =
await incentiveDataProviderContract.getUserReservesIncentivesDataHumanized({
lendingPoolAddressProvider: markets.AaveV3Sepolia.POOL_ADDRESSES_PROVIDER,
user: userAccount,
});
console.log({ reserves, userReserves, reserveIncentives, userIncentives });
return { reserves, userReserves, reserveIncentives, userIncentives };
}
`
In the end I have such error:
which goes from
Steps to reproduce
Just to make a request
Expected behavior
to be able to connect to sepolia
Environment
Additional context / screenshots
The text was updated successfully, but these errors were encountered: