Commit Graph

1035 Commits

Author SHA1 Message Date
Gerardo Nardelli
50e5ea907b Add first draft of swapAndRepay without using flash loans 2020-11-24 12:11:13 -03:00
Gerardo Nardelli
43d05c2bdf Refactor repayAdapter to flash loan the debt asset instead of the collateral 2020-11-20 15:53:50 -03:00
Gerardo Nardelli
b48b50208a Support using all the collateral for a debt repay 2020-11-20 09:06:28 -03:00
Gerardo Nardelli
8a303c6195 Refactor repayMode in repayAdapter 2020-11-19 16:39:00 -03:00
Gerardo Nardelli
9478381992 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	test/helpers/make-suite.ts
2020-11-19 09:32:52 -03:00
The-3D
56d25e81cb Merge branch 'fix/152-borrow-comment' into 'master'
Fixed innacuracy on borrow() comments.

Closes #152

See merge request aave-tech/protocol-v2!172
2020-11-19 10:49:56 +00:00
eboado
94ce7c649f - Fixed innacuracy on borrow() comments. 2020-11-19 10:46:10 +01:00
Ernesto Boado
5ae277841f Merge branch '151-review-aave-reserves-and-oracles-config' into 'master'
Review Aave reserves config, add permit domain test

Closes #151

See merge request aave-tech/protocol-v2!171
2020-11-19 09:22:30 +00:00
David Racero
3e005b4aaa Fix CI ethereumjs 2020-11-18 19:22:30 +01:00
David Racero
53d92ccfe4 Added permit domain check test. Update typechain and typescript to support new ethers 5 generated typings. Updated ethers to support _TypedDataEncoder for domain hash. 2020-11-18 19:18:02 +01:00
David Racero
61b935ce41 Fixes dev tasks 2020-11-18 10:35:42 +01:00
David Racero
edac705301 Check Reserves and Oracles config. Removed unneded config related with old uniswap v1. 2020-11-18 10:33:44 +01:00
Gerardo Nardelli
2e70cc6288 remove .only in tests 2020-11-17 13:31:05 -03:00
Gerardo Nardelli
092f9c983b Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-getters.ts
2020-11-17 13:21:41 -03:00
Ernesto Boado
200c02e081 Merge branch '140-setup-mainnet-fork-simulation-environment-based-on-tenderly' into 'master'
Add Mainnet fork, deployment check-list, add Tenderly integration

Closes #140

See merge request aave-tech/protocol-v2!160
2020-11-17 11:58:01 +00:00
David Racero
12d17179d6 Renamed ChainlinkProxyPriceProvider to AaveOracle 2020-11-17 10:24:24 +01:00
David Racero
f33324a09c Merge branch '140-setup-mainnet-fork-simulation-environment-based-on-tenderly' of gitlab.com:aave-tech/protocol-v2 into 140-setup-mainnet-fork-simulation-environment-based-on-tenderly 2020-11-17 09:34:22 +01:00
David Racero
b275fedfe8 Remove Uniswap V1 config and scripts. Renamed config to markets. 2020-11-17 09:33:45 +01:00
David Racero
e09e660c85 Update README.md 2020-11-17 07:18:10 +00:00
David Racero
27365697ac Added mainnet check list. Remove deployed contracts. Update README.md 2020-11-16 19:22:22 +01:00
David Racero
0d40682054 Added initial README. Digging into Tenderly. Added initial mainnet fork with buidler. 2020-11-16 16:08:07 +01:00
David Racero
d0ea8d2e32 Added buidler mainnent fork 2020-11-16 11:09:23 +01:00
David Racero
84053c7b1d Added latest update from Tenderly 2020-11-16 10:19:14 +01:00
Ernesto Boado
d9a66d3167 Merge branch 'fix/145-2' into 'master'
Resolve "Improve input parameters validation on LendingPoolConfigurator setters"

Closes #145

