Commit Graph

51 Commits

Author SHA1 Message Date
Hadrien Charlanes
39301ebee1 feat: passed some internal validation functions to external for LendingPool codesize 2021-06-10 18:32:24 +02:00
Hadrien Charlanes
46d14e9124 refactor: changed the order of requirements in validateDropReserve for easier testing 2021-06-08 17:57:15 +02:00
Hadrien Charlanes
68b7384146 rename: renamed NOT_NULL Errors to NOT_ZERO 2021-06-08 17:56:57 +02:00
Hadrien Charlanes
d0841097e6 fix: drop reserve logic updated 2021-06-08 17:56:39 +02:00
Hadrien Charlanes
776220d705 feat: removed user updates on droped reserves 2021-06-08 17:53:52 +02:00
Hadrien Charlanes
e2edf016eb feat: added drop reserve main capability 2021-06-08 17:52:30 +02:00
The3D
ec0199e3d7 Merge branch 'protocol-2.5' into feat/gas-optimization-3 2021-06-01 20:22:58 +02:00
Hadrien Charlanes
0b0996b49c feat: added risk admins 2021-05-31 13:39:53 +02:00
Hadrien Charlanes
992e026075 revert: Revert control access of transfer back to LendingPool contract 2021-05-31 10:49:25 +02:00
Hadrien Charlanes
15a1d1608a merge-fix: finishing resolving conflicts: naming convention. Fix: removed transfer aToken origin check from lendingPool to Validation Logic 2021-05-31 10:37:42 +02:00
Hadrien Charlanes
a4b6064f56 rebase: resolved conflicts after rebase: market config, internal/external validation for codesize and fixed bad conflict resolution 2021-05-26 09:27:45 +02:00
Hadrien Charlanes
b6f8dedfca refactor: refactor validation logic after merging validateHealthFactor 2021-05-26 09:21:49 +02:00
Hadrien Charlanes
2019b5f500 feat: implemented pause validation for reserve assets 2021-05-26 09:19:59 +02:00
Hadrien Charlanes
3be81a0433 feat: added bool isPaused in data reserve config 2021-05-26 09:14:13 +02:00
Hadrien Charlanes
62f3f47b84 feat: supply cap now by default disabled 2021-05-25 14:20:09 +02:00
Hadrien Charlanes
f30d5baf8e doc: updated docs for supply & borrow caps, 48 -> 36 bits 2021-05-25 13:44:04 +02:00
Hadrien Charlanes
099b1f0b05 fix: from 48 to 36 bits caps, added memory lib getters for caps 2021-05-25 11:23:37 +02:00
Hadrien Charlanes
7a40b944df fix: cached reserve parameters in validateDeposit and validateBorrow 2021-05-25 11:22:13 +02:00
The3D
26a09f2ba8 refactor: changed _mintToTreasury() function name 2021-05-24 19:39:13 +02:00
Hadrien Charlanes
3656bee3a1
Merge branch 'protocol-2.5' into feat/2.5-supply-and-borrow-caps 2021-05-17 19:42:59 +02:00
The3D
7395363e59 Merge branch 'protocol-2.5' into feat/gas-optimization-3 2021-05-15 00:28:21 +02:00
The3D
2507a2220b comments: fixed comment for validateHealthFactor() 2021-05-13 16:42:14 +02:00
The3D
2dac7fbd80 fix: fixed behavior in case the asset withdrawn was already being used as collateral 2021-05-10 14:02:36 +02:00
The3D
550a4abe7d Merge branch 'protocol-2.5' into feat/gas-optimization-3 2021-05-07 16:42:52 +02:00
Hadrien Charlanes
6a952901d9 doc: documented new reserveConfigurationMap data structure 2021-04-30 17:43:00 +02:00
Hadrien Charlanes
1de5a303f4 feat: implemented supply cap 2021-04-30 17:35:16 +02:00
Hadrien Charlanes
6a0d27c0de fix-refactor: Refactored tests with new getCaps function, fixed contract supplyCap mask 2021-04-30 16:48:09 +02:00
Hadrien Charlanes
f624783a36 feat-refactor: added supplyCap and refactored borrowCap 2021-04-30 16:17:05 +02:00
Hadrien Charlanes
c907d15e22 feat: borrowCap from 32 bits (4 billion max cap) to 48 bits (280 trilly) 2021-04-30 12:06:14 +02:00
The3D
5f0fb4bec9 refactor: changed the behavior of mintToTreasury 2021-04-29 20:40:37 +02:00
The3D
ed987ac46e refactor: removed balanceDecreaseAllowed 2021-04-29 19:55:52 +02:00
Hadrien Charlanes
32cfe739c7 fix-test: fixed max Borrow Cap, adapted test asset init, asset config 2021-04-28 17:42:41 +02:00
Hadrien Charlanes
9a8eb294a0 fix: borrowCap from 16 to 32 bits 2021-04-27 19:04:29 +02:00
Hadrien Charlanes
05ca0c4ed1 fix: Addded decimals in borrowCap require 2021-04-27 19:01:28 +02:00
Hadrien Charlanes
7e02877966 refactor: fixed stack too deep 2021-04-27 18:37:13 +02:00
Hadrien Charlanes
03103fb63d adding stack too deep 2021-04-27 18:26:08 +02:00
The3D
45acc0b854 refactor: improved variables naming 2021-04-27 17:21:36 +02:00
The3D
ada4994c7f refactor: Replaced balanceOf() with scaledBalanceOf() + normalizedIncome/debt 2021-04-27 15:31:11 +02:00
Hadrien Charlanes
4ce1bfcb8c feat: added borrow cap to config 2021-04-23 17:32:07 +02:00
The3D
03a410230d Updated interest rate strategy to generalize fetching of the available liquidity 2021-03-01 15:58:31 +01:00
David Racero
6a503eb0a8 Lint files. Add all ts and sol files to pre-commit. Add prettier format check to CI. 2021-01-27 15:43:34 +01:00
eboado
3b11a4dca1 - Fix non-initialized vars.rateMode on borrow validation 2020-12-22 10:13:57 +01:00
eboado
73c1934ada - Done less strict some other comparison with max of types 2020-11-26 15:46:09 +01:00
eboado
977a25aee2 - Relax condition on cumulateToLiquidityIndex() 2020-11-26 15:41:28 +01:00
eboado
7bcdce3090 - Reviewed tokenization documentation-wise
- Moved interaces in protocol/tokenization to the general interfaces/ folder.
2020-11-26 10:21:18 +01:00
The3D
92a731ec2c Updated libraries 2020-11-25 18:33:49 +01:00
The3D
126458c7aa Updated ReserveMap and UserMap 2020-11-24 16:17:27 +01:00
eboado
093e692573 - Unexcluded types/ on contracts libraries 2020-11-24 15:11:02 +01:00
eboado
5532ebdc8a - Moved data types (structs and enum) to a DataTypes library, to simplify interfaces 2020-11-24 14:53:34 +01:00
eboado
e2d1a274bc Merge branch 'master' into feat/153-improve-docs 2020-11-23 15:56:55 +01:00