Commit Graph

625 Commits

Author SHA1 Message Date
David Racero
fd46bf888a Print addresses after migration. Fix minor migration issues. 2020-11-02 14:45:00 +01:00
The3D
1b021dca18 Added tests 2020-11-02 14:44:11 +01:00
The3D
a2f60470ec Removed getRevision in the DelegationAwareAToken 2020-11-02 13:35:05 +01:00
andyk
f5d7d0192d fix bad merge mistakes 2020-11-02 15:00:24 +03:00
The3D
3570fc7803 Added delegation capabilities to the aToken 2020-11-02 12:54:56 +01:00
andyk
438ab0fca1 Merge branch 'feat/data-helpers' into feat/renameing 2020-11-02 14:50:41 +03:00
andyk
9ce6d3347f Merge branch 'master' into feat/data-helpers 2020-11-02 14:46:23 +03:00
andyk
5b85aef283 add scaled/principal debt 2020-11-02 14:41:53 +03:00
andyk
7ebdb06933 Merge branch 'master' into feat/renameing 2020-11-02 14:38:22 +03:00
The3D
fa3d61be6f Updated event 2020-11-02 12:24:12 +01:00
pol
c74dbb0503 added correct call to get total stable debt 2020-11-02 12:16:10 +01:00
The3D
6536200eea Update mint/burn event on the stable debt token 2020-11-02 11:55:37 +01:00
pol
7a8ed00909 principal and stable to total 2020-11-02 11:54:21 +01:00
Ernesto Boado
e5597b6156 Merge branch 'fix/108-redundancy-stable-debt' into 'master'
- Fixed redundant assignment on StableDebtToken.

Closes #108

See merge request aave-tech/protocol-v2!116
2020-11-02 10:26:11 +00:00
Ernesto Boado
c9bd6d97ff Merge branch 'fix/107-burn-event' into 'master'
- Fixed Burn event on AToken

Closes #107

See merge request aave-tech/protocol-v2!117
2020-11-02 10:25:58 +00:00
pol
498a5b5e1f Renaming 2020-11-02 10:37:24 +01:00
David Racero
e9d21ef74d Fixed conflicts 2020-11-02 10:20:59 +01:00
emilio
860402a94c updated comment 2020-11-02 09:17:48 +01:00
eboado
9fddcd0a20 - Fixed Burn event on AToken 2020-11-01 09:11:53 +01:00
eboado
0d7be4e7df - Fixed redundant assignment on StableDebtToken. 2020-11-01 09:03:45 +01:00
eboado
5d25b362ca - Removed unused _flashLiquidationLocked from LendingPoolStorage. 2020-11-01 08:53:33 +01:00
Ernesto Boado
282e6093bb Merge branch 'fix/51' into 'master'
Resolve "Remove the disable as collateral function on LendingPoolConfigurator"

Closes #51

See merge request aave-tech/protocol-v2!60
2020-10-31 17:41:48 +00:00
emilio
07429b0a57 Fixed P_IS_PAUSED 2020-10-31 13:55:19 +01:00
emilio
05d426645d Changed freezed to frozen 2020-10-31 13:47:16 +01:00
emilio
3f7bb806ac Merge branch 'master' into fix/51 2020-10-31 13:10:26 +01:00
emilio
08c8482cc1 Fixed conditions, removed console.log 2020-10-31 12:33:26 +01:00
emilio
d645155321 Updated configureAsCollateral 2020-10-31 12:17:59 +01:00
David Racero
1ac0a45394 Fix conflicts 2020-10-30 16:52:44 +01:00
eboado
929fd6bc83 - Removed buidler console.log from LendingPool 2020-10-30 16:40:49 +01:00
emilio
96d00edd00 Merge branch 'master' into fix/51 2020-10-30 16:21:37 +01:00
emilio
6f5bcddab1 fixed tests 2020-10-30 16:12:59 +01:00
eboado
cba766d282 Merge branch 'master' into feat/102-batch-delegation-allowance 2020-10-30 16:04:31 +01:00
emilio
b888fc12ab Merge branch 'master' into fix/51 2020-10-30 15:12:11 +01:00
eboado
a86902ee02 Merge branch 'master' into fix/89-available-liquidity 2020-10-30 15:02:40 +01:00
Ernesto Boado
22e4cc353c Merge branch '100/flash-loan-bath-modes' into 'master'
Added batch of modes to flashLoan()

Closes #100

