Commit Graph

395 Commits

Author SHA1 Message Date
Andrey Ko
a32d1ce404 Merge branch 'feat/uniswap-adapter-flashloan' into '178-add-uniswap-adapters'
Add Uniswap adapter for liquidity swap and repay with collateral using flashloan

See merge request aave-tech/protocol-v2!106
2020-11-30 10:21:46 +00:00
The3D
c9875f0a8f Handled reserveFactor in the scenario tests 2020-11-28 13:28:50 +01:00
The3D
7892587f1b Updated migration scripts to add the reserve factor configuration 2020-11-28 12:54:54 +01:00
The3D
bfa52fb3a8 Fixed tests 2020-11-27 18:22:23 +01:00
The3D
8cff75f7e3 Migration scripts updated 2020-11-27 16:40:00 +01:00
The-3D
b7bae0cb67 Merge branch 'feat/166-market-id' into 'master'
- Added marketId and setter on LendingPoolAddressesProvider

Closes #166

See merge request aave-tech/protocol-v2!189
2020-11-26 16:13:04 +00:00
eboado
3d6150a729 - Added test for onlyOwner on setMarketId() 2020-11-26 17:08:09 +01:00
The-3D
f6a33495e2 Merge branch 'fix/167-usage-collateral-liquidation' into 'master'
- Added set of usage as collateral to true on liquidator receiving aToken.

Closes #167

See merge request aave-tech/protocol-v2!193
2020-11-26 15:49:35 +00:00
eboado
3f070d67ec - Added set of usage as collateral to true on liquidator receiving aToken. 2020-11-26 16:44:32 +01:00
Gerardo Nardelli
b41ccf7441 Add repay with same asset unit test 2020-11-26 12:42:42 -03:00
The3D
34264243be Merge branch 'master' into fix/159 2020-11-26 16:18:33 +01:00
David Racero
43712d8a2b Support marketId argument 2020-11-26 16:11:40 +01:00
Gerardo Nardelli
bc969d926e Add swapAndRepay unit tests 2020-11-25 14:55:46 -03:00
Gerardo Nardelli
71ea58f758 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	test/__setup.spec.ts
2020-11-25 10:46:01 -03:00
Gerardo Nardelli
a496be8833 Refactor to avoid leftovers on _swapAndRepay with flash loan 2020-11-25 10:44:50 -03:00
The3D
584a567635 Updated flashloan updateInterestRates 2020-11-23 18:44:13 +01:00
eboado
e2d1a274bc Merge branch 'master' into feat/153-improve-docs 2020-11-23 15:56:55 +01:00
eboado
0bca8c6519 Merge branch 'master' into feat/153-improve-docs 2020-11-23 11:15:31 +01: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
David Racero
92168f500b Fixes missing param at deployDefaultReserveInterestRateStrategy. Update WalletBalanceProvider to add provider argument. Minor fixes migration script. 2020-11-20 11:32:17 +01:00
The3D
8aa46e9c4f Fixes tests 2020-11-19 19:24:41 +01:00
eboado
a5f9332234 - Fixed comments on LendingPoolAddressesProviderRegistry and removed useless getter. 2020-11-19 14:21:36 +01: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
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
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
b275fedfe8 Remove Uniswap V1 config and scripts. Renamed config to markets. 2020-11-17 09:33:45 +01:00
David Racero
27365697ac Added mainnet check list. Remove deployed contracts. Update README.md 2020-11-16 19:22:22 +01:00
Gerardo Nardelli
d0d0e869d0 Fix flash loan fee usage in _getAmountsIn 2020-11-13 12:30:14 -03:00
The3D
b66253bfe9 Removed separate setters 2020-11-13 15:48:38 +01:00
eboado
f32ac702ec - Refactoring on some Errors 2020-11-12 13:54:23 +01:00
Gerardo Nardelli
a7115f019e Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-getters.ts
#	helpers/types.ts
2020-11-10 11:40:25 -03:00
David Racero
4df4841767 Rename AaveProtocolTestHelpers to AaveProtocolDataProvider. Add task to deploy AaveProtocolDataProvider. 2020-11-10 15:19:47 +01:00
Ernesto Boado
3fc261037a Merge branch 'fix/123' into 'master'
Resolve "Add check that amount != 0 in validateBorrow()"

Closes #123

See merge request aave-tech/protocol-v2!141
2020-11-10 13:59:16 +00:00
The3D
c81047ca93 Fixes #123 2020-11-10 14:57:09 +01:00
Gerardo Nardelli
cf9c8855c3 Pull the correct amount of atokens from user to avoid leftovers in repay adapter 2020-11-10 10:38:24 -03:00
Ernesto Boado
ce62734786 Merge branch '122-remove-setreservedecimals-from-lendingpoolconfiguration' into 'master'
Resolve "Remove setReserveDecimals() from lendingPoolConfigurator"

Closes #122

See merge request aave-tech/protocol-v2!140
2020-11-10 13:03:48 +00:00
The3D
d9fa61539a Removed invalid tests 2020-11-10 13:59:08 +01:00
The3D
0c8efc2261 Added negative test on setUsageAsCollateral(), clearer require condition 2020-11-10 13:45:08 +01:00
Gerardo Nardelli
6e9defe14c Add repayAllDebt flag to repay the whole debt with collateral 2020-11-09 16:53:03 -03:00
Gerardo Nardelli
4fb43f7aff Remove not used batch capabilities on repay adapter 2020-11-09 15:27:18 -03:00
eboado
f46bef2b00 - Reordered rest of config parameters. 2020-11-09 10:05:03 +01:00
Gerardo Nardelli
d3ef60f01b Merge fix 2020-11-06 15:21:27 -03:00
Gerardo Nardelli
3f779e2e9f Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-deployments.ts
#	helpers/types.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-11-06 14:26:31 -03:00
Gerardo Nardelli
1faffa2c39 Add permit amount parameter to correctly execute permit call 2020-11-06 12:12:08 -03:00
andyk
efb77fdf4c Merge branch 'master' into feat/data-helpers 2020-11-06 15:54:50 +03:00