Commit Graph

359 Commits

Author SHA1 Message Date
David Racero
4893548d36 Added fallback/receive test 2020-11-03 14:06:10 +01:00
David Racero
5f37f317e9 Added fallback function 2020-11-03 13:51:10 +01:00
David Racero
f70754263d Remove requires. Change onBehalf to To at withdraw. Add fallback function revert. 2020-11-03 13:29:11 +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
The3D
73254a66aa Fixed test 2020-11-02 16:05:55 +01:00
The3D
1b021dca18 Added tests 2020-11-02 14:44:11 +01: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
3f7bb806ac Merge branch 'master' into fix/51 2020-10-31 13:10:26 +01:00
emilio
72fe465782 fixed test 2020-10-31 12:42:14 +01:00
David Racero
1ac0a45394 Fix conflicts 2020-10-30 16:52:44 +01:00
emilio
96d00edd00 Merge branch 'master' into fix/51 2020-10-30 16:21:37 +01:00
eboado
cba766d282 Merge branch 'master' into feat/102-batch-delegation-allowance 2020-10-30 16:04:31 +01:00
emilio
b888fc12ab Merge branch 'master' into fix/51 2020-10-30 15:12:11 +01:00
eboado
5a9a46a31f Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 14:55:03 +01:00
David Racero
b3cc9d1a62 Fix conflicts 2020-10-30 13:40:06 +01:00
eboado
b2bbe62822 - Added to to withdraw() 2020-10-30 12:38:41 +01:00
eboado
1954f609c2 Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 11:40:31 +01:00
David Racero
951e749c1e Merge master 2020-10-29 18:15:07 +01: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 Truong
f546d21c97 Merge branch 'feat/74' of gitlab.com:aave-tech/protocol-v2 into feat/74 2020-10-29 15:55:20 +01:00
David Truong
d373b9beb8 Fix for pausable-function flashloan test 2020-10-29 15:53:38 +01: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
a9e7fa3516 Added WETHGateway tests 2020-10-29 15:50:32 +01:00
Ernesto Boado
b7f47d160e Merge branch 'fix/99' into 'master'
Resolve "Set the isUsedAsCollateral flag on aToken transfers"

Closes #99

See merge request aave-tech/protocol-v2!107
2020-10-29 14:48:48 +00:00
eboado
913a6a9237 - Added batch of modes to flashLoan() 2020-10-29 15:14:28 +01:00
eboado
edfe17bd97 - Added batch to credit delegation 2020-10-29 14:36:01 +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
emilio
9e55ea12b6 Fixes #99 2020-10-29 11:57:43 +01:00
David Racero
b5a3903ca0 Merge changes 2020-10-28 18:47:35 +01:00
David Racero
a966d9f53f Added new StringLib library with concat to reuse function in deployment helpers. 2020-10-28 18:39:19 +01:00
David Racero
9317df9252 Added boilerplate deployment, getters and tests. 2020-10-28 18:06:24 +01:00
David Racero
0d87292867 Fix merge conflicts. Fix ETH to WETH symbol change 2020-10-28 15:49:50 +01:00
eboado
6be8b1c5fd - Added validations on ReserveConfiguration's numeric setters. 2020-10-28 10:54:09 +01:00
David Truong
8e64702013 Merge branch 'master' into 'feat/74'
# Conflicts:
#   deployed-contracts.json
2020-10-27 13:54:18 +00:00
Ernesto Boado
c34a22e79f Merge branch 'feat/70-basic-flow-task' into 'master'
Feat/70 basic flow task

See merge request aave-tech/protocol-v2!83
2020-10-27 13:00:32 +00:00
David Truong
a517d5d11d - implement test for onBehalfOf flashloan borrow debt 2020-10-27 13:10:10 +01:00
The-3D
b1fdd59c39 Merge branch 'feat/86-linear-interest-optimization' into 'master'
Fixes #86

Closes #86

See merge request aave-tech/protocol-v2!93
2020-10-27 12:02:32 +00:00
eboado
e88d9dc81b - Optimized calculateLinearInterest() on MathUtils. 2020-10-27 12:44:30 +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
pol
52c21a38ba Merge branch 'master' of sendra.gitlab.com:aave-tech/protocol-v2 into feat/70-basic-flow-task 2020-10-27 10:49:34 +01:00
David Racero
e17f2ec814 Added collateral enable and stable migration optimization. 2020-10-26 17:43:10 +01:00
The-3D
85168f8ea7 Merge branch 'fix/78' into 'master'
Resolve "Extend flashloans to allow flashborrowing of multiple currencies"

