Commit Graph

245 Commits

Author SHA1 Message Date
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
David Racero
0d0ef98fe6 Added deployment addresses. Rollback atoken deployer. 2020-11-10 14:53:16 +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
David Racero
ce3db28503 Added tokenization verifications 2020-11-10 14:18:48 +01:00
The3D
ee1e20568b Added check 2020-11-10 14:11:01 +01:00
David Racero
6eb19a2d66 Move verification to a separate task and run after deployment. Speed up verification via more logic to prevent too many retries. 2020-11-10 13:23:30 +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
David Racero
b3870cc107 Use fallback verification if related sources causes Solidity bug. 2020-11-09 18:55:09 +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
6aeabbe00b Add build params unit tests helpers 2020-11-06 12:12:40 -03:00
andyk
442847dc1d fix types issue 2020-11-06 17:18:13 +03:00
andyk
efb77fdf4c Merge branch 'master' into feat/data-helpers 2020-11-06 15:54:50 +03: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
David Racero
b5a52c2b98 Fix rename 2020-11-06 12:19:08 +01:00
David Racero
ef9e32f13b Fix typos 2020-11-06 12:14:41 +01:00
eboado
3aa5de28b4 - Added management of WETH to ChainlinkProxyPriceProvider. 2020-11-06 12:09:24 +01:00
David Racero
b5f2f283a2 Fix conflicts 2020-11-05 16:15:52 +01:00
David Racero
51b3fb1669 Fix migration logic 2020-11-05 15:31:35 +01:00
emilio
73f38a46ec Merge branch 'master' into fix/114 2020-11-05 14:51:04 +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
d75c31db71 Added missing faucet tokens at Kovan 2020-11-04 20:51:45 +01:00
David Racero
86f79b4c13 Reserves Configuration 2020-11-04 13:22:40 +01:00
David Racero
a54f910928 Added emergency token and ether withdrawal. Follow code guidelines. 2020-11-03 17:23:35 +01:00
David Racero
6174539966 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-11-03 12:51:54 +01:00
The3D
54bae079c9 Renamed error 2020-11-03 12:15:37 +01:00
David Racero
525c816bbe Rollback to 1 WETHGateway per LendingPool 2020-11-02 18:43:50 +01:00
David Racero
7282f7678b Allow WETHGateway to be used by multiple pools. Remove logger. 2020-11-02 17:51:54 +01:00
David Racero
a4a02e761b Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-11-02 16:54:22 +01:00
David Racero
cd687b7a0c Fix conflicts 2020-11-02 16:53:02 +01:00
David Racero
fd46bf888a Print addresses after migration. Fix minor migration issues. 2020-11-02 14:45:00 +01:00
The3D
1b021dca18 Added tests 2020-11-02 14:44:11 +01:00
The3D
dae912ba3f add delegation aware aToken to the contract ids 2020-11-02 13:25:24 +01:00
The3D
473336955e added deployment function for delegation aware aToken 2020-11-02 13:22:26 +01:00
andyk
9ce6d3347f Merge branch 'master' into feat/data-helpers 2020-11-02 14:46:23 +03:00
David Racero
d22a6f629b Remove LEND config and fix tests to use AAVE conversion 100:1 2020-11-02 12:37:57 +01:00
David Racero
e9d21ef74d Fixed conflicts 2020-11-02 10:20:59 +01:00
Ernesto Boado
282e6093bb Merge branch 'fix/51' into 'master'
Resolve "Remove the disable as collateral function on LendingPoolConfigurator"

Closes #51

See merge request aave-tech/protocol-v2!60
2020-10-31 17:41:48 +00:00
emilio
07429b0a57 Fixed P_IS_PAUSED 2020-10-31 13:55:19 +01:00
emilio
05d426645d Changed freezed to frozen 2020-10-31 13:47:16 +01:00
emilio
3f7bb806ac Merge branch 'master' into fix/51 2020-10-31 13:10:26 +01:00
Gerardo Nardelli
e7183536b3 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-deployments.ts
#	helpers/contracts-getters.ts
2020-10-30 17:01:39 -03:00
David Racero
1ac0a45394 Fix conflicts 2020-10-30 16:52:44 +01:00
eboado
cba766d282 Merge branch 'master' into feat/102-batch-delegation-allowance 2020-10-30 16:04:31 +01:00
David Racero
b3cc9d1a62 Fix conflicts 2020-10-30 13:40:06 +01:00
andyk
898d72dfb3 Merge branch 'master' into feat/data-helpers 2020-10-30 13:16:21 +03:00
andyk
18d7a44db5 removal of ReserveLogic.ReserveData from UI helper return 2020-10-30 13:14:42 +03:00
Gerardo Nardelli
fc358b7c14 merge fixes 2020-10-29 17:29:41 -03:00
Gerardo Nardelli
17095c3ae1 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	helpers/types.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-10-29 16:49:25 -03:00
David Racero
2892e69df0 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-10-29 16:20:12 +01:00
Ernesto Boado
6b26e39d5f Merge branch 'feat/74' into 'master'
Feat/74 - Add `onBehalf` for flashloan(), to open debt if debt mode selected

Closes #74

