Commit Graph

349 Commits

Author SHA1 Message Date
David Racero
59bfdc39f2 Fix conflicts 2020-09-14 19:59:00 +02:00
David Racero
4ec61ee993 When transfer, check pause at pool to save one external call. 2020-09-14 19:46:27 +02:00
The-3D
80da6f2e7a Merge branch 'feat/36-permit-atoken' into 'master'
Feat/36 permit atoken

See merge request aave-tech/protocol-v2!45
2020-09-14 15:30:44 +00:00
eboado
0d36eab807 Merge branch 'master' into feat/36-permit-atoken 2020-09-14 17:27:12 +02:00
eboado
721dc1c832 - Fixed comment on permit(). 2020-09-14 17:27:08 +02:00
Ernesto Boado
fce0baffd5 Merge branch '33-add-native-credit-delegation' into 'master'
Resolve "Add native credit delegation"

Closes #33

See merge request aave-tech/protocol-v2!40
2020-09-14 15:25:52 +00: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
9d757aaa37 fix docustring 2020-09-14 17:57:59 +03:00
David Racero
64066a14ec Rename IS_ACTIVE to NOT_PAUSED error. 2020-09-14 16:09:57 +02:00
eboado
c531b87703 Merge branch 'master' into feat/36-permit-atoken 2020-09-14 16:02:53 +02:00
David Racero
98ed475000 Remove Context and account from PausablePool events. 2020-09-14 15:59:11 +02:00
eboado
748312cf20 - Added permit() to aToken. 2020-09-14 15:57:11 +02:00
David Racero
775d003cc0 Keep standard paused() name function. 2020-09-14 15:33:24 +02:00
David Racero
6e0091a668 Added PausablePool contract to support errors by number. 2020-09-14 15:24:30 +02:00
andyk
7c67e0221c extra comment 2020-09-14 16:16:54 +03:00
David Racero
202ddbdec4 Moved all pausable tests into their own Pausable test suite 2020-09-14 15:02:48 +02:00
andyk
35bff4bea2 add comment for getDebtTokenAddress function 2020-09-14 15:50:46 +03:00
andyk
d135c25b39 add borrowRateMode check on credit delegation 2020-09-14 15:41:44 +03:00
David Racero
b8a7237458 Remove whenNotPaused modifier for configurator functions. Added more test cases. 2020-09-14 14:36:12 +02:00
David Racero
ad2581b0a0 Added pausable tests 2020-09-14 13:57:40 +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
andyk
c0c3133763 makecredit delegation per debt token 2020-09-14 13:52:05 +03:00
The3D
4b8962d38f Commented buidler gas reporter 2020-09-14 11:48:52 +02:00
The3D
a64edb3011 Removed interest redirection leftovers 2020-09-14 11:13:53 +02:00
David Racero
1fbe84df49 Remove unused parameter to allow compilation without optimization for coverage. 2020-09-14 10:46:57 +02:00
The3D
f3856bac12 Refactored variable names, reordered the ReserveData struct 2020-09-13 11:58:45 +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
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
David Racero
831bc3d0eb Added tests to check repay with collateral when is disabled 2020-09-10 13:05:26 +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