mrdavey / aavecodeexamples Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Hi, I'm playing around with this example and have successfully managed to run deposit
and borrow
, but I'm getting an error when running Repay
.
Here is what I get:
Error repaying in the LendingPool contract: Transaction has been reverted by the EVM:
{
"blockHash": "0xd706b46189e7b397a03d181a24b249d36827bfbd524cf482870b0c7f052c991d",
"blockNumber": 20154744,
"contractAddress": null,
"cumulativeGasUsed": 327157,
"from": "0x9f17837e809f6a74048f88fba193deb0be980d47",
"gasUsed": 207360,
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"root": null,
"status": false,
"to": "0x580d4fdc4bf8f9b5ae2fb9225d584fed4ad5375c",
"transactionHash": "0x037cd7b40c4a632cf99964b7c69b5a5448269c0f3617c27bb9a4c45b477a921d",
"transactionIndex": 1,
"events": {}
}
I'm using Kovan
, replacing lpAddressProviderAddress
and daiAddress
variables with the following values respectively:
Apart from that, I edited the amounts (1000 by default) to the following ones:
Even if I automatically repay with -1
I get the same error.
Am I doing something wrong? I haven't done any other modifications apart from the mentioned ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.