Questions tagged [aave]

The tag has no usage guidance.

46 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
4k 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 ...
Conviley's user avatar
  • 390
3 votes
1 answer
31 views

What are the countermeasures for losses in decentralized finance platforms like Aave?

I am a newbie in the blockchain/Web3 space and trying to understand the AAVE protocol. Suppose a borrower deposits 1 ETH whose value is 500 DAI Tokens(500$) as collateral to borrow 100 DAI Tokens(100$)...
Hrithik Raj's user avatar
3 votes
0 answers
45 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 ...
loin.liao's user avatar
2 votes
0 answers
235 views

Pros and cons of interest bearing elastic supply (rebase) tokens

Single asset vaults usually choose from 2 types of tokens that represent user shares. Tokens pegged 1:1 to underlying assets employing the rebase architecture. When underlying asset volume grows then ...
origaminal's user avatar
2 votes
0 answers
425 views

Simple Contract to supply eth to aave

I'm trying programatically deposit using into Aave V2 Contract Aave's Code Examples // SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 < 0.8.7; import { IERC20, ILendingPool, ...
johnny 5's user avatar
  • 292
2 votes
3 answers
286 views

How to calculate the value of supply apy seen on the aave frontend?

I tried to implement the following aave docs in order to calculate the deposit apy that you can see on the market page in Aave defi protocol. https://docs.aave.com/developers/v/2.0/guides/apy-and-apr ...
Alessandro Morandi's user avatar
1 vote
0 answers
63 views

How can I make a flashloan bot

How Can I make a flash loan bot which can operate on Aave, uniswap, sushiswap etc? I know a furucombo, but this is too complicated for me. My Idea is the bot will keep an eye on certain tokens & ...
Saikat Karmakar's user avatar
1 vote
1 answer
86 views

AAVE FlashLoanV3 alowance return 0

I'm trying to make a simple flashloan contract and export it in to goerli testnet. Everything start ok, but when I call requestFlashLoan() it become error, like this: FLashLoanArbitrage.sol // SPDX-...
Linh lê's user avatar
1 vote
1 answer
168 views

aave accounts with health factor <1

Did a quick check in subgraph, and found ids with <1 health factor. Should not they be liquidated instantly? like 0xc49b59301be4d9660961f62fbeea0e234e3a53b5, ...
Castle_inthe_Air's user avatar
1 vote
0 answers
113 views

How can I deploy aave protocol locally or in testnet

Aave v2 mumbai testnet faucet is broken, So I was thinking to deploy the aave protocol locally or in any testnet to mint new tokens. Aave protocol is built on hardhat and I am new on hardhat. can't ...
Yeasin Rahaman's user avatar
1 vote
0 answers
204 views

Trouble with Solidity Compiler Version when combining Aave and Openzeppelin in Foundry

I'm trying to follow this tutorial by Patrick Collins on Flashloans but in Foundry: https://www.youtube.com/watch?v=Aw7yvGFtOvI&t=328s When in try to forge build I get the following error: : src\...
banyan's user avatar
  • 21
1 vote
1 answer
201 views

How To deposit erc20 tokens into AAVE v3 protocol using solidity and remix?

I was trying to deposit some funds from my metamask wallet into AAVE V3 protocol using solidity and remix? plz anyone post the code
sourav menon's user avatar
1 vote
0 answers
342 views

Depositing Weth ERC20 from Brownie into Aave Pool in contract

I am tying to do a simple deposit into an Aave V2 pool with Python Brownie and Solidity on a mainnet-fork but my transaction keeps getting reverted and I dont know why. In brownie, I call my function ...
Pysnek313's user avatar
1 vote
1 answer
656 views

Issue implementing and testing aave V3 flash loan

I'm trying to implement a flash loan using aave-v3 flash loan contracts. and when testing using hardhat I get this error: Error: Transaction reverted: function returned an unexpected amount of data ...
AJERMOUNE's user avatar
1 vote
0 answers
54 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/...
Mohsin Laeeque's user avatar
1 vote
0 answers
1k 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 ...
CES's user avatar
  • 11
1 vote
0 answers
474 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....
Wei Pan's user avatar
  • 41
1 vote
0 answers
57 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 ...
Marie90's user avatar
  • 23
