Commit Graph

255 Commits

Author SHA1 Message Date
eboado
3f714b9dc8 - Fixed non-initialized availableLiquidity on validateBorrow() 2020-10-28 11:48:55 +01:00
emilio
064af06385 updated percentageMath 2020-10-28 11:47:01 +01:00
eboado
6be8b1c5fd - Added validations on ReserveConfiguration's numeric setters. 2020-10-28 10:54:09 +01:00
emilio
a2d068a817 Merge branch 'master' into fix/87 2020-10-27 22:12:23 +01:00
emilio
1cd7f2d5a0 Fixed error on variable naming 2020-10-27 17:49:35 +01:00
emilio
276dee4918 Fixes#87 2020-10-27 17:22:51 +01:00
emilio
28a6323763 fixed condition, local variable name 2020-10-27 16:57:05 +01:00
The-3D
b1fdd59c39 Merge branch 'feat/86-linear-interest-optimization' into 'master'
Fixes #86

Closes #86

See merge request aave-tech/protocol-v2!93
2020-10-27 12:02:32 +00:00
eboado
e88d9dc81b - Optimized calculateLinearInterest() on MathUtils. 2020-10-27 12:44:30 +01:00
eboado
0a6b1caad0 - Added comment to SECONDS_PER_YEAR constant 2020-10-27 10:44:37 +01:00
The-3D
85168f8ea7 Merge branch 'fix/78' into 'master'
Resolve "Extend flashloans to allow flashborrowing of multiple currencies"

Closes #78

See merge request aave-tech/protocol-v2!87
2020-10-26 13:14:42 +00:00
The3D
9c283fb4cb Fixed PVE014 2020-10-26 12:14:33 +01:00
The3D
4e1a8c29bd Fixed wad functions in WadRayMath 2020-10-23 16:52:22 +02:00
The3D
86d25393e9 Add small optimization in _mintToTreasury 2020-10-23 13:09:19 +02:00
The3D
dadebe9d2c Updated optimization 2020-10-23 10:57:22 +02:00
The3D
a2e2450bb3 Finalized implementation, fixed tests 2020-10-22 20:37:50 +02:00
The3D
302a19a1bc Merge branch 'master' into fix/73 2020-10-22 19:20:57 +02:00
The3D
af99c88b70 Added error constant 2020-10-22 19:20:19 +02:00
The3D
d4abc12349 Updated wadDiv 2020-10-22 19:06:37 +02:00
The3D
d05a2d1c4f Rolled back PVE002, added further optimization 2020-10-22 18:59:15 +02:00
The3D
8873b9cdac initial implementation 2020-10-22 18:15:56 +02:00
The3D
b7efa920ca Remove swapLiquidity/repayWithCollateral 2020-10-22 11:50:04 +02:00
emilio
19756cdbe8 fixed PVE001, PVE009(1) 2020-10-19 18:29:32 +02:00
emilio
b57a59ea6d Fixes PVE002 2020-10-19 15:40:19 +02:00
emilio
e0f5c5fb7f Fixes PVE002 2020-10-19 15:29:42 +02:00
Ernesto Boado
017589a8f7 Merge branch 'fix/68' into 'master'
Resolve "Gas optimizations"

Closes #68

See merge request aave-tech/protocol-v2!77
2020-10-16 08:05:11 +00:00
The3D
b4f8592775 Fixed #69 2020-10-15 17:57:54 +02:00
The3D
6a06a3e88f removed openzeppelin imports2 2020-10-15 15:41:56 +02:00
The3D
937fb1df93 Folders reorg 2020-10-15 15:25:27 +02:00
The3D
86ddf25a3a Reorganized folders 2020-10-15 15:16:05 +02:00
The3D
46bcf4b821 Merge branch 'master' into feat/rm-unused-imports 2020-10-15 14:29:51 +02:00
The3D
1b1fd6e5e2 Fixes #68 2020-10-15 14:13:46 +02:00
Ernesto Boado
a12f871953 Merge branch 'fix/62' into 'master'
Resolve "Replace getters from LendingPool"

Closes #62

See merge request aave-tech/protocol-v2!70
2020-10-15 07:39:13 +00:00
David Racero
479aa3ef8e Updated numbers 2020-10-15 09:38:46 +02:00
The3D
45f3c26139 Removed ERC20 proxy 2020-10-14 13:55:38 +02:00
David Racero
57ffc9c613 Reorg errors library, sorted by error number, added prefix to each constant and a prefix glossary. 2020-10-14 11:03:32 +02:00
David Racero
b919886916 Remove unused imports 2020-10-14 09:53:48 +02:00
The3D
645ecb214b Merge branch 'master' into fix/64 2020-10-13 16:43:30 +02:00
The3D
543c3f5c9c Merge branch 'master' into fix/62 2020-10-13 13:41:57 +02:00
The3D
1b4bc6f855 Added ERC20 proxy 2020-10-13 13:21:11 +02:00
The3D
94c9b7156c Added InitializableImmutableAdminUpgradeabilityProxy 2020-10-13 10:35:06 +02:00
The3D
d681a21272 Added immutable proxies 2020-10-13 10:28:52 +02:00
The3D
53d6114775 Merge branch 'master' into feat/18 2020-10-12 15:19:27 +02:00
The-3D
fc9b096f23 Merge branch 'fix/60-flashloan-attack' into 'master'
Fixes #60

