Commit Graph

747 Commits

Author SHA1 Message Date
eboado
b2a871f8f7 - Removed unneed (and potentially harmful) initialize() from DelegationAwareAToken. 2020-11-26 16:02:51 +01:00
The3D
47e80d7e4f Moved the mint action after the transfer 2020-11-26 15:57:03 +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
The-3D
e1f636ccd6 Merge branch 'fix/163-tokenization-docs' into 'master'
- Reviewed documentation of protocol/tokenization

Closes #163

See merge request aave-tech/protocol-v2!187
2020-11-26 14:08:28 +00:00
The3D
51d3bd0430 Updated comment 2020-11-26 14:58:42 +01:00
The3D
e16d33a4d7 Updated comment 2020-11-26 14:57:52 +01:00
The3D
56aca3e156 Updated comment 2020-11-26 14:57:06 +01:00
eboado
fa11327b59 - Added marketId and setter on LendingPoolAddressesProvider 2020-11-26 13:09:49 +01:00
eboado
e418bcc01e - Added return of withdraw amount to withdraw() 2020-11-26 11:02:26 +01:00
eboado
3206c5297f - Added return value to repay() 2020-11-26 10:58:38 +01:00
eboado
997d29a009 - Added extra comment on IStableDebtToken 2020-11-26 10:51:43 +01:00
eboado
3cbb122a2d - Fixed typo on IStableDebtToken 2020-11-26 10:38:50 +01:00
eboado
a27239129f - Misc doc fixes 2020-11-26 10:37:04 +01:00
eboado
3ef75e4018 - Fix redeem() = withdraw() on docs 2020-11-26 10:29:53 +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
Gerardo Nardelli
3415204216 Update adapter docs 2020-11-25 15:49:11 -03:00
The3D
92a731ec2c Updated libraries 2020-11-25 18:33:49 +01:00
eboado
00477d9334 - Added using to LendingPoolConfigurator 2020-11-25 16:17:08 +01:00
The3D
7d96451ced Updated comment 2020-11-25 15:31:27 +01:00
The3D
c997a910c8 Updated comment 2020-11-25 15:31:03 +01:00
The3D
43d64c4509 Updated LendingPoolConfigurator 2020-11-25 15:27:17 +01:00
Gerardo Nardelli
cdd922c908 Merge fixes 2020-11-25 11:07:33 -03:00
Gerardo Nardelli
71ea58f758 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	test/__setup.spec.ts
2020-11-25 10:46:01 -03:00
Gerardo Nardelli
a496be8833 Refactor to avoid leftovers on _swapAndRepay with flash loan 2020-11-25 10:44:50 -03:00
The3D
f9290705a0 Removed space in comments 2020-11-25 13:45:52 +01:00
The3D
ee11faa573 Updated comments, renamed variales 2020-11-25 13:41:09 +01:00
eboado
ba516a10d0 - Improved docs and naming on LendingPoolCollateralManager 2020-11-25 12:03:11 +01:00
The3D
e4bccaed91 Fixed ILendingPool interface 2020-11-25 11:40:55 +01:00
Gerardo Nardelli
4d2d9e8459 Avoid leftovers on swapAndRepay 2020-11-24 14:06:58 -03:00
The3D
1054dea632 Removed reserveLogic import from WETHGateway 2020-11-24 17:07:47 +01:00
The3D
126458c7aa Updated ReserveMap and UserMap 2020-11-24 16:17:27 +01:00
Gerardo Nardelli
50e5ea907b Add first draft of swapAndRepay without using flash loans 2020-11-24 12:11:13 -03: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
The3D
3e6a9d3596 Updated comment 2020-11-23 19:26:25 +01:00
The3D
e415c9cd4d Updated comment 2020-11-23 19:20:18 +01:00
The3D
10e9f17446 Added interface for LendingPoolLiquidationManager 2020-11-23 19:17:19 +01:00
The3D
eecb0b4fef Replaced borrows with debt in comments and the InterestRateStrategy contract 2020-11-23 18:52:52 +01:00
The3D
584a567635 Updated flashloan updateInterestRates 2020-11-23 18:44:13 +01:00
eboado
e2d1a274bc Merge branch 'master' into feat/153-improve-docs 2020-11-23 15:56:55 +01:00
David Racero
98ac879181 Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 154-updates-for-walletbalalanceprovider-contract 2020-11-23 12:04:59 +01:00
David Racero
6532fd0765 Move protocol contracts inside own directory to scope audits. Update library hash at contracts-deployments.ts:165 due libraries paths has changed. 2020-11-23 11:28:57 +01:00
eboado
0bca8c6519 Merge branch 'master' into feat/153-improve-docs 2020-11-23 11:15:31 +01:00
eboado
f98335cb68 - Improved docs on LendingPool and interface 2020-11-23 10:58:04 +01:00
Gerardo Nardelli
43d05c2bdf Refactor repayAdapter to flash loan the debt asset instead of the collateral 2020-11-20 15:53:50 -03:00
Gerardo Nardelli
b48b50208a Support using all the collateral for a debt repay 2020-11-20 09:06:28 -03:00
The3D
f1778b88d4 Removed the ^ on solidity version 2020-11-20 11:45:20 +01:00
The3D
8c03180f89 Updated solidity version 2020-11-20 11:41:58 +01:00
David Racero
92168f500b Fixes missing param at deployDefaultReserveInterestRateStrategy. Update WalletBalanceProvider to add provider argument. Minor fixes migration script. 2020-11-20 11:32:17 +01:00
The3D
75c7d52031 removed hardhat console 2020-11-20 10:13:14 +01:00
Gerardo Nardelli
8a303c6195 Refactor repayMode in repayAdapter 2020-11-19 16:39:00 -03:00
The3D
d5f0e9ebf9 Updated migration scripts 2020-11-19 18:11:53 +01:00
The3D
3f5822f5f6 Updated DefaultInterestRateStrategy 2020-11-19 17:17:11 +01:00
eboado
0c6ec03cec - Reviewed comments on DefaultReserveInterestRateStrategy and interface. 2020-11-19 14:48:15 +01:00
eboado
97aa76b13c - Moved StringLib to deployments/ 2020-11-19 14:23:46 +01:00
eboado
a5f9332234 - Fixed comments on LendingPoolAddressesProviderRegistry and removed useless getter. 2020-11-19 14:21:36 +01:00
Gerardo Nardelli
9478381992 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	test/helpers/make-suite.ts
2020-11-19 09:32:52 -03:00
eboado
4192a5d992 - Improved docs of LendingPoolAddressesProvider 2020-11-19 12:52:34 +01:00
eboado
94ce7c649f - Fixed innacuracy on borrow() comments. 2020-11-19 10:46:10 +01:00
Gerardo Nardelli
092f9c983b Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-getters.ts
2020-11-17 13:21:41 -03:00
Ernesto Boado
200c02e081 Merge branch '140-setup-mainnet-fork-simulation-environment-based-on-tenderly' into 'master'
Add Mainnet fork, deployment check-list, add Tenderly integration