Closes #78

See merge request aave-tech/protocol-v2!87
2020-10-26 13:14:42 +00:00
David Truong
d2b52ced8f Merge commit 'ea66bf317030bd8e4caf9fdfe5b3933adc187fcc' into feat/74 2020-10-26 13:29:59 +01:00
David Truong
24d5c4766f [WIP] Adding onBehalfOf to flashloan 2020-10-26 13:27:31 +01:00
David Racero
95b94e46e2 Merge master 2020-10-26 10:41:24 +01:00
David Racero
e6be323e51 Remove unneeded factory 2020-10-23 18:41:52 +02:00
The3D
6398fe4260 Fix comments, tests 2020-10-23 18:41:08 +02:00
David Racero
1c7ce57b2b Aggregated deployments for initialization, atokens and debtTokens 2020-10-23 18:38:27 +02:00
pol
59ccd2aac3 mock swap addapter removed from everywhere 2020-10-23 16:56:30 +02:00
pol
9530dd115d added scenarios engine for subgraph testing 2020-10-23 15:20:29 +02:00
David Racero
cbc188e62a merge and add helper contracts 2020-10-23 15:18:01 +02:00
The3D
a2e2450bb3 Finalized implementation, fixed tests 2020-10-22 20:37:50 +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
fd61ab9018 Merge master 2020-10-22 18:17:24 +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
The3D
b7efa920ca Remove swapLiquidity/repayWithCollateral 2020-10-22 11:50:04 +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
628f0de639 Merge branch 'feat/66' into 67-use-factory-functions 2020-10-16 11:50:51 +02:00
David Racero
e0627ce66b Added correct library placheholder hashes. Fix imports. 2020-10-16 11:27:09 +02:00
David Racero
03504849f1 Deployment function optimizations WIP 2020-10-15 19:19:02 +02:00
The3D
b4f8592775 Fixed #69 2020-10-15 17:57:54 +02:00
The3D
e4dc67ec7a Updated test error messages 2020-10-15 17:20:22 +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
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
aea61d57ab Fixed tests code 2020-10-12 20:07:17 +02:00
The3D
53d6114775 Merge branch 'master' into feat/18 2020-10-12 15:19:27 +02:00
The-3D
fc9b096f23 Merge branch 'fix/60-flashloan-attack' into 'master'
Fixes #60

Closes #60

See merge request aave-tech/protocol-v2!68
2020-10-12 13:11:38 +00: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
The3D
f3852d7081 Updated test on liquidation bonus 2020-10-06 11:36:29 +02:00
The3D
b88bdc8c2c updated test on liquidation threshold, reserve factor 2020-10-06 11:34:50 +02:00
The3D
d77e5ce5be Added test on disable stable borrow rate 2020-10-06 11:30:10 +02:00
The3D
b30ccd6dd2 Added test on disable stable borrow rate 2020-10-06 11:28:46 +02:00
The3D
35db5833fa Added test on disable stable borrow rate 2020-10-06 11:27:53 +02:00
The3D
3fd4003aa0 Added test on deactivate as collateral 2020-10-06 11:20:45 +02:00
The3D
450cdfa95c Updated tests on enableBorrowingOnReserve 2020-10-06 11:03:51 +02:00
The3D
bad45772c1 Updated tests on unfreeze 2020-10-06 11:02:34 +02:00
The3D
4d991e6709 Updated tests on freeze, borrowingEnabled 2020-10-06 10:59:33 +02:00
eboado
3343769510 - Added setter tests for setAddress() on LendingPoolAddressesProvider 2020-09-29 17:00:51 +02:00
eboado
099532ee48 - Added general setter and getter of address to LendingPoolAddressesProvider.
- Adapted style of LendingPoolAddressesProviderRegistry, adding public getter function in the process.
2020-09-29 16:31:21 +02:00
The3D
948bd960be Initial commit 2020-09-28 19:33:39 +02:00
The3D
6d1fede2c9 Removed selected scenario from the scenario file 2020-09-25 13:48:42 +02:00
The3D
f0191909a2 Added more setUseReserveAsCollateral() scenarios tests 2020-09-25 11:51:35 +02:00