See merge request aave-tech/protocol-v2!111
2020-10-30 14:01:52 +00:00
eboado
5a9a46a31f Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 14:55:03 +01:00
Ernesto Boado
4e56df7d56 Merge branch 'certora/integration' into 'master'
Resolve "Integrating the certora formal verification rules in the CI"

Closes #59

See merge request aave-tech/protocol-v2!67
2020-10-30 13:48:25 +00:00
Ernesto Boado
8a9afaaea0 Merge branch 'feat/105-msgsender-executeOperation' into 'master'
Passed `initiator` param to flashLoan()'s executeOperation() receiver.

Closes #105

See merge request aave-tech/protocol-v2!114
2020-10-30 13:00:27 +00:00
David Racero
b3cc9d1a62 Fix conflicts 2020-10-30 13:40:06 +01:00
eboado
631d6ebfcb - Passed initiator param to flashLoan()'s executeOperation() receiver.
- Removed unused ISwapAdapter.
2020-10-30 13:32:42 +01:00
eboado
b2bbe62822 - Added to to withdraw() 2020-10-30 12:38:41 +01:00
eboado
7227717a7a - Removed modes from validateFlashLoan. Not needed as executeBorrow() will fail. 2020-10-30 12:06:02 +01:00
The-3D
386138cc9c Merge branch 'feat/101-first-borrowing-on-debt-tokens' into 'master'
Added return of is first borrowing on debt tokens mint()

Closes #101

See merge request aave-tech/protocol-v2!110
2020-10-30 10:58:36 +00:00
emilio
decf652e19 Removed variable 2020-10-30 11:55:50 +01:00
eboado
af6b370f0e - Removed from memory struct debtMode on flashLoan() 2020-10-30 11:55:28 +01:00
eboado
910fa2dce6 - Added indexed to flash loan events. 2020-10-30 11:52:00 +01:00
eboado
092aacc85a - Added initiator to flash loan event. 2020-10-30 11:49:23 +01:00
eboado
de7ec39f24 - Fixed comment on ILendingPool 2020-10-30 11:42:27 +01:00
eboado
1954f609c2 Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 11:40:31 +01:00
emilio
a49f2744ee Updated comments 2020-10-30 11:38:49 +01:00
emilio
7ae9a2df8f Updated variable names 2020-10-30 11:36:53 +01:00
andyk
898d72dfb3 Merge branch 'master' into feat/data-helpers 2020-10-30 13:16:21 +03:00
andyk
18d7a44db5 removal of ReserveLogic.ReserveData from UI helper return 2020-10-30 13:14:42 +03:00
pistiner
22353eeee5 Fixes to run on VariableDebtToken 2020-10-30 01:07:30 +02:00
pistiner
9da3fefb26 Merge branch 'master' of https://gitlab.com/aave-tech/protocol-v2 into certora/integration 2020-10-29 23:26:21 +02:00
emilio
e4dc22e50e Fixed events, removed unused constants in addressesProvider 2020-10-29 18:03:19 +01:00
David Racero
2892e69df0 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-10-29 16:20:12 +01:00
Ernesto Boado
6b26e39d5f Merge branch 'feat/74' into 'master'
Feat/74 - Add `onBehalf` for flashloan(), to open debt if debt mode selected

Closes #74

See merge request aave-tech/protocol-v2!96
2020-10-29 15:08:18 +00:00
David Racero
e6d913d251 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 97-create-a-utility-contract-to-deposit-withdraw-repay-with-eth 2020-10-29 15:50:37 +01:00
David Racero
a9e7fa3516 Added WETHGateway tests 2020-10-29 15:50:32 +01:00
Ernesto Boado
b7f47d160e Merge branch 'fix/99' into 'master'
Resolve "Set the isUsedAsCollateral flag on aToken transfers"

Closes #99