See merge request aave-tech/protocol-v2!170
2020-11-13 16:00:36 +00:00
Gerardo Nardelli
d0d0e869d0 Fix flash loan fee usage in _getAmountsIn 2020-11-13 12:30:14 -03:00
Gerardo Nardelli
101c775789 Avoid param override in repay adapter 2020-11-13 12:28:57 -03:00
Gerardo Nardelli
4c693d1947 Update amountToSwap calc in liquidity swap adapter 2020-11-13 12:27:18 -03:00
The3D
b66253bfe9 Removed separate setters 2020-11-13 15:48:38 +01:00
David Racero
d2739e3a9c Add the Tenderly provider at set-bre task 2020-11-12 14:43:14 +01:00
David Racero
588a0c8da0 Add provider. Add transaction link to task. 2020-11-12 14:41:08 +01:00
The-3D
cfc002dcd1 Merge branch 'fix/147-148-uint128max' into 'master'
- Changed `1 << 128` to `type(uint128).max`

Closes #148 and #147

See merge request aave-tech/protocol-v2!169
2020-11-12 13:38:19 +00:00
David Racero
d1c6943cd3 Initial implementation of Tenderly plugin 2020-11-12 14:12:26 +01:00
eboado
f32ac702ec - Refactoring on some Errors 2020-11-12 13:54:23 +01:00
eboado
693576f853 - Replaced hardcoded error messages on ReserveLogic. 2020-11-12 12:50:35 +01:00
eboado
0f086a8a27 - Changed 1 << 128 to type(uint128).max 2020-11-12 10:29:00 +01:00
The-3D
00571bced7 Merge branch 'fix/146-reordering' into 'master'
- Reorder on LiquidationCallLocalVars for better packing.

Closes #146

See merge request aave-tech/protocol-v2!168
2020-11-12 09:26:46 +00:00
eboado
982fb46336 - Reorder on LiquidationCallLocalVars for better packing. 2020-11-12 10:16:10 +01:00
The-3D
4fb10f8b10 Merge branch 'fix/144-remove-public' into 'master'
- Changed CONFIGURATOR_REVISION visibility to internal

Closes #144

See merge request aave-tech/protocol-v2!167
2020-11-12 08:52:52 +00:00
eboado
996c16237c - Changed CONFIGURATOR_REVISION visibility to internal 2020-11-12 09:48:03 +01:00
David Racero
23c5d9af29 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 140-setup-mainnet-fork-simulation-environment-based-on-tenderly 2020-11-12 09:11:24 +01:00
David Racero
1bfab49557 Initial setup. Add Alchemy key 2020-11-12 09:11:17 +01:00
The-3D
8ae705a769 Merge branch 'fix/usdt-borrow' into 'master'
Enable USDT for borrowing

See merge request aave-tech/protocol-v2!166
2020-11-11 17:16:46 +00:00
David Racero
895b6b26f4 Enable USDT for borrowing 2020-11-11 18:12:05 +01:00
The-3D
cdfd16b626 Merge branch 'fix/143-remove-receive' into 'master'
- Removed not needed receive() on LendingPool

Closes #143

See merge request aave-tech/protocol-v2!164
2020-11-11 15:08:19 +00:00
eboado
82268e6a5e - Removed not needed receive() on LendingPool 2020-11-11 16:05:44 +01:00
The-3D
c86f6d25d9 Merge branch 'fix-borrow-rep-susd' into 'master'
Allow sUSD and REP to be borrowed

See merge request aave-tech/protocol-v2!163
2020-11-11 15:03:04 +00:00
David Racero
0ae87413ba Allow sUSD and REP to be borrowed 2020-11-11 16:00:12 +01:00
Ernesto Boado
9fdd9f11da Merge branch 'fix/150' into 'master'
Resolve "Fix calculation on burning of stableDebt"

Closes #150

See merge request aave-tech/protocol-v2!161
2020-11-11 14:58:07 +00:00
The-3D
1ea047a939 Merge branch 'fix/142-liquidationCall-require' into 'master'
- Changed to require on result on liquidationCall()

Closes #142

See merge request aave-tech/protocol-v2!162
2020-11-11 14:58:03 +00:00
The3D
81c0fbcb02 Fixes stable borrow debt 2020-11-11 15:54:08 +01:00