Commit Graph

526 Commits

Author SHA1 Message Date
The3D
645ea913b0 Moved accessors to AaveProtocolTestHelpers 2020-10-12 14:25:03 +02:00
The3D
be517ad960 Added memory accessors to reserveConfiguration 2020-10-12 11:23:18 +02:00
The3D
4b35df5c4c Merge branch 'master' into fix/62 2020-10-12 10:50:33 +02:00
The3D
40ff898011 Refactored LendingPool 2020-10-12 10:50:06 +02:00
The-3D
024def04b5 Merge branch 'fix/56' into 'master'
Resolve "Validate divison in the aToken/variable debt token to ensure it's not rounded down to 0"

Closes #56

See merge request aave-tech/protocol-v2!64
2020-10-12 08:19:07 +00:00
The3D
44ba72540c Updated configurator, LendingPool interface 2020-10-09 17:59:10 +02:00
The3D
640f30c786 Removed getters 2020-10-09 16:35:02 +02:00
Ernesto Boado
a7861f8cba Merge branch 'fix/61' into 'master'
Resolve "Fix stable rate token events"

Closes #61

See merge request aave-tech/protocol-v2!69
2020-10-09 08:08:22 +00:00
The3D
3439198ec3 fixed events in the token contract 2020-10-09 10:03:50 +02:00
The3D
cb6603f8a7 fixes interface 2020-10-09 10:00:55 +02:00
Ernesto Boado
7a0d201f00 Merge branch 'fix/58' into 'master'
Resolve "Optimize the reading of the list of reserves by replacing the array with a mapping"

Closes #58

See merge request aave-tech/protocol-v2!66
2020-10-08 12:24:04 +00:00
The-3D
5ddd98c529 Merge branch 'fix/53-borrowing-mask' into 'master'
Fixes #53

Closes #53

See merge request aave-tech/protocol-v2!63
2020-10-08 08:55:35 +00:00
The3D
9fdfc8bf26 Added check if the reserve was already added 2020-10-06 18:20:44 +02:00
The3D
24a4980496 Refactored reservesList to a mapping 2020-10-06 15:51:48 +02:00
The3D
f3852d7081 Updated test on liquidation bonus 2020-10-06 11:36:29 +02:00
The3D
b88bdc8c2c updated test on liquidation threshold, reserve factor 2020-10-06 11:34:50 +02:00
The3D
d77e5ce5be Added test on disable stable borrow rate 2020-10-06 11:30:10 +02:00
The3D
b30ccd6dd2 Added test on disable stable borrow rate 2020-10-06 11:28:46 +02:00
The3D
35db5833fa Added test on disable stable borrow rate 2020-10-06 11:27:53 +02:00
The3D
3fd4003aa0 Added test on deactivate as collateral 2020-10-06 11:20:45 +02:00
The3D
450cdfa95c Updated tests on enableBorrowingOnReserve 2020-10-06 11:03:51 +02:00
The3D
bad45772c1 Updated tests on unfreeze 2020-10-06 11:02:34 +02:00
The3D
4d991e6709 Updated tests on freeze, borrowingEnabled 2020-10-06 10:59:33 +02:00
The3D
e86cf9fe0a Fixes liquidation bonus mask, adds comment on reserved bits 2020-10-06 10:23:02 +02:00
The3D
3ad9e7b9e0 Added natspec comment to mintToTreasury 2020-10-05 13:12:58 +02:00
The3D
c45d6c254b fixes #56 2020-10-05 13:11:53 +02:00
The3D
5a67250743 fixed error code 2020-09-30 18:03:34 +02:00
The3D
758675c132 Fixes tests 2020-09-30 17:59:47 +02:00
The3D
b907b6b0b3 Initial fix 2020-09-30 17:40:47 +02:00
eboado
d56a7a2779 Misc changes on ReserveConfiguration:
- Fixed unprecise STABLE_BORROWING_MASK.
  - Added constant for start bit positions of the different configurations.
2020-09-30 11:24:22 +02:00
The-3D
f435b2fa0a Merge branch 'feat/52-getter-setter' into 'master'
Fixes #52

Closes #52

See merge request aave-tech/protocol-v2!61
2020-09-30 08:32:50 +00:00
eboado
3343769510 - Added setter tests for setAddress() on LendingPoolAddressesProvider 2020-09-29 17:00:51 +02:00
eboado
099532ee48 - Added general setter and getter of address to LendingPoolAddressesProvider.
- Adapted style of LendingPoolAddressesProviderRegistry, adding public getter function in the process.
2020-09-29 16:31:21 +02:00
Ernesto Boado
479f6f6b72 Merge branch 'fix/50-check-on-balancedecreaseallowed' into 'master'
Resolve "Fix: Check on balanceDecreaseAllowed() if the reserve liquidation threshold is 0, not the ltv"

Closes #50

See merge request aave-tech/protocol-v2!59
2020-09-28 14:37:03 +00:00
The3D
6d1fede2c9 Removed selected scenario from the scenario file 2020-09-25 13:48:42 +02:00
The3D
f0191909a2 Added more setUseReserveAsCollateral() scenarios tests 2020-09-25 11:51:35 +02:00
The3D
35044941b0 Fix test related to the LTV change 2020-09-25 11:20:12 +02:00
The3D
e328cf0482 Formatting, removed console import 2020-09-25 10:57:51 +02:00
The3D
687b13f019 Formatting, removed console import 2020-09-25 10:57:26 +02:00
The3D
fb0f533ae9 Changes usage of the ltv in calculateUserAccountData 2020-09-25 10:55:58 +02:00
The3D
6e7787d23c initial fix 2020-09-24 18:20:17 +02:00
Ernesto Boado
12d97f9f13 Merge branch 'fix/48-interest-rates-calculation' into 'master'
Resolve "Fix issue on the calculation of the interest rate on swapCollateral"

Closes #48

See merge request aave-tech/protocol-v2!57
2020-09-24 10:04:07 +00:00
The3D
6ee4b2725b Fix order of calculation of the interest rates 2020-09-24 10:00:17 +02:00
Ernesto Boado
ee0bc07238 Merge branch 'fix/47' into 'master'
Resolve "Fix transferFrom() on flashLoan()"

Closes #47

See merge request aave-tech/protocol-v2!56
2020-09-24 07:40:00 +00:00
Ernesto Boado
8901646f3c Merge branch 'fix/46' into 'master'
Resolve "improve test coverage of the AddressesProviderRegistry"

Closes #46

See merge request aave-tech/protocol-v2!55
2020-09-24 07:38:56 +00:00
The3D
7be723c773 Adds 100% test coverage to the addressesProviderRegistry 2020-09-23 17:59:43 +02:00
The3D
4e25657731 Updated transferFrom in repayWithCollateral() and swapLiquidity() 2020-09-23 15:19:21 +02:00
The3D
d724d1f58f Fixed comment 2020-09-23 14:39:17 +02:00
The3D
7c6034db67 Fixes the flashloan transferFrom() 2020-09-23 12:57:48 +02:00
The3D
7c892ec4ba added test on removal of an addresses provider 2020-09-23 12:34:53 +02:00