Commit Graph

300 Commits

Author SHA1 Message Date
David Racero
4058a7284c Update storage layout of LendingPoolLiquidationManager to add new mapping from LendingPool. Fixes delegatecall liquidation error. 2020-09-11 12:59:19 +02:00
eboado
f355ae219f Merge branch 'master' into 33-add-native-credit-delegation 2020-09-11 11:25:42 +02:00
Ernesto Boado
496f6f0769 Merge branch 'feat/26-repay-collateral' into 'master'
Fixes #26 #31

Closes #31 and #26

See merge request aave-tech/protocol-v2!41
2020-09-10 19:27:07 +00:00
David Racero
167f02533f Delete "if" condition due always will be true. Delete unreachable "else" code at repayWithCollateral. 2020-09-10 13:30:57 +00:00
David Racero
831bc3d0eb Added tests to check repay with collateral when is disabled 2020-09-10 13:05:26 +02:00
David Racero
53112c0982 Merge changes 2020-09-09 21:26:52 +02:00
David Racero
113c481512 Fixed coverage random failing tests. Added coverage network and minimal config. 2020-09-09 21:24:20 +02:00
eboado
4b3abac526 Merge branch 'master' into feat/26-repay-collateral 2020-09-09 21:12:36 +02:00
David Racero
23b7226a73 Fix bignumber global test config 2020-09-09 16:35:49 +02:00
David Racero
398335124f Added collateral test to flash liquidation 2020-09-09 15:43:02 +02:00
David Racero
2b930e4cd7 Merge branch 'feat/26-repay-collateral' of gitlab.com:aave-tech/protocol-v2 into feat/26-repay-collateral 2020-09-09 14:47:56 +02:00
David Racero
f1bd569346 Added reentrancy test and full amount flash liquidation test 2020-09-09 14:47:33 +02:00
andyk
3173bee782 initial implementation of the credit delegation + basic tests 2020-09-09 15:33:05 +03:00
eboado
75c5c7c615 - Added test for user's usage as collateral on repayWithCollateral(). 2020-09-09 14:22:35 +02:00
eboado
d828c63a83 - Added reset of user's usage as collateral on repayWithCollateral(). 2020-09-09 13:21:19 +02:00
eboado
91e064eb31 Merge branch 'feat/26-repay-collateral' of gitlab.com:aave-tech/protocol-v2 into feat/26-repay-collateral 2020-09-09 13:07:10 +02:00
eboado
37a9c7ad88 - Added reentrancy guard on repayWithCollateral() and test. 2020-09-09 13:06:46 +02:00
David Racero
863d888be6 Added flash-liquidation tests, mimics self-liquidation tests 2020-09-08 20:06:28 +02:00
eboado
56ddeceb94 - Added extra test of repayWithCollateral() on self-liquidation. 2020-09-08 16:25:16 +02:00
eboado
3aa0dbc570 - Added tests of repayWithCollateral(), only for self-liquidation. 2020-09-08 15:05:53 +02:00
The-3D
23f99d30f0 Merge branch 'feat/27-new-erc20' into 'master'
Feat/27 new erc20

See merge request aave-tech/protocol-v2!36
2020-09-05 16:18:40 +00:00
eboado
819cc65abd Merge branch 'master' into feat/27-new-erc20 2020-09-04 17:10:32 +02:00
eboado
da734aa68a - Refactored ERC20 and adapted derived contracts. 2020-09-04 16:27:35 +02:00
The-3D
0085458da4 Merge branch 'fix/24' into 'master'
Resolve "Gas optimizations"

Closes #24

See merge request aave-tech/protocol-v2!31
2020-09-04 14:05:23 +00:00
The3D
ebdc334c45 Merge branch 'master' into fix/24 2020-09-04 14:52:54 +02:00
The3D
58488158cd Refactored error messages 2020-09-04 12:48:29 +02:00
The3D
7456656b28 Removed useless file 2020-09-04 10:45:03 +02:00
The3D
9aad57978d Merged master 2020-09-04 10:27:32 +02:00
The-3D
c9727646d4 Merge branch 'fix/23' into 'master'
Resolve "FlashLoans V2"

Closes #23

See merge request aave-tech/protocol-v2!30
2020-09-04 08:10:04 +00:00
emilio
78d9d4af74 Removed space 2020-09-03 18:25:50 +02:00
emilio
bb822035a8 Added further test on flashloan for stable rate borrowing 2020-09-03 18:14:39 +02:00
emilio
48438f59f5 Added a new test to check an invalid interest rate mode 2020-09-03 16:29:14 +02:00
emilio
1486cee774 Fixed tests on flashloan 2020-09-03 15:53:18 +02:00
eboado
2cbb1f5714 - Implemented repayWithCollateral() on LendingPoolLiquidationManager. 2020-09-03 15:46:45 +02:00
emilio
db99b6eca6 Merge branch 'master' into fix/23 2020-09-03 15:41:36 +02:00
emilio
16fc0d4971 Updated flashloans 2020-09-03 15:17:46 +02:00
The-3D
b32ee6536c Merge branch '25-refactor-require-msg' into 'master'
Resolve "Refactor of error message on requires"

Closes #25

See merge request aave-tech/protocol-v2!35
2020-09-03 09:22:34 +00:00
pol
07007fa933 Fixed sintax errors 2020-09-03 11:17:49 +02:00
pol
714c2ff3fd Refactored as per the PR comments 2020-09-03 10:33:15 +02:00
pol
288d8f2889 Added LendingPoolLiquidationManager error messages to error lib, and updated tests. 2020-09-02 18:53:39 +02:00
pol
5b5f8ae74a cleaned comments 2020-09-02 18:18:17 +02:00
emilio
ab88aa64bf Fixed merge issues 2020-09-02 18:10:16 +02:00
pol
76b4fc6b2d All tests working. WIP look at old error messages to remove them all 2020-09-02 17:54:34 +02:00
emilio
cf39045573 Merge branch 'master' into fix/23 2020-09-02 17:41:01 +02:00
pol
6122826ef4 fixed getting error codes from error lib 2020-09-02 16:34:15 +02:00
pol
7b4812c956 Moved error messages to error lib 2020-09-02 15:48:38 +02:00
eboado
e0c27fef3f - Moved index update on flashLoan() to before the executeOperation.
- Refactor to remove try..catch.
- Change on _executeBorrow() to not consider liquidityTaken when coming from flash loan.
2020-08-28 16:44:14 +02:00
eboado
e4485f12fe - Refactored logic of repay() to an internal _executeRepay().
-  Initial implementation of flashCollateral() for flash liquidations, repayment with collateral and movement of position.
2020-08-26 16:02:22 +02:00
pol
dbcd78a098 Updated require message errors with constant string numbers to reduce gas 2020-08-25 17:27:37 +02:00
pol
5841e51439 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:57:54 +02:00