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 |
|
Hadrien Charlanes
|
56bf996885
|
fix: configurator: added event borrowCapChanged in enableBorrowingOnReserve function
|
2021-05-25 09:48:08 +02:00 |
|
miguelmtzinf
|
98c5bfb9a0
|
fix: Add interface @inheritdoc to LendingPoolConfigurator
|
2021-05-25 07:40:53 +02:00 |
|
The3D
|
26a09f2ba8
|
refactor: changed _mintToTreasury() function name
|
2021-05-24 19:39:13 +02:00 |
|
miguelmtzinf
|
24a082ff1a
|
fix: Expose functions of LP Configurator in its interface
|
2021-05-24 17:31:12 +02:00 |
|
miguelmtzinf
|
53c1617b32
|
fix: Rename internal variables of LP Configurator adding _ as prefix
|
2021-05-24 17:30:51 +02:00 |
|
Hadrien Charlanes
|
717db22980
|
fix: LendingPool/ValidationLogic: validation logic functions from internal to external for bytecodesize requirements
|
2021-05-21 10:33:14 +02:00 |
|
Hadrien Charlanes
|
335b13e891
|
review-fix: mul => percentMul in premium
|
2021-05-21 03:44:04 +02:00 |
|
Hadrien Charlanes
|
5a1e87ae09
|
rename: renamed flashloaner => flashBorrower
|
2021-05-21 03:43:04 +02:00 |
|
Hadrien Charlanes
|
ccad06fc94
|
feat: added authorized flashloaners
|
2021-05-21 03:43:04 +02:00 |
|
Hadrien Charlanes
|
32944733bd
|
feat: added risk admins
|
2021-05-21 03:34:20 +02:00 |
|
Hadrien Charlanes
|
e18bd375cc
|
refactor: refactor validation logic after merging validateHealthFactor
|
2021-05-18 10:18:55 +02:00 |
|
Hadrien Charlanes
|
05f66f0513
|
feat: implemented pause validation for reserve assets
|
2021-05-18 09:10:28 +02:00 |
|
Hadrien Charlanes
|
2e1af3cadd
|
feat: added bool isPaused in data reserve config
|
2021-05-18 08:57:33 +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
|
899085450c
|
Merge branch 'master' into protocol-2.5
|
2021-05-15 01:06:29 +02:00 |
|
The3D
|
7395363e59
|
Merge branch 'protocol-2.5' into feat/gas-optimization-3
|
2021-05-15 00:28:21 +02:00 |
|
The3D
|
a06bc329cf
|
Merge branch 'protocol-2.5' into feat/gas-optimization-4
|
2021-05-14 20:15:32 +02:00 |
|
The3D
|
49db36726b
|
fix: update behavior of finalizeTransfer() to proper emit the ReserveUsedAsCollateralDisabled event
|
2021-05-14 20:00:37 +02:00 |
|
The3D
|
5d003429c7
|
feat: replaced SafeMath library
|
2021-05-13 19:56:55 +02:00 |
|
The3D
|
9d12200b8c
|
refactor: replaced balanceOf() with scaledBalanceOf()
|
2021-05-13 18:44:47 +02:00 |
|
The3D
|
235f2d80ec
|
refactor: added validation on withdraw/finalizeTransfer - only check the HF if the user is using the asset as collateral or is borrowing
|
2021-05-13 18:27:15 +02:00 |
|
The3D
|
2507a2220b
|
comments: fixed comment for validateHealthFactor()
|
2021-05-13 16:42:14 +02:00 |
|
David Racero
|
4f7ce7e202
|
Merge branch 'master' into polygon-verifier
|
2021-05-11 12:55:17 +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 |
|
The3D
|
50ea61fe70
|
Merge branch 'feat/gas-optimization-1' into feat/gas-optimization-2
|
2021-05-07 11:24:58 +02:00 |
|
The3D
|
759e163cb3
|
Merge branch 'protocol-2.5' into feat/gas-optimization-1
|
2021-05-07 11:22:38 +02:00 |
|
The3D
|
506b8bccfe
|
Merge branch 'master' into protocol-2.5
|
2021-05-06 21:29:12 +02:00 |
|
The-3D
|
77fe998e9f
|
Merge pull request #64 from aave/feat/protocol-2.5/repayPermit-depositPermit
RepayWithPermit, depositWithPermit
|
2021-05-05 13:12:22 +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
|
a9fce4dd4b
|
feat: Added setBorrowCap in lendingpoolconfigurator
|
2021-04-29 09:51:37 +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
|
6054fa0bd5
|
feat: Added borrowCap to enableBorrowing Configurato
|
2021-04-27 19:08:49 +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
|
b294a96ef4
|
refactor: changed function definitions order for more clarity
|
2021-04-27 09:45:49 +02:00 |
|
Hadrien Charlanes
|
0b89528871
|
doc: added signature paramters to natspec docs
|
2021-04-27 09:44:18 +02:00 |
|
sendra
|
c1c2cffd26
|
remove try catch as it doesnt catch the implementation exeption
|
2021-04-26 17:51:39 +02:00 |
|
sendra
|
d36b9fd14c
|
added other catch
|
2021-04-26 16:43:21 +02:00 |
|
sendra
|
f5f3adeb0f
|
removed error from catch so it catches everything
|
2021-04-26 16:29:30 +02:00 |
|
sendra
|
8b8736dc5a
|
Back to try catch, but with also 0 address catching
|
2021-04-26 15:26:36 +02:00 |
|
sendra
|
701c0793ce
|
fix: merged with master
|
2021-04-26 12:51:04 +02:00 |
|
sendra
|
60ee0c54eb
|
fix: added check if incentives contract is 0
|
2021-04-26 12:39:37 +02:00 |
|
sendra
|
60dc2346c8
|
fix: added try catch for incentives controller interactions
|
2021-04-26 12:26:30 +02:00 |
|
Hadrien Charlanes
|
a869be648b
|
refactor: created separate function to get Reserve Borrow cap, so interface for getReserveConfiguration remains identical
|
2021-04-26 09:17:02 +02:00 |
|
The3D
|
6230f2b034
|
Merge branch 'master' into protocol-2.5
|
2021-04-23 18:59:12 +02:00 |
|
Hadrien Charlanes
|
4ce1bfcb8c
|
feat: added borrow cap to config
|
2021-04-23 17:32:07 +02:00 |
|
David Racero
|
2a19131b7a
|
feat: Updated to new interface of Incentives Controller
|
2021-04-21 18:00:00 +02:00 |
|
sendra
|
8000d838a3
|
Updated to new asset struct interface
|
2021-04-21 17:45:19 +02:00 |
|
sendra
|
21fc210901
|
fix: updated interface to last version
|
2021-04-19 17:17:30 +02:00 |
|
Zer0dot
|
5f817c7c09
|
fix: removed unused hardhat console import
|
2021-04-19 11:04:04 -04:00 |
|
The3D
|
94790ecc46
|
Fixed interface update
|
2021-04-12 11:10:22 +02:00 |
|
sendra
|
717bb133e1
|
added unclaimed user rewards
|
2021-04-08 13:55:01 +02:00 |
|
sendra
|
dc2943f2ec
|
removed incentives data, as it is hardcoded on client side
|
2021-04-07 17:44:29 +02:00 |
|
sendra
|
b84a486d10
|
removed extra external calls that are not needed
|
2021-04-06 16:17:04 +02:00 |
|
Hadrien Charlanes
|
5facb2a14d
|
Added new IWETHGateway interface
|
2021-04-06 15:18:31 +02:00 |
|
Hadrien Charlanes
|
1316cf48e4
|
Updated WETHGateway for withdrawETHWithPermit
|
2021-04-06 15:08:19 +02:00 |
|
Hadrien Charlanes
|
3a6948ce2c
|
Added depositWithPermit, repayWithPermit test scenarios
|
2021-04-06 14:55:39 +02:00 |
|
Hadrien Charlanes
|
6810940c9f
|
Added deadline, implemented deposit and repay withPermit functions
|
2021-04-02 09:49:13 +02:00 |
|
Hadrien Charlanes
|
566f9b1a5d
|
Updated ILendingPool Interface
|
2021-04-02 09:26:12 +02:00 |
|
Hadrien Charlanes
|
2ae2680834
|
Added permit to IAToken interface
|
2021-04-02 09:24:27 +02:00 |
|
Hadrien Charlanes
|
44528c7733
|
Created _executeRepay, _executeWithdraw
|
2021-04-02 09:24:19 +02:00 |
|
David Racero
|
ab14a0bc9d
|
Fixed asset borrowing configuration at initialization
|
2021-03-31 17:39:59 +02:00 |
|
sendra
|
5ba17aa1c1
|
naming changed to IncentivesUserData
|
2021-03-30 13:19:47 +02:00 |
|
sendra
|
9ed357662b
|
added public to incentives controller and price oracle so we can remove getters
|
2021-03-30 12:42:20 +02:00 |
|
sendra
|
99a0d17de4
|
reused local vars to not fill stack
|
2021-03-30 12:39:00 +02:00 |
|
sendra
|
e81ddb4e2f
|
Added incentives information to UI data provider contract
|
2021-03-29 17:10:35 +02:00 |
|
sendra
|
2028631ad7
|
fixed not needed casting
|
2021-03-26 13:59:49 +01:00 |
|
sendra
|
83a499f299
|
added incentives emission for a / v /s tokens
|
2021-03-26 11:08:07 +01:00 |
|
sendra
|
f9cf541be1
|
Added incentives data to ui helper
|
2021-03-23 18:52:51 +01:00 |
|
Pierrick Turelier
|
b7aed31f79
|
feat(IAToken): add UNDERLYING_ASSET_ADDRESS function
|
2021-03-15 21:42:33 +01:00 |
|
The3D
|
7f44a0c242
|
Removed unused param in struct
|
2021-03-05 10:36:55 +01:00 |
|
The3D
|
eb9077f25e
|
Refactored interest rate strategies tests
|
2021-03-01 20:26:08 +01:00 |
|
The3D
|
03dc5370ee
|
Added initialized events
|
2021-03-01 18:33:48 +01:00 |
|
The3D
|
bc1a237f34
|
Added handleRepayment() function
|
2021-03-01 17:47:27 +01:00 |
|
The3D
|
e735d40a3b
|
Merge branch 'feat/light-deployments' of github.com:aave/protocol-v2 into feat/light-deployments
|
2021-03-01 15:58:41 +01:00 |
|
The3D
|
03a410230d
|
Updated interest rate strategy to generalize fetching of the available liquidity
|
2021-03-01 15:58:31 +01:00 |
|
The3D
|
77fab5d3bb
|
Added encoded parameter to reserve initialization
|
2021-02-26 18:17:10 +01:00 |
|
Hadrien Charlanes
|
1656f1c6a3
|
Added Weth gateway contract in config, updated deployment
|
2021-02-22 14:26:05 +01:00 |
|
Hadrien Charlanes
|
dacf441916
|
Updated Weth gateway contract
|
2021-02-22 12:30:26 +01:00 |
|
Zer0dot
|
e4f4bb0cdb
|
Brought branch up to speed with light deployment update
|
2021-02-18 09:38:13 -05:00 |
|
eboado
|
0302339892
|
- Changed modifier on batchInitReserve()
|
2021-02-18 13:29:17 +01:00 |
|
Zer0dot
|
e729926543
|
Merge branch 'master' into feat/light-deployments-update
|
2021-02-05 10:03:11 -05:00 |
|
Zer0dot
|
6a2d383c94
|
Merge branch 'master' into feat/light-deployments-update
|
2021-02-05 10:01:26 -05:00 |
|
Zer0dot
|
f590040c60
|
Merge remote-tracking branch 'oldfork/light-implementation' into lp-market
|
2021-02-04 16:45:00 -05:00 |
|
Zer0dot
|
0c90873843
|
Merge branch 'gitlab-merge' into lp-market
|
2021-02-04 15:49:43 -05:00 |
|
Zer0dot
|
0d1e673f56
|
Removed an un-merged line break
|
2021-02-04 13:43:59 -05:00 |
|
Zer0dot
|
d3de30ff55
|
Merge remote-tracking branch 'gitlab/master' into gitlab-merge
|
2021-02-04 12:54:38 -05:00 |
|
dhadrien
|
9e62528b98
|
Fixed memory usage
|
2021-02-03 15:57:34 +01:00 |
|
Zer0dot
|
9431541593
|
More fixes, some stable tests fail WIP
|
2021-02-02 17:44:46 -05:00 |
|
Zer0dot
|
57996bd5b8
|
Pulled lendingPool fix from origin
|
2021-02-01 16:10:14 -05:00 |
|
andyk
|
9f94f04b6c
|
fix eth->eth repay with collateral
|
2021-02-01 17:13:53 +03:00 |
|
David Racero
|
211dca7a07
|
Add new variable borrowedAssetLeftovers to improve readability
|
2021-02-01 13:24:07 +01:00 |
|
eboado
|
34d7642990
|
- Fixed incompatible initialize() interface on LendingPool
|
2021-01-31 22:06:10 +01:00 |
|
Zer0dot
|
b4d72bfc37
|
Pulled contracts for light deployment
|
2021-01-29 22:51:59 -05:00 |
|
David Racero
|
37ac8b5297
|
Add new edge case when flash liquidation same asset. Add tests.
|
2021-01-29 18:09:06 +01:00 |
|
David Racero
|
d464b0d592
|
Pull master and fix conflicts
|
2021-01-29 13:27:12 +01:00 |
|
eboado
|
80fd095723
|
- Implemented protocol changes to enable re-usage of implementations.
|
2021-01-28 11:05:19 +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
|
d6059938bb
|
- Fixed array init on BaseUniswapAdapter
|
2021-01-25 09:29:07 +01:00 |
|
root
|
55f14c1af9
|
Use diff balances instead of liquidation logic for flash liquidations
|
2021-01-22 09:59:47 +00:00 |
|
andyk
|
6cebf50f11
|
add special quotation flow
|
2021-01-21 17:44:48 +03:00 |
|
David Racero
|
a72b73d804
|
Merge branch 'master' of gitlab.com:aave-tech/protocol-v2 into 183-flash-liquidation-adapter
|
2021-01-20 09:27:33 +01:00 |
|
The-3D
|
29448c19c1
|
Merge branch 'fix/185-validation-borrow' into 'master'
- Fix non-initialized vars.rateMode on borrow validation
See merge request aave-tech/protocol-v2!209
|
2021-01-19 11:46:36 +00:00 |
|
David Racero
|
94dd996666
|
Add test cases for FlashLiquidationAdapter
|
2021-01-18 15:40:02 +01:00 |
|
David Racero
|
7040f9ea2e
|
Fix conflicts
|
2021-01-15 16:55:51 +01:00 |
|
root
|
a9aff29b77
|
Flash liquidation fixes. Add working test for flash liquidation. Add Tenderly tests support.
|
2021-01-15 15:48:54 +00:00 |
|
The3D
|
773bdd252b
|
Added latest fixes
|
2021-01-14 15:21:42 +01:00 |
|
David Racero
|
611605eebf
|
Fix mockup base tests. Separate uniswap adapter tests into separate files.
|
2021-01-13 15:11:39 +01:00 |
|
eboado
|
e5e61553c8
|
- Removed comments from BaseUniswapAdapter
|
2021-01-12 14:21:44 +01:00 |
|
David Racero
|
63ce8bc2bb
|
Revert "add withFlash flage to getAmountIn/Out"
This reverts commit 3d2a877770 .
|
2021-01-12 13:20:32 +01:00 |
|
David Racero
|
b432008d06
|
Added flash liquidation adapter first iteration
|
2021-01-11 17:40:25 +01:00 |
|
eboado
|
3b11a4dca1
|
- Fix non-initialized vars.rateMode on borrow validation
|
2020-12-22 10:13:57 +01:00 |
|
andyk
|
3d2a877770
|
add withFlash flage to getAmountIn/Out
|
2020-12-09 13:29:25 +04:00 |
|
eboado
|
eadaf066f2
|
- Fixed _getAmountsOutData()
|
2020-12-03 16:51:38 +01:00 |
|
eboado
|
c7bd9d2511
|
- Fix _getAmountsInAndPath()
|
2020-12-03 16:35:05 +01:00 |
|
eboado
|
a84cfdabe2
|
- Fixed _getAmountsInAndPath() and _getAmountsOutData()
|
2020-12-03 16:24:57 +01:00 |
|
eboado
|
5fdb479333
|
- Fixed _getAmountsInAndPath()
|
2020-12-03 16:11:05 +01:00 |
|
eboado
|
1916426ab1
|
- Added Ownable to BaseUniswapAdapter.
|
2020-12-03 12:13:06 +01:00 |
|
eboado
|
84629bca2e
|
- Added fallback condition for price prediction, both In and Out
|
2020-12-03 11:36:15 +01:00 |
|
eboado
|
ab5303bc7c
|
- Fixed calculation on _getAmountsOutData().
- Optimizing outcome of _getAmountsInAndPath().
|
2020-12-02 18:19:29 +01:00 |
|
eboado
|
1fec2aa5d1
|
- Added basic selection of optimal path
|
2020-12-02 17:59:38 +01:00 |
|
eboado
|
05dbfeccb3
|
- Fixed issue with variadic length of amounts depending on path
|
2020-12-02 17:38:17 +01:00 |
|
andyk
|
41efe9e811
|
add WETH to constructor of swap adapters
|
2020-12-02 19:56:38 +04:00 |
|
The3D
|
d611b1e8dc
|
Updated to receive theindication on which path to use from outside
|
2020-12-02 15:30:57 +01:00 |
|
eboado
|
a25bdd9280
|
- Change path logic on repay adapter and base
|
2020-12-02 14:39:05 +01:00 |
|
The3D
|
2e23281cdc
|
Merge branch 'master' into 178-add-uniswap-adapters
|
2020-12-02 10:14:03 +01:00 |
|
eboado
|
aa7c124a11
|
- Added credit delegation interface to debt tokens.
|
2020-11-30 18:16:25 +01:00 |
|
andyk
|
a21757d0fc
|
adoption to the latest
|
2020-11-30 17:14:29 +04:00 |
|
andyk
|
b4a0841577
|
Merge branch 'master' into 178-add-uniswap-adapters
|
2020-11-30 15:11:35 +04:00 |
|
eboado
|
9d1c021945
|
- Modified FlashLoanReceiverBase
|
2020-11-30 12:02:34 +01:00 |
|
Andrey Ko
|
a32d1ce404
|
Merge branch 'feat/uniswap-adapter-flashloan' into '178-add-uniswap-adapters'
Add Uniswap adapter for liquidity swap and repay with collateral using flashloan
See merge request aave-tech/protocol-v2!106
|
2020-11-30 10:21:46 +00:00 |
|
eboado
|
18ce2b3637
|
- Added view to getMarketId()
|
2020-11-30 09:23:31 +01:00 |
|
The3D
|
9fc6c32905
|
Removed redundant code in ATokensAndRatesHelper
|
2020-11-28 13:33:35 +01:00 |
|
The3D
|
7892587f1b
|
Updated migration scripts to add the reserve factor configuration
|
2020-11-28 12:54:54 +01:00 |
|