Closes #140

See merge request aave-tech/protocol-v2!160
2020-11-17 11:58:01 +00:00
David Racero
12d17179d6 Renamed ChainlinkProxyPriceProvider to AaveOracle 2020-11-17 10:24:24 +01:00
David Racero
27365697ac Added mainnet check list. Remove deployed contracts. Update README.md 2020-11-16 19:22:22 +01:00
Gerardo Nardelli
d0d0e869d0 Fix flash loan fee usage in _getAmountsIn 2020-11-13 12:30:14 -03:00
Gerardo Nardelli
101c775789 Avoid param override in repay adapter 2020-11-13 12:28:57 -03:00
Gerardo Nardelli
4c693d1947 Update amountToSwap calc in liquidity swap adapter 2020-11-13 12:27:18 -03:00
The3D
b66253bfe9 Removed separate setters 2020-11-13 15:48:38 +01:00
The-3D
cfc002dcd1 Merge branch 'fix/147-148-uint128max' into 'master'
- Changed `1 << 128` to `type(uint128).max`

Closes #148 and #147

See merge request aave-tech/protocol-v2!169
2020-11-12 13:38:19 +00:00
eboado
f32ac702ec - Refactoring on some Errors 2020-11-12 13:54:23 +01:00
eboado
693576f853 - Replaced hardcoded error messages on ReserveLogic. 2020-11-12 12:50:35 +01:00
eboado
0f086a8a27 - Changed 1 << 128 to type(uint128).max 2020-11-12 10:29:00 +01:00
eboado
982fb46336 - Reorder on LiquidationCallLocalVars for better packing. 2020-11-12 10:16:10 +01:00
eboado
996c16237c - Changed CONFIGURATOR_REVISION visibility to internal 2020-11-12 09:48:03 +01:00
eboado
82268e6a5e - Removed not needed receive() on LendingPool 2020-11-11 16:05:44 +01:00
Ernesto Boado
9fdd9f11da Merge branch 'fix/150' into 'master'
Resolve "Fix calculation on burning of stableDebt"