Closes #60

See merge request aave-tech/protocol-v2!68
2020-10-12 13:11:38 +00:00
The3D
b450a04642 Added getter for userconfiguration 2020-10-12 14:37:53 +02:00
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
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
d150458604 Merge branch 'master' into feat/18 2020-10-08 15:41:48 +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
eboado
273070fada Added return uint256 validation to flashLoan() 2020-10-07 16:20:32 +02:00
The3D
24a4980496 Refactored reservesList to a mapping 2020-10-06 15:51:48 +02:00
The3D
e86cf9fe0a Fixes liquidation bonus mask, adds comment on reserved bits 2020-10-06 10:23:02 +02:00
The3D
5a67250743 fixed error code 2020-09-30 18:03:34 +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
The3D
948bd960be Initial commit 2020-09-28 19:33:39 +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
David Racero
ffc81df4ee Fix conflicts and renamings 2020-09-24 17:48:29 +02:00
The3D
12f1dbd0dc Readded calculateAvailableBorrowsETH 2020-09-21 22:08:44 +02:00
The3D
2e30bb8b85 Fixed error on rebalance conditions, changed style of internal functions 2020-09-21 21:15:12 +02:00
The3D
332cdff67a Merge branch 'master' into fix/45 2020-09-21 20:38:15 +02:00
The3D
45e4e0b5fe Merge branch 'master' into fix/42 2020-09-21 20:27:14 +02:00
The3D
75579e5d28 Merge branch 'master' into fix/45 2020-09-21 20:19:28 +02:00
The3D
c346251df0 Added comments 2020-09-21 18:51:51 +02:00
The3D
c278832e5a Removed unused error code 2020-09-21 17:59:44 +02:00
The3D
c7f0dfbaa9 Merge branch 'master' into fix/34 2020-09-21 10:03:18 +02:00
The3D
7c5de62910 Merge branch 'master' into 40-refactor-the-storage-of-lp 2020-09-21 09:31:54 +02:00
The3D
bfe0657b1a Updated code to fix deposit and withdraw tests 2020-09-17 16:37:51 +02:00
The3D
e4890a14c2 Merge branch 'master' into fix/34 2020-09-17 11:55:38 +02:00
The3D
7986a4704b Fixed mintToTreasury function 2020-09-17 10:53:55 +02:00
The3D
5c2ec07b70 Fixes #42 2020-09-16 17:12:07 +02:00
The3D
274b63713d Merge branch 'master' into fix/34 2020-09-16 16:34:29 +02:00
andyk
9594571761 Merge branch 'master' into 41-rename-liqudiationmanager 2020-09-16 15:22:55 +01:00
andyk
373bac109b small comments fixes 2020-09-16 15:45:49 +03:00
andyk
2a6248c6d2 misc renaming 2020-09-16 15:09:42 +03:00
andyk
66113d64a2 rename LendingPoolLiquidationManager -> LendingPoolCollateralManager 2020-09-16 13:41:12 +03:00
andyk
214c51f365 disallow liquiditySwap with freezed reserve as to 2020-09-16 10:22:46 +03:00
David Racero
6cbcf39454 Fixed conflicts and merge changes 2020-09-15 17:24:50 +02:00
The3D
c6a3588792 Merge branch 'master' into fix/34 2020-09-15 15:33:09 +02:00
David Racero
aa834ee904 Added missing whenNotPaused to new functions. Changed IS_PAUSED error code to 58 to prevent error collision. Added new pausable tests. 2020-09-15 13:13:28 +02:00
David Racero
83bf3e5677 Trim PausablePool into LendingPool to save code size. 2020-09-15 11:56:08 +02:00
David Racero
6842978706 Merge and fix conflicts 2020-09-15 10:57:04 +02:00
eboado
59996e1ece - Refactor validation of swapLiquidity() to ValidationLogic.
- Added extra check on active reserves on swapLiquidity().
2020-09-15 10:28:39 +02:00
eboado
8d391b9ab5 Merge branch 'master' into 30-collateral-swap 2020-09-15 09:56:41 +02:00
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
c4904bc41c Merge branch 'master' into 30-collateral-swap 2020-09-14 21:06:16 +02:00
David Racero
59bfdc39f2 Fix conflicts 2020-09-14 19:59:00 +02:00
The3D
d542f098c1 fixed deposit, withdraw tests 2020-09-14 19:25:45 +02:00
eboado
a87dae445f Merge branch 'master' into 33-add-native-credit-delegation 2020-09-14 17:24:55 +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
David Racero
5af23057fa Fix conflicts. 2020-09-14 15:53:34 +02:00
David Racero
6e0091a668 Added PausablePool contract to support errors by number. 2020-09-14 15:24:30 +02:00
The3D
bb4e1b5c4b Fixed errors 2020-09-14 15:09:16 +02:00
andyk
35bff4bea2 add comment for getDebtTokenAddress function 2020-09-14 15:50:46 +03:00