See merge request aave-tech/protocol-v2!107
2020-10-29 14:48:48 +00:00
eboado
913a6a9237 - Added batch of modes to flashLoan() 2020-10-29 15:14:28 +01:00
eboado
38bb760112 - Added return of is first borrowing on debt tokens mint() 2020-10-29 14:55:11 +01:00
eboado
edfe17bd97 - Added batch to credit delegation 2020-10-29 14:36:01 +01:00
David Racero
c187440f84 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into fix/75-improve-migration-scripts 2020-10-29 14:11:00 +01:00
emilio
3f7d913fd4 Fixed issue on 0 transfer, added check that the caller must be an aToken 2020-10-29 13:43:24 +01:00
David Racero
744befc46c Added deposit test for WETHGateway 2020-10-29 12:44:21 +01:00
eboado
6cd18c4320 - Simplified getter of boolean fields on ReserveConfiguration.
- Added all 256 bits to masks on ReserveConfiguration for clarity.
2020-10-29 12:09:07 +01:00
emilio
2cf84f19ce removed console import 2020-10-29 12:03:26 +01:00
emilio
9e55ea12b6 Fixes #99 2020-10-29 11:57:43 +01:00
pistiner
4030d48787 Fixes to run on StableDebtToken contract 2020-10-29 01:57:15 +02:00
David Racero
b5a3903ca0 Merge changes 2020-10-28 18:47:35 +01:00
David Racero
a966d9f53f Added new StringLib library with concat to reuse function in deployment helpers. 2020-10-28 18:39:19 +01:00
David Racero
1ef1f614bd Remove extra whitespace 2020-10-28 18:13:31 +01:00
David Racero
9317df9252 Added boilerplate deployment, getters and tests. 2020-10-28 18:06:24 +01:00
The-3D
251bd591f5 Merge branch 'fix/88-validations-configs' into 'master'
Fixes #88

Closes #88

See merge request aave-tech/protocol-v2!101
2020-10-28 14:55:04 +00:00
David Racero
0d87292867 Fix merge conflicts. Fix ETH to WETH symbol change 2020-10-28 15:49:50 +01:00
David Racero
8ad022979b Added WETHGateway 2020-10-28 15:41:31 +01:00
Ernesto Boado
47d00a0e3a Merge branch 'fix/98' into 'master'
Resolve "Optimize percentageMath and wadRayMath"

Closes #98

See merge request aave-tech/protocol-v2!100
2020-10-28 13:41:52 +00:00
The-3D
a9c3a033ac Merge branch 'fix/95-cache-reserves-count' into 'master'
Fixes #95

Closes #95

See merge request aave-tech/protocol-v2!105
2020-10-28 11:46:37 +00:00
emilio
e91e3595d6 Updated PercentageMath 2020-10-28 12:39:11 +01:00
eboado
232743c332 - Cached _reservesCount on _addReserveToList() 2020-10-28 12:02:40 +01:00
eboado
a9a863fcb4 - Fixes misc comments on LendingPoolAddressesProviderRegistry. 2020-10-28 11:56:10 +01:00
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
emilio
bd911de167 Fixed ReserveDataUpdated event 2020-10-27 15:09:11 +01:00
The-3D
7eb31124b2 Merge branch 'fix/83-msgSender' into 'master'
- Changed msg.sender to _msgSender()

See merge request aave-tech/protocol-v2!97
2020-10-27 14:05:03 +00:00
David Truong
8e64702013 Merge branch 'master' into 'feat/74'
# Conflicts:
#   deployed-contracts.json
2020-10-27 13:54:18 +00:00
eboado
87bbfb9571 - Changed msg.sender to _msgSender() 2020-10-27 14:42:11 +01:00
andyk
3400d3b2a8 Merge branch 'master' into feat/data-helpers 2020-10-27 16:01:18 +03:00
Ernesto Boado
c34a22e79f Merge branch 'feat/70-basic-flow-task' into 'master'
Feat/70 basic flow task

See merge request aave-tech/protocol-v2!83
2020-10-27 13:00:32 +00:00
David Truong
a517d5d11d - implement test for onBehalfOf flashloan borrow debt 2020-10-27 13:10:10 +01:00
The-3D
cb03bab6ea Merge branch 'fix/85-total-supply-shadowing' into 'master'
Fixes #85

Closes #85

See merge request aave-tech/protocol-v2!94
2020-10-27 12:05:49 +00:00
eboado
85246906e4 - Removed shadowing of totalSupply on IncentiveizedERC20 2020-10-27 13:04:07 +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
The-3D
2fd3fe141a Merge branch 'fix/84-seconds-year-comment' into 'master'
Fixes #84

Closes #84

See merge request aave-tech/protocol-v2!92
2020-10-27 11:16:38 +00:00
David Truong
d78c89151b Merge remote-tracking branch 'origin/master' into feat/74 2020-10-27 12:14:34 +01:00
David Racero
1ef22f036b Fix conflicts 2020-10-27 12:12:05 +01:00
David Truong
e0660bda7b Merge remote-tracking branch 'origin/master' into feat/74
# Conflicts:
#	contracts/interfaces/ILendingPool.sol
#	contracts/lendingpool/LendingPool.sol
#	test/flashloan.spec.ts
2020-10-27 12:05:48 +01:00
pol
ddf17d7249 merged with master 2020-10-27 11:37:06 +01:00
Ernesto Boado
917ea0b4ea Merge branch 'fix/82' into 'master'
Resolve "Fix events for the subgraph implementation"

