Commit Graph

124 Commits

Author SHA1 Message Date
The3D
f428f69ebd Merge branch 'master' into fix/34 2020-09-15 09:34:00 +02:00
eboado
fb15afda8e Merge branch 'master' into fix/35-isActive-liquidations 2020-09-14 21:31:22 +02:00
eboado
a87dae445f Merge branch 'master' into 33-add-native-credit-delegation 2020-09-14 17:24:55 +02:00
eboado
6d96be5f42 - Added extra natspecs 2020-09-14 17:18:57 +02:00
andyk
7c67e0221c extra comment 2020-09-14 16:16:54 +03:00
The3D
b2ec4dd2fa Renamed totalBorrowsStable, totalBorrowsVariable 2020-09-14 15:13:30 +02:00
The3D
bb4e1b5c4b Fixed errors 2020-09-14 15:09:16 +02:00
andyk
d135c25b39 add borrowRateMode check on credit delegation 2020-09-14 15:41:44 +03:00
andyk
c0c3133763 makecredit delegation per debt token 2020-09-14 13:52:05 +03:00
The3D
13f77ec0d2 Fixed repay 2020-09-14 11:34:40 +02:00
The3D
d1ffac6380 Merge branch 'master' into fix/34 2020-09-14 11:33:34 +02:00
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
The3D
f3856bac12 Refactored variable names, reordered the ReserveData struct 2020-09-13 11:58:45 +02:00
eboado
0911f907a8 Fixes #35 2020-09-13 10:08:14 +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
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
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
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
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
David Racero
53112c0982 Merge changes 2020-09-09 21:26:52 +02:00
eboado
4b3abac526 Merge branch 'master' into feat/26-repay-collateral 2020-09-09 21:12:36 +02:00
andyk
3173bee782 initial implementation of the credit delegation + basic tests 2020-09-09 15:33:05 +03: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
eboado
3aa0dbc570 - Added tests of repayWithCollateral(), only for self-liquidation. 2020-09-08 15:05:53 +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
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
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
The3D
796dc8ee3f Updated repay function 2020-08-21 19:10:48 +02:00
The3D
9a4ccde6a2 Removed obsolete code 2020-08-21 19:00:08 +02:00
The3D
955d2be1da Merge branch 'master' into fix/22 2020-08-21 18:48:16 +02:00
The3D
1864c7abf4 Updated libraries, renamed internal methods 2020-08-21 18:18:12 +02:00
andyk
13f4d34867 refactoring flashloan folder to fit current guideline, move events to interfaces 2020-08-21 17:03:01 +03:00