Questions tagged [aave]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views
+100

Simple Contract to supply eth to aave

I'm working on a simple contract which will supply eth (and other tokens to aave). // SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 < 0.8.7; import "@openzeppelin/contracts/access/...
0
votes
1answer
16 views

How does Aavegotchi attach wearable NFTs to gotchi NFTs?

Aavegotchi (and presumably many other NFT games) have different types of NFTs, some of which can be attached to others. For example: An Aavegotchi ghost, or gotchi, is an NFT with attributes that ...
0
votes
0answers
8 views

Cannot import Aave in remix

I tried to load aave in remix by following the below code pragma solidity ^0.6.6; import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/FlashLoanReceiverBase.sol"; import &...
0
votes
0answers
12 views

How do I claim rewards on polygon aave with smart contract?

What is the function to claim rewards on polygon aave? I can't seem to find it in its docs. Thanks!
0
votes
1answer
32 views

Aave deposit function on polygon says execution reverted

I have here a contract where I can deposit dai into the aave lending pool. I am able to deposit it, but unable to withdraw. Here is the contract: // dai ERC20 public TOKEN = ERC20(...
1
vote
1answer
30 views

Failing to borrow from Aave's Lending Pool

I'm trying to borrow USDC from Aave v2's lending pool through an interface, but I can't manage to do it: My contract: //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import './interfaces/...
0
votes
1answer
77 views

How can I acquire some ERC20 tokens to test AAVE on mumbai testnet?

I need to acquire some DAI or other assets which are supported by AAVE on Mumbai testnet to test my smart contract, but it seems that the AAVE faucet on their site is broken and does not work! (I ...
0
votes
0answers
69 views

Flashloan error `reverted with reason string 'SafeERC20: low-level call failed'`

I'm attempting to execute a flashloan on a forked mainnet within hardhat and am getting Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed'....
0
votes
1answer
10 views

Aave Flashloan `reverted with reason '73'`

I'm getting an error when attempting to execute an Aave V2 Flashloan within a Hardhat-mocha test while connected to a fork of the Kovan network. It's unclear to me what revert reason "73" ...
1
vote
1answer
74 views

How does flash loan lender know you are not able to pay it back?

Basically I am wondering how does it know when the loan is not paid back. I understand this is easy to check but how can it revert the transaction? For example let's say I borrow 1M USDT, and then I ...
3
votes
0answers
15 views

Why borrow DAI from compound has lower rate than borrow USDT?

As shown in the figure, borrowing Tether from compound have 10.73% APY, while borrow DAI from compound only have 4.64%. However, we can exchange DAI or USDC to Tether in any exchange very easily, so ...
1
vote
0answers
19 views

AAVE Protocol v1 issue on reserve addresses with compound ctoken addresses

https://kovan.etherscan.io/tx/0xa7f5e857d1a9ecb4aca0714b24a70ca0942cc1a656c8e09b6d01bab9af4ec9e5 I am trying to make a transaction from DSProxy (Smart Wallet) on a contract https://kovan.etherscan.io/...
0
votes
1answer
140 views

aAAVE (Atoken) accidently transferred from Metamask wallet to exchange AAVE wallet - HELP PLEASE! [closed]

Really hoping someone here can help. I have AAVE being used as collateral on AAVEV2 as I borrowed some USDC at very low LTV. I use metamask to connect to AAVE and in my wallet you can see aAAVE (...
1
vote
1answer
215 views

Is there any version of AAVE protocol deployed on polygon/matic testnet?

As AAVE documentation suggests, there is a deployed version of the protocol on matic/polygon mainnet. However, it does not make any mention of those smart contracts on Mumbai testnet which I need to ...
0
votes
0answers
13 views

Is it possible to derive multiple public addresses for a smart contract to receive ERC-20 tokens?

I have a smart contract that deposits user's fund in the AAVE lending pool on behalf of users: lendingPool.deposit(stableCoinAddress, amount, address(this), 0) Users can deposit at different times ...
2
votes
1answer
26 views

Calculating AAVE intereset rate belonging to different users that transferred into a smart contract

I have a smart contract that accepts user funds and adds them to an AAVE lending pool (DAI for example). Something like this: lendingPool.deposit(stableCoinAddress, amount, address(this), 0); As you ...
0
votes
1answer
79 views

Getting current user balance of an aToken for a specific asset in AAVE v2 protocol

As AAVE protocol V2 documentation says: aTokens are interest-bearing tokens that are minted and burned upon deposit and withdraw. The aTokens' value is pegged to the value of the corresponding ...
3
votes
1answer
266 views

Double Flash Loan

Looking into Flash Loans, is it possible to take out TWO at once (aave/dydx/uniswap)? How would you go about doing this? Here is what I'm thinking of, but it seems too complicated: Contract 1 takes a ...
1
vote
0answers
584 views

Does the gas limit for AAVE transactions need to be so high?

There are two parts to the fee you pay for an Ethereum transaction - gwei and gas limit. Gwei is determined by how competitive (ie, congested) the Ethereum network is. As most people are aware, the ...
1
vote
0answers
109 views

Cant receive wETH to my contract after swap on uniswap

I write a simple contract to do a flash loan from aave and interact with uniswap in it. I found out that no wETH is sent to my contract after swaping on uniswap. Transcations are here: https://kovan....
1
vote
0answers
23 views

Presign transaction to later publish with aave

Is it possible to have pre-signed tx that I could publish to close a position with aave. Let's imagine I have 0.1 wbtc deposited with aave and I borrow 1000 usdt. I can close my position from the ...
2
votes
1answer
298 views

why aave total supply not equal to circulation supply?

I'm new to the blockchain world. I'm trying hard to understand how tokens are generated and I learned that the tokens are not minable, unlike bitcoin or eth coins. also learned that these tokens only ...
0
votes
0answers
66 views

Transferring aToken(aDAI) in my truffle tests reverts with unspecific error

I'm having issues with setting up a truffle test to transfer aTokens (aDAI) to my contract. I'm using Aave v2 and running ganache with a fork from mainnnet. This is what I did so far: 1- Started a ...
5
votes
1answer
732 views

Explain “griefing” attack on Aave flash loan

Aave doc about flash loan warns to never store funds inside a receiver contract as it can be exposed to "griefing" attack. So my questions are Can you give an example of this attack? How ...
3
votes
0answers
1k views

Contract call: data out of bounds

I'm working on a nextjs/react project in which i want to fetch the health factor of an address on AAVE. This can be done by calling getUserAcountData(address) on the lending pool contract. I can ...