Closes #82

See merge request aave-tech/protocol-v2!91
2020-10-27 10:34:37 +00:00
David Racero
161fb63f19 Added borrow rates deployment optimization and minor tweaks for deployment helpers 2020-10-27 10:58:51 +01:00
pol
52c21a38ba Merge branch 'master' of sendra.gitlab.com:aave-tech/protocol-v2 into feat/70-basic-flow-task 2020-10-27 10:49:34 +01:00
emilio
4834a587f5 Fixed the amountToWithdraw in withdraw event 2020-10-27 10:47:01 +01:00
eboado
0a6b1caad0 - Added comment to SECONDS_PER_YEAR constant 2020-10-27 10:44:37 +01:00
emilio
aba38a800f Fixed event for the avg stable rate 2020-10-27 10:36:02 +01:00
emilio
31a76ef047 Updated ILendingPool 2020-10-27 10:31:32 +01:00
Ernesto Boado
bb6b322925 Merge branch 'feat/80-optimization-addresses-prov-reg' into 'master'
Fixes #80

Closes #80

See merge request aave-tech/protocol-v2!89
2020-10-27 09:28:29 +00:00
Ernesto Boado
af1311a536 Merge branch 'feat/81-optimization-addresses-prov-reg' into 'master'
Fixes #81

Closes #81

See merge request aave-tech/protocol-v2!90
2020-10-27 09:28:26 +00:00
David Racero
e17f2ec814 Added collateral enable and stable migration optimization. 2020-10-26 17:43:10 +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
David Truong
d2b52ced8f Merge commit 'ea66bf317030bd8e4caf9fdfe5b3933adc187fcc' into feat/74 2020-10-26 13:29:59 +01:00
David Truong
24d5c4766f [WIP] Adding onBehalfOf to flashloan 2020-10-26 13:27:31 +01:00
The3D
9c283fb4cb Fixed PVE014 2020-10-26 12:14:33 +01:00
The3D
7a8ed507f4 Fixes PVE013-4 2020-10-26 11:59:49 +01:00
The3D
5bd4fd0e13 Updated comment 2020-10-26 11:58:57 +01:00
eboado
c14ea749c4 - Optimized length load on _addToAddressesProvidersList(). 2020-10-26 11:18:56 +01:00
The3D
14c4b750e1 Fixes PVE013 2020-10-26 11:18:25 +01:00
eboado
8a82c8f1c0 - Optimized getAddressesProvidersList() on addresses provider registry. 2020-10-26 11:10:57 +01:00
The3D
c5d7bb5e80 Fixed PVE011 2020-10-26 11:04:13 +01:00
The3D
65dace0054 updated validation of validateRepay 2020-10-26 10:57:45 +01:00
The3D
4b750850a2 Fixes PVE006-2 2020-10-26 10:48:43 +01:00
David Racero
95b94e46e2 Merge master 2020-10-26 10:41:24 +01:00
The3D
c44ed2c0c7 Updated flashloan event 2020-10-26 10:35:44 +01:00
The3D
6398fe4260 Fix comments, tests 2020-10-23 18:41:08 +02:00
David Racero
1c7ce57b2b Aggregated deployments for initialization, atokens and debtTokens 2020-10-23 18:38:27 +02:00
The3D
4e1a8c29bd Fixed wad functions in WadRayMath 2020-10-23 16:52:22 +02:00
David Racero
cbc188e62a merge and add helper contracts 2020-10-23 15:18:01 +02:00
The3D
86d25393e9 Add small optimization in _mintToTreasury 2020-10-23 13:09:19 +02:00
pol
1384afa534 merged conflicts 2020-10-23 13:04:09 +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
pol
258b70fad3 cleaned code 2020-10-20 15:19:41 +02:00
pol
4e951147c2 added type method on aggregator 2020-10-20 12:54:17 +02:00
emilio
19756cdbe8 fixed PVE001, PVE009(1) 2020-10-19 18:29:32 +02:00
emilio
3575d58ff4 unified interface of stable, variable debt tokens and aTokens 2020-10-19 16:24:49 +02:00
emilio
1dd92aed67 fixes PVE006 2020-10-19 15:52:56 +02:00
emilio
bdac7b0d41 Fixes PVE004 2020-10-19 15:45:35 +02:00