See merge request aave-tech/protocol-v2!96
2020-10-29 15:08:18 +00:00
David Racero
e6d913d251 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-10-29 15:50:37 +01:00
David Racero
c187440f84 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into fix/75-improve-migration-scripts 2020-10-29 14:11:00 +01:00
David Racero
744befc46c Added deposit test for WETHGateway 2020-10-29 12:44:21 +01:00
David Racero
9317df9252 Added boilerplate deployment, getters and tests. 2020-10-28 18:06:24 +01:00
David Racero
13737e0994 Show WETH instead of ETH 2020-10-28 11:27:16 +01:00
eboado
6be8b1c5fd - Added validations on ReserveConfiguration's numeric setters. 2020-10-28 10:54:09 +01:00
Gerardo Nardelli
723e3f82a6 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-10-27 09:26:43 -03:00
Gerardo Nardelli
a05b75b467 Add uniswap adapters unit tests 2020-10-27 09:18:30 -03:00
David Truong
a517d5d11d - implement test for onBehalfOf flashloan borrow debt 2020-10-27 13:10:10 +01:00
David Racero
1ef22f036b Fix conflicts 2020-10-27 12:12:05 +01:00
David Truong
e0660bda7b Merge remote-tracking branch 'origin/master' into feat/74
# Conflicts:
#	contracts/interfaces/ILendingPool.sol
#	contracts/lendingpool/LendingPool.sol
#	test/flashloan.spec.ts
2020-10-27 12:05:48 +01:00
emilio
1f8efbd4f5 Removed swapAdapter from the migration scripts 2020-10-27 11:08:11 +01:00
David Racero
161fb63f19 Added borrow rates deployment optimization and minor tweaks for deployment helpers 2020-10-27 10:58:51 +01:00
David Racero
e17f2ec814 Added collateral enable and stable migration optimization. 2020-10-26 17:43:10 +01:00
David Racero
95b94e46e2 Merge master 2020-10-26 10:41:24 +01:00
The3D
7b0a83fd8f Merge branch 'master' into fix/76-migration-scripts 2020-10-26 09:52:56 +01:00
David Racero
e6be323e51 Remove unneeded factory 2020-10-23 18:41:52 +02:00
David Racero
1c7ce57b2b Aggregated deployments for initialization, atokens and debtTokens 2020-10-23 18:38:27 +02:00
David Racero
cbc188e62a merge and add helper contracts 2020-10-23 15:18:01 +02:00
The3D
302a19a1bc Merge branch 'master' into fix/73 2020-10-22 19:20:57 +02:00
David Racero
64df1eeb36 Removed mock swap 2020-10-22 18:27:23 +02:00
David Racero
3b2b843b7b Fixes typings errors. 2020-10-22 18:14:56 +02:00
David Racero
bb0df73449 WIP test erroring 2020-10-22 17:32:50 +02:00
David Racero
9496af6455 Replace compilation for glob file finder. Stop verify if it finds a critical error. 2020-10-22 11:17:21 +02:00
The3D
76031c878f Fixed console messages 2020-10-21 13:35:52 +02:00
David Racero
d864836ec5 Added waitForTx for lendingpoool 2020-10-21 11:50:54 +02:00
David Racero
4ee41dbece Added waitForTx to missing methods. 2020-10-21 11:42:27 +02:00
The3D
7ddf18b823 Updated migration scripts to add custom proxy price providers 2020-10-20 12:19:07 +02:00
emilio
19756cdbe8 fixed PVE001, PVE009(1) 2020-10-19 18:29:32 +02:00
David Racero
60c93a4d73 Remove debug console.logs 2020-10-16 12:07:35 +02:00
David Racero
e0627ce66b Added correct library placheholder hashes. Fix imports. 2020-10-16 11:27:09 +02:00
David Racero
7556f25c1a Moved all deployments outside of helpers with wrapper. 2020-10-15 20:28:12 +02:00
David Racero
03504849f1 Deployment function optimizations WIP 2020-10-15 19:19:02 +02:00
David Racero
88a2cb21f4 Move contract getters to their own file. Use factory connect. Fix imports 2020-10-15 13:57:03 +02:00
David Racero
479aa3ef8e Updated numbers 2020-10-15 09:38:46 +02:00
David Racero
57ffc9c613 Reorg errors library, sorted by error number, added prefix to each constant and a prefix glossary. 2020-10-14 11:03:32 +02:00
The3D
543c3f5c9c Merge branch 'master' into fix/62 2020-10-13 13:41:57 +02:00
The3D
53d6114775 Merge branch 'master' into feat/18 2020-10-12 15:19:27 +02:00
The3D
d150458604 Merge branch 'master' into feat/18 2020-10-08 15:41:48 +02:00
eboado
273070fada Added return uint256 validation to flashLoan() 2020-10-07 16:20:32 +02:00
David Racero
ffc81df4ee Fix conflicts and renamings 2020-09-24 17:48:29 +02:00
The3D
06d16c6abf Added initial test for the registry 2020-09-23 11:21:49 +02:00
The3D
e4890a14c2 Merge branch 'master' into fix/34 2020-09-17 11:55:38 +02:00
The3D
570a81a1b2 Fixed aToken deployment function 2020-09-16 16:44:27 +02:00