0 votes
0 answers
4 views

Not able to fetch correct APY in aave mumbai

I am following this doc - APY and APR - Developers to fetch lending and borrowing rates in mumbai for usdc but they doesn’t seem to be correct and are different from aave staging UI, how can I solve ...
Varun Sharma's user avatar
0 votes
0 answers
4 views

Data Fetching from an Aave subgraph

Hi guys I am writing a dApp which deals with liquidations flash loans etc, The 1st step of development is to receive the user addresses who have borrowed more than zero from 'The Graph' I use hardhat....
NeoRusI's user avatar
  • 11
0 votes
0 answers
15 views

aave staking I cannot withdraw usdc tokens earned as rewards in my smart contract

function stake(address _asset, uint256 _amount) public { require(_amount > 0, "Amount must be greater than 0"); IERC20(_asset).safeTransferFrom(msg.sender, address(this), _amount);...
Emin Aksar's user avatar
0 votes
0 answers
14 views

AAVE:COOLDOWN_SECONDS and UNSTAKE_WINDOW

AAVE V1 's redeem() function requires us to wait for COOLDOWN_SECONDS and withdraw money in UNSTAKE_WINDOW. /** * @dev Redeems staked tokens, and stop earning rewards * @param to Address to ...
LEVI_104's user avatar
0 votes
0 answers
26 views

Aave's V3 Supply APY

I'm working on a lending protocol that partially based on Aave's V3 interest rate. I'm trying to understand the Supply APY. I only have one rate, don't have a stable and variable rate. I understand ...
littlethor's user avatar
0 votes
2 answers
105 views

Calling Aave Lending Pool V2 "Borrow" function returns "reverted with reason string 59"

My smart contract is trying to use stETH as collateral to borrow 250 WETH on the Aave Lending Pool V2, but the borrow function reverts with code 59: BORROW_ALLOWANCE_NOT_ENOUGH = '59'; // User borrows ...
MasterShake20's user avatar
0 votes
0 answers
62 views

How did AAVE dapp calculate the “maximum available withdraw” value (v2)?

I can not find the dapp of aave manage to find the exact amount that I can withdraw. I have 5 "aUSDC" but when I go on dapp, I can only withdraw 4.3. I know it's due to the debt of another ...
Frank Waldron's user avatar
0 votes
0 answers
72 views

ValueError: Gas estimation failed: 'execution reverted'. This transaction will likely revert

Im building an DEFIAPP (AAVE)V3 I do have enough eth function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external Added settings: gas_limit: "100000000000&...
Salma Sameer's user avatar
0 votes
0 answers
75 views

Is it possible to use flashloan as liquidity provider?

I am reading about flash loans where I come over a use case of flash loan as providing liquidity to DEXs. I am bit confused here. How we can earn profits by just providing liquidity to DEXs since we ...
Rishabh Raghwendra's user avatar
0 votes
1 answer
75 views

Credit delegation in Aave not working

I have a question on Aave Credit Delegation. I have gone through the documentation and based on that tried to set it up so that an address that deposits the collateral can delegate the borrowing power ...
adeelmahmood's user avatar
0 votes
0 answers
113 views

I am wondering what address do you use to call flashloan?

I am using this address to call flashloan 0x65aFADD39029741B3b8f0756952C74678c9cEC93 but I get Gas estimation failed error please let me know if you use another address and successfully call the ...
shawn t's user avatar
0 votes
0 answers
23 views

How to increase supplyCap on aave v3

I am working with aave-v3 on testnet deployed from the @aave-v3-deply deployment repo. I am unable to increase the supplyCap on the pool via the poolConfigurator.I have all the permission on the ...
phydy's user avatar
  • 146
0 votes
1 answer
17 views

liquidate undercollateralized user without third party intervention

Im building a simple lending-borrowing protocol, using yield-generating and debt tokenization pattern, and for users liquidation when its position is undercollateralized, i want to liquidate part of ...
noro meb's user avatar
  • 328
0 votes
1 answer
150 views

How to get user data of Aave pool position inside of Solidity smart contract?

I'm developing a smart contract, which deposits into Aave v3 stablecoin pools. For withdrawal, you have to specify the underlying token address of the a token (e..g usdc address, dai address, ...) and ...
ethadvocate123's user avatar
0 votes
1 answer
374 views

revert SafeERC20: low-level call failed

SIO2 is aave v2 foked version on Astar chain. I want to execute flash loan on it and have the following code: function myFlashLoanCall() public returns (bool){ address receiverAddress = ...
Rishabh Raghwendra's user avatar
0 votes
0 answers
157 views

Use AAVE contract in my own contract. cannot estimate gas; transaction may fail or may require manual gas limit

I am tring to use AAVE contract in my own contract. but I have a question on this mysterious error. Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://...
Ethanabc's user avatar
  • 101
0 votes
2 answers
194 views

Deposit in AAVE v2 contract from HardHat

I'm trying to deposit into AAVE v2 using hardhat. My code is the following: const hre = require('hardhat') ... const contractAddress = '0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9' const contract = ...
Jacob's user avatar
  • 155
0 votes
1 answer
404 views

How to implement a contract for AAVE V3 "Supply, borrow, withdraw, loan etc" functsions

I am trying to write a contract imported aave-v3 which includes the some aave v3 functions such as supply, borrow, repay etc. I will then make this contract accessible only to its owner. For example: /...
Turgay ÇABALAK's user avatar
0 votes
1 answer
197 views

Run aave test suite locally on ganache [Change network hardhat to ganache]

This is aave protocol v2: https://github.com/aave/protocol-v2 They have a built-in test suite. Running npm run test runs all the tests cases properly. But this runs on hardhat node. I need to change ...
Yeasin Rahaman's user avatar
0 votes
1 answer
127 views

Liquidity Pool Addresses

I am looking to run some analytics on different liquidity pools in Curve, Uniswap and AAVE and for that I need their addresses. Is there any way I can get the list of pools and their contract ...
ClaudeTi's user avatar
0 votes
1 answer
73 views

Unable to deposit into AAVEv3 via web3

I'm attempting to deposit WMATIC on the Polygon chain into AAVEv3, but I'm getting a revert. I'm running a forked version of Polygon mainnet locally with ganache. I'm using the first account provided ...
Unfreakingbelieveable117's user avatar
0 votes
1 answer
111 views

Pool.borrow ValueError: Gas estimation failed: 'execution reverted'

I'm trying to borrow some DAI on the rinkeby testnet but borrow() transaction fails, even if I have collateral in the Pool contract. I'm trying to borrow 50% of the borrowable. Any idea why this could ...
Andrea's user avatar
  • 31
0 votes
0 answers
229 views

Unable to withdraw from Aave using contracts

I am using Polygon mainnet. Below are the steps I am trying to follow. address private constant _lendingPoolAddressesProvider = 0xd05e3E715d945B59290df0ae8eF85c1BdB684744; address private constant ...
Palakonda Shiva Prasad's user avatar
0 votes
2 answers
624 views

How to deposit ETH in AAVE v3 testnet WETHgateway.depositETH()

My goal: AAVE v3, deposit ETH, and borrow DAI I played around with AAVE in lesson 10 of the Solidity, Blockchain, and Smart Contract Course, and as long as I stick to the course and use the v2 code ...
Black Pepperz's user avatar
0 votes
3 answers
423 views

AttributeError - 'InterfaceContainer' object has no attribute

from brownie import config, network, interface from scripts.helpful_scripts import get_account from scripts.get_weth import get_weth def main(): account = get_account() erc20_address = config[...
PinkyZane's user avatar
0 votes
0 answers
129 views

Error depositing matic to Aave WEHTGateway in polygon mumbai test net

I'm testing out Patric Collins youtube video and trying to test it in polygon testnet Mumbai but I when I try to deposit eth/matic to Aave Wethgateway I face this error: File "C:\Users\...
Ardeshir Gholami's user avatar
0 votes
0 answers
266 views

Pending transactions remain pending forever?

I have a pending transaction stucked for more than 24 hours. I have receive advice on how to cancel it already so please do not answer me that advice again. Because it hasn't worked for me. Now my ...
Moisés Briseño Estrello's user avatar
0 votes
1 answer
254 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" ...
pygeek's user avatar
  • 131