fifikobayashi / aggregated-flashloan Goto Github PK
View Code? Open in Web Editor NEWTruffle project which uses the Kollateral protocol to aggregate flash liquidity from both DyDx and Aave within the same transaction.
Truffle project which uses the Kollateral protocol to aggregate flash liquidity from both DyDx and Aave within the same transaction.
repay(); // ***Step 2: Repay the aggregated flash loan + above fees
/* Remember to factor in:
+ 6bps in Kollateral aggregation fee
+ 9bps in native Aave flash loan fee
+ 2 Wei in native DyDx floan loan fee
*/
it seems the repay function would need to know how the loan was routed - ie the fraction of tokenAmount sent to aave or dydx? Other question what happens if we repay too much?
someone on reddit wanted to know why they couldn't npm install
something
it's because you didn't put package.json
into the repo (though package-lock
is there)
I don't really know what the problem is....
But i get the same error everytime
`C:\Users\o\Desktop\Aggregated-Flashloan>truffle migrate --network ropsten --reset
Everything is up to date, there is nothing to compile.
Network name: 'ropsten-fork'
Network id: 3
Block gas limit: 8000029 (0x7a121d)
block number: 8992950
block timestamp: 1604328692
account: 0x3865FE951c10791a1A04AeC88d1063B158F75b48
balance: 2.547709980852136291
gas used: 755447 (0xb86f7)
gas price: 2 gwei
value sent: 0 ETH
total cost: 0.001510894 ETH
RuntimeError: VM Exception while processing transaction: revert This function is restricted to the contract's owner
at Migration._deploy (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:97:1)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Migration._load (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:55:1)
at Migration.run (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:171:1)
at Object.runMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
at Object.runFrom (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
at Object.runAll (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:114:1)
at Object.run (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:79:1)
at runMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:269:1)
at setupDryRunEnvironmentThenRunMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:257:1)
at C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:220:1
Truffle v5.1.49 (core: 5.1.49)
Node v12.19.0`
@fifikobayashi
Hello,
I saw your repositories and very interested.
Do you mind to talk with me some topics
Thanks
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.