Commit Graph

368 Commits

Author SHA1 Message Date
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
Ernesto Boado
e92b4eb59d Merge branch '119-add-a-borroweth-function-to-the-weth-gateway' into 'master'
Add a borrowETH() function to the WETH gateway

Closes #119

See merge request aave-tech/protocol-v2!129
2020-11-06 12:43:03 +00:00
David Racero
248782ec71 Deleted unneded imports 2020-11-06 13:25:45 +01:00
David Racero
7beda9bcc0 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 119-add-a-borroweth-function-to-the-weth-gateway 2020-11-06 13:22:15 +01:00
David Racero
167bca74ab Added borrowETH to WETHGateway. 2020-11-06 13:22:03 +01:00
The3D
7b6058fe3b removed unused code 2020-11-06 13:02:49 +01:00
The-3D
7d4dd6d0e0 Merge branch 'feat/117-oracle-weth' into 'master'
Added management of WETH to ChainlinkProxyPriceProvider.

Closes #117

See merge request aave-tech/protocol-v2!128
2020-11-06 11:51:59 +00:00
eboado
3aa5de28b4 - Added management of WETH to ChainlinkProxyPriceProvider. 2020-11-06 12:09:24 +01:00
Gerardo Nardelli
20bbae88d3 Add swapAllBalance parameter for liquidity swap 2020-11-05 16:49:55 -03:00
David Racero
b5f2f283a2 Fix conflicts 2020-11-05 16:15:52 +01:00
Gerardo Nardelli
48b9a603a7 Update getAmountsIn to return prices 2020-11-05 11:33:11 -03:00
emilio
57e444714d Merge branch 'master' into fix/114 2020-11-05 15:25:24 +01:00
emilio
73f38a46ec Merge branch 'master' into fix/114 2020-11-05 14:51:04 +01:00
emilio
42f7e07173 Merge branch 'master' into feat/refactor-delegation 2020-11-05 14:49:59 +01:00
David Racero
729b642ea5 Support Buidler to run solidity-coverage until is ported. 2020-11-05 14:43:17 +01:00
emilio
69c3d5b9b7 Adds Emergency admin 2020-11-05 12:35:50 +01:00
David Racero
21e57a1a37 Migrate buidler to hardhat 2020-11-05 12:18:20 +01:00
David Racero
8ab3bce12e Fixed conflicts 2020-11-05 09:20:50 +01:00
David Racero
1480668f94 Fix domain separator 2020-11-04 21:03:58 +01:00
Gerardo Nardelli
5d9cd6ebd1 Update getAmountsOut to return prices 2020-11-04 16:51:21 -03:00
David Racero
86f79b4c13 Reserves Configuration 2020-11-04 13:22:40 +01:00
emilio
add6cad5c3 Fixed scenarios, tests, removed console.log 2020-11-04 11:12:26 +01:00
David Racero
46a42233c6 Test emergency Ether withdrawal via self-destruct 2020-11-03 21:04:48 +01:00
The3D
4e4fbe6539 Refactoring of credit delegation 2020-11-03 19:47:57 +01:00
Gerardo Nardelli
847ad3b12a Add batch swaps unit tests 2020-11-03 15:37:06 -03:00
David Racero
a54f910928 Added emergency token and ether withdrawal. Follow code guidelines. 2020-11-03 17:23:35 +01:00
Gerardo Nardelli
94a6a8688c Update liquidity swap adapter params to include min amount to receive 2020-11-03 12:22:15 -03:00
David Racero
4893548d36 Added fallback/receive test 2020-11-03 14:06:10 +01:00