Closes #150

See merge request aave-tech/protocol-v2!161
2020-11-11 14:58:07 +00:00
The3D
81c0fbcb02 Fixes stable borrow debt 2020-11-11 15:54:08 +01:00
eboado
9b04f21ae0 - Changed to require on result on liquidationCall() 2020-11-11 15:52:42 +01:00
Gerardo Nardelli
37a2f14fca Merge branch 'master' into feat/uniswap-adapter-flashloan 2020-11-10 16:28:01 -03:00
The3D
80997ea965 Added checks on liquidationBonus 2020-11-10 18:16:27 +01:00
David Racero
2d5e651959 Fix conflicts 2020-11-10 17:52:23 +01:00
David Racero
743eb6ec29 Added isContract to check asset at LendingPool.initResetve function 2020-11-10 17:50:13 +01:00
The-3D
3fc812e7fb Merge branch 'fix/130' into 'master'
Resolve "Add a modifier for _whenNotPaused()"

Closes #130

See merge request aave-tech/protocol-v2!152
2020-11-10 16:48:30 +00:00
The-3D
ec600e56e7 Merge branch 'fix/131' into 'master'
Resolve "Change _reservesCount++; with _reservesCount=reservesCount+1; in addToReservesList()"

Closes #131

See merge request aave-tech/protocol-v2!149
2020-11-10 16:41:13 +00:00
The3D
2df0598e4b Added modifiers 2020-11-10 17:38:06 +01:00
The-3D
74ab2fd126 Merge branch 'fix/133' into 'master'
Resolve "Add validation on UserConfiguration that the reserveIndex is < 128"

Closes #133

See merge request aave-tech/protocol-v2!151
2020-11-10 16:29:11 +00:00
The3D
12707238f8 Fixes #131 2020-11-10 17:28:43 +01:00
The3D
6460dd9e03 fixes #133 2020-11-10 17:21:59 +01:00
The3D
f125eeb0c5 Removed unneeded conditions 2020-11-10 17:15:36 +01:00
The3D
92e2ecab51 Added more detailed comments on configureReserveAsCollateral 2020-11-10 16:57:35 +01:00
The3D
fed8c79884 Fixed comment in ReserveLogic 2020-11-10 16:52:34 +01:00
The3D
643ed2f9bc Fixed comment in ReserveConfiguration 2020-11-10 16:52:02 +01:00
Ernesto Boado
690d876047 Merge branch 'fix/126' into 'master'
Resolve "Add check on reserve active for rebalanceBorrowRate and withdraw"

Closes #126

See merge request aave-tech/protocol-v2!145
2020-11-10 15:45:14 +00:00
The3D
57ed9efd58 Validated the user balance before isActive 2020-11-10 16:33:00 +01:00
The3D
31cbe9127e Fixed validateWithdraw 2020-11-10 16:29:43 +01:00
The3D
a3ee5d2ce6 Added tracking of the usage as collateral to the liquidationCall 2020-11-10 16:18:31 +01:00
The3D
f87873a6de Added natspec, isActive check 2020-11-10 16:07:13 +01:00
The-3D
c8e59ca950 Merge branch 'fix/139-transferOnLiquidation-event' into 'master'
- Added Transfer event on transferOnLiquidation

Closes #139

See merge request aave-tech/protocol-v2!146
2020-11-10 14:59:20 +00:00
The3D
d66959f4ff Refactored validation logic of rebalanceStableBorrowRate 2020-11-10 15:57:49 +01:00
The3D
673b8f22c4 Fixed validation of isActive in validateWithdraw 2020-11-10 15:42:03 +01:00