Aave.

Пост

Поделитесь своими знаниями.

Aaveator.
Feb 05, 2023
Экспертные Вопросы и Ответы

Supply USDC to Aave contract in order to get aUSDC

hey, I am looking to integrate Aave into my app, I want supply USDC to Aave DeFi contract in order to get aUSDC, can anyone assist me!?

I am using fireblocks-defi-sdk, do I need to implement approve method from ERC-20 contract?

  • Aave Protocol
  • aTokens
0
1
Поделиться
Комментарии
.

Ответы

1
Aaveator.
Feb 16 2023, 11:00

You can supply USDC into to Aave and receive the equivalent aUSDC by calling the supply() function in the Pool contract. You need to already have USDC in your wallet. The documentation shows you will need e.g. lendingPoolContract.supply(usdcAddress, usdcAmount, addressToReceiveATokens, referralCode)

To call supply(), the Aave pool contract should be able to move your tokens on your behalf, otherwise the contract can't supply your tokens. So you must approve() (or permit for Aave v3) the contract to supply your tokens first. Approve() is a function from any ERC20 token so you can use that.

0
Комментарии
.

Знаете ответ?

Пожалуйста, войдите в систему и поделитесь им.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Посты230Ответы
Sui.X.Peera.

Заработай свою долю из 1000 Sui

Зарабатывай очки репутации и получай награды за помощь в развитии сообщества Sui.