Commit Graph

197 Commits

Author SHA1 Message Date
David Racero
b8a7237458 Remove whenNotPaused modifier for configurator functions. Added more test cases. 2020-09-14 14:36:12 +02:00
David Racero
4a6517dce1 Inherit Pausable from LendingPoolLiquidationManager to match same storage layout as LendingPool. 2020-09-14 13:17:06 +02:00
David Racero
bbc11eb092 Added pausable to Pool actions and aTokens at transfer, triggered by LendingPoolConfigurator. Added basic test to aToken transfer. 2020-09-14 13:03:39 +02:00
The3D
a64edb3011 Removed interest redirection leftovers 2020-09-14 11:13:53 +02:00
The3D
f3856bac12 Refactored variable names, reordered the ReserveData struct 2020-09-13 11:58:45 +02:00
The3D
70e1f88ce4 removed comment 2020-09-12 13:19:41 +02:00
The3D
0d9a18813f Added optimization on mint and burn 2020-09-12 13:18:17 +02:00
The3D
7383fc9786 Merge branch 'master' into fix/29 2020-09-11 16:47:47 +02:00
eboado
d3f9cd2191 Merge branch 'master' into 32-deposit-on-behalf-of 2020-09-10 21:40:26 +02: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
The3D
e923324ea5 Removed duplicated comment 2020-09-10 09:57:15 +02:00
David Racero
53112c0982 Merge changes 2020-09-09 21:26:52 +02:00
The3D
a67c56c09f Removed interest redirection, fixed tests 2020-09-09 21:16:39 +02:00
eboado
4b3abac526 Merge branch 'master' into feat/26-repay-collateral 2020-09-09 21:12:36 +02:00
The3D
a3934152fe updated interest redirection 2020-09-09 19:43:41 +02:00
The3D
0f06c3b72e updated interest redirection tests 2020-09-09 17:20:36 +02:00
The3D
223690f5f1 Fixed test on transfer, updated interest redirection tests 2020-09-09 14:15:38 +02:00
eboado
d828c63a83 - Added reset of user's usage as collateral on repayWithCollateral(). 2020-09-09 13:21:19 +02:00
eboado
37a9c7ad88 - Added reentrancy guard on repayWithCollateral() and test. 2020-09-09 13:06:46 +02:00
andyk
9d7bf388a6 initial changes + test 2020-09-09 13:47:27 +03:00
The3D
b0084aaf33 Fixes borrow, repay, swap rate mode, rebalance tests 2020-09-09 11:43:11 +02:00
The3D
6454f040e8 Fixed withdrawal tests 2020-09-09 10:44:34 +02:00
The3D
90de5d2b0f Fixed transfer tests 2020-09-09 10:03:19 +02:00
The3D
2e8f6ee02c Updating withdrawal tests 2020-09-08 16:14:32 +02:00
eboado
3aa0dbc570 - Added tests of repayWithCollateral(), only for self-liquidation. 2020-09-08 15:05:53 +02:00
The3D
e3c422468d Updated comment 2020-09-08 13:48:33 +02:00
The3D
03767e003f Fixes deposits tests 2020-09-08 13:45:24 +02:00
The3D
a7b6beef48 Initial refactor commit 2020-09-07 17:55:47 +02:00
The3D
027a7e11e8 Removed userIndex 2020-09-05 18:37:48 +02: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
The3D
58488158cd Refactored error messages 2020-09-04 12:48:29 +02:00
The3D
9aad57978d Merged master 2020-09-04 10:27:32 +02:00
eboado
2cbb1f5714 - Implemented repayWithCollateral() on LendingPoolLiquidationManager. 2020-09-03 15:46:45 +02: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
76b4fc6b2d All tests working. WIP look at old error messages to remove them all 2020-09-02 17:54:34 +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
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
pol
0f5017cc81 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:51:52 +02:00
pol
abe967c707 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:32:22 +02:00
andyk
b0ddb815b8 small lending pool gas optimization 2020-08-25 13:37:38 +03:00
Ernesto Boado
eba3b5260f Merge branch 'fix/interest-strategy-styliguide' into 'master'
Refactoring of DefaultReserveInterestRateStrategy to follow the stuileguide

See merge request aave-tech/protocol-v2!32
2020-08-25 09:11:58 +00:00
andyk
4b00cde616 fixes in lendingpool folder to follow our styleguide 2020-08-25 11:53:58 +03:00
andyk
da5b6738c1 refactoring of DefaultReserveInterestRateStrategy to follow the stuileguide 2020-08-24 15:35:59 +03:00
The3D
03ec940109 Changed the indexes and rates type to uint128 2020-08-23 11:13:43 +02:00