Commit Graph

385 Commits

Author SHA1 Message Date
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
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
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
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
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
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
6ee4b2725b Fix order of calculation of the interest rates 2020-09-24 10:00:17 +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
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
07db321b4d updated rebalance conditions,tests 2020-09-21 19:52:22 +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
e348c334e3 Cleaned up aToken, debt tokens code 2020-09-21 17:58:02 +02:00
The3D
9d1c13cf96 added events to mintToTreasury() 2020-09-21 17:41:38 +02:00
The3D
2ebe34a051 removed userIndex from variabledebttoken 2020-09-21 16:11:14 +02:00
The3D
b7c4a255a9 Refactored aToken 2020-09-21 15:58:19 +02:00
The3D
6f9ff11e49 Fixed credit delegation tests 2020-09-21 15:35:22 +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
5868a4844f Updated testsW 2020-09-18 17:56:33 +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
5c6a8b0926 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 2020-09-17 11:52:27 +02:00
The3D
7986a4704b Fixed mintToTreasury function 2020-09-17 10:53:55 +02:00
The3D
bcdef6fa7e Added change to the stabledebttoken 2020-09-16 20:00:13 +02:00
The3D
5c2ec07b70 Fixes #42 2020-09-16 17:12:07 +02:00
The3D
570a81a1b2 Fixed aToken deployment function 2020-09-16 16:44:27 +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
The3D
d06e3a39fc Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 2020-09-16 16:04:19 +02: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
Ernesto Boado
b182731074 Merge branch 'feat/pei-integration' into 'master'
Integration of pei

See merge request aave-tech/protocol-v2!49
2020-09-16 11:17:05 +00:00
andyk
66113d64a2 rename LendingPoolLiquidationManager -> LendingPoolCollateralManager 2020-09-16 13:41:12 +03:00
andyk
83e0318bc6 add logic to set usageAsCollateralEnabled for the user if his balance was 0 before swap 2020-09-16 13:30:57 +03:00
andyk
77c812b975 Refactor the storage of lendingpool to LendingPoolStorage parent contract 2020-09-16 13:16:51 +03:00
andyk
214c51f365 disallow liquiditySwap with freezed reserve as to 2020-09-16 10:22:46 +03:00
The3D
d873b63082 Removed unused flashloan vars 2020-09-15 18:54:59 +02:00
The3D
04a67d3df0 updated stabledebttoken 2020-09-15 18:49:53 +02:00
andyk
125644cc54 Merge branch 'master' into feat/pei-integration 2020-09-15 18:43:55 +03:00
David Racero
6cbcf39454 Fixed conflicts and merge changes 2020-09-15 17:24:50 +02:00
andyk
fba2f03c03 rename ERC20 to IncentivizedERC20 2020-09-15 18:08:28 +03:00
andyk
6af1e0923f fix _incentivesController call in _transfer 2020-09-15 17:49:53 +03:00
andyk
3340bb14fb typo 0x0 -> 0 2020-09-15 17:40:40 +03:00
andyk
43c8ef02db initial integration of pei, no tests 2020-09-15 16:53:20 +03:00
eboado
aef8e68ce0 - Changed _paused visibility and added getter. 2020-09-15 15:46:19 +02:00
The3D
c6a3588792 Merge branch 'master' into fix/34 2020-09-15 15:33:09 +02:00
David Racero
89ca48e0b2 Merge branch 'master' into 'feat/pausable'
# Conflicts:
#   contracts/tokenization/AToken.sol
2020-09-15 13:27:21 +00:00
The3D
3c3a01b80f Updated events on debt tokens 2020-09-15 15:20:32 +02:00
Ernesto Boado
191f65c7f0 Merge branch 'feat/modifier-to-function' into 'master'
Change modifier to function to save code size

See merge request aave-tech/protocol-v2!47
2020-09-15 12:53:28 +00:00
The3D
b963afb0fb Updated AToken, ERC20 2020-09-15 14:36:02 +02:00
David Racero
0150ba70e7 Merge feat/modifier-to-function fixes 2020-09-15 14:35:50 +02:00
David Racero
bfc46daadd Change modifier to function to save code size 2020-09-15 14:25:00 +02:00
David Racero
38bec0b8de Save some extra codesize. 2020-09-15 14:21:17 +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
eea47aedde Minimize Pausable contract 2020-09-15 11:03:04 +02:00
David Racero
6842978706 Merge and fix conflicts 2020-09-15 10:57:04 +02:00
eboado
0c94b24700 - Fixed description on swapLiquidity(). 2020-09-15 10:43:22 +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
eboado
172cb05b64 - Renamed collateralSwap() to swapDeposit().
- Added docs to sw
2020-09-15 09:51:23 +02:00
The3D
f428f69ebd Merge branch 'master' into fix/34 2020-09-15 09:34:00 +02:00
andyk
65775ca3bf update collateralSwap signature in the delegate call 2020-09-15 09:46:24 +03: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
David Racero
4ec61ee993 When transfer, check pause at pool to save one external call. 2020-09-14 19:46:27 +02:00
The3D
d542f098c1 fixed deposit, withdraw tests 2020-09-14 19:25:45 +02: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
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
5af23057fa Fix conflicts. 2020-09-14 15:53:34 +02:00
David Racero
775d003cc0 Keep standard paused() name function. 2020-09-14 15:33:24 +02:00