Commit Graph

498 Commits

Author SHA1 Message Date
eboado
e2500d1532 - Refactored validation logic of liquidationCall() and repayWithCollateral() to ValidationLogic. 2020-09-14 10:52:31 +02:00
David Racero
1fbe84df49 Remove unused parameter to allow compilation without optimization for coverage. 2020-09-14 10:46:57 +02:00
The3D
3c8018fab9 Cleaned up code, converted addressesProvider to immutable in LendingPool 2020-09-14 10:43:30 +02:00
The3D
fc2852e94e Rename updateIndexesAndTimestamp to updateState 2020-09-14 09:53:21 +02:00
The3D
162c7924a9 Added index to mint and burn of variableDebtToken 2020-09-14 09:33:53 +02:00
The3D
dbf1a0b9e7 Merge branch 'master' into fix/34 2020-09-14 09:22:39 +02:00
eboado
7a8a0d6ac5 Merge branch 'master' into 30-collateral-swap 2020-09-14 08:58:37 +02:00
The3D
f3856bac12 Refactored variable names, reordered the ReserveData struct 2020-09-13 11:58:45 +02:00
The3D
edfcdd6db4 Removed timestamp from stableDebtToken 2020-09-13 10:58:36 +02:00
eboado
0911f907a8 Fixes #35 2020-09-13 10:08:14 +02:00
Ernesto Boado
7794839f3c Merge branch 'fix/29' into 'master'
Resolve "Refactor the aToken to remove the userIndex"

Closes #29

See merge request aave-tech/protocol-v2!37
2020-09-12 15:23:45 +00: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
The-3D
420b48978f Merge branch '32-deposit-on-behalf-of' into 'master'
Resolve "Deposit on behalf of"

Closes #32

See merge request aave-tech/protocol-v2!39
2020-09-11 14:43:57 +00:00
The3D
b5efaa740f Added total supply timestamp on the stable debt token 2020-09-11 15:22:54 +02:00
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
eboado
d3f9cd2191 Merge branch 'master' into 32-deposit-on-behalf-of 2020-09-10 21:40:26 +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
The3D
73d7ca001c added configurator tests 2020-09-10 13:52:07 +02:00
The3D
3563f1379d Updated configurator for the reserve factor 2020-09-10 13:26:02 +02:00
The3D
c3b1ab0585 Refactored interestRateStrategy 2020-09-10 13:21:50 +02:00
The3D
af362141fd Added reserveFactor to getReserveConfigurationData 2020-09-10 13:16:32 +02:00
David Racero
831bc3d0eb Added tests to check repay with collateral when is disabled 2020-09-10 13:05:26 +02:00
The3D
de8ae523c8 Fixed total supply, tests 2020-09-10 13:05:02 +02:00
The3D
4a1e1156f4 Merge local branch 2020-09-10 12:51:52 +02:00
andyk
1d2617a4ce fix usageAsCollateral test 2020-09-10 13:31:43 +03:00
The3D
3df87a8e5d Initial commit 2020-09-10 11:25:45 +02: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
David Racero
113c481512 Fixed coverage random failing tests. Added coverage network and minimal config. 2020-09-09 21:24:20 +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
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
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
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
andyk
940d9d44f2 redo useless change of package.json 2020-09-09 13:48:52 +03: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