Commit Graph

146 Commits

Author SHA1 Message Date
eboado
1954f609c2 Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 11:40:31 +01:00
Gerardo Nardelli
17095c3ae1 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	helpers/types.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-10-29 16:49:25 -03:00
emilio
e4dc22e50e Fixed events, removed unused constants in addressesProvider 2020-10-29 18:03:19 +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
eboado
913a6a9237 - Added batch of modes to flashLoan() 2020-10-29 15:14:28 +01:00
eboado
edfe17bd97 - Added batch to credit delegation 2020-10-29 14:36:01 +01:00
emilio
9e55ea12b6 Fixes #99 2020-10-29 11:57:43 +01:00
Gerardo Nardelli
e5d37e1a8c Add view method to estimate swaps outputs 2020-10-27 16:32:09 -03:00
emilio
bd911de167 Fixed ReserveDataUpdated event 2020-10-27 15:09:11 +01:00
Gerardo Nardelli
723e3f82a6 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-helpers.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-10-27 09:26:43 -03:00
Gerardo Nardelli
a05b75b467 Add uniswap adapters unit tests 2020-10-27 09:18:30 -03:00
David Truong
a517d5d11d - implement test for onBehalfOf flashloan borrow debt 2020-10-27 13:10:10 +01:00
David Truong
d78c89151b Merge remote-tracking branch 'origin/master' into feat/74 2020-10-27 12:14:34 +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
emilio
31a76ef047 Updated ILendingPool 2020-10-27 10:31:32 +01:00
David Truong
24d5c4766f [WIP] Adding onBehalfOf to flashloan 2020-10-26 13:27:31 +01:00
The3D
c44ed2c0c7 Updated flashloan event 2020-10-26 10:35:44 +01:00
The3D
a2e2450bb3 Finalized implementation, fixed tests 2020-10-22 20:37:50 +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
bb234fbc7c fixed #72 2020-10-19 10:55:45 +02:00
The3D
6a06a3e88f removed openzeppelin imports2 2020-10-15 15:41:56 +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
David Racero
b919886916 Remove unused imports 2020-10-14 09:53:48 +02:00
The3D
b450a04642 Added getter for userconfiguration 2020-10-12 14:37:53 +02:00
The3D
44ba72540c Updated configurator, LendingPool interface 2020-10-09 17:59:10 +02:00
The3D
640f30c786 Removed getters 2020-10-09 16:35:02 +02:00
The3D
24a4980496 Refactored reservesList to a mapping 2020-10-06 15:51:48 +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
12f1dbd0dc Readded calculateAvailableBorrowsETH 2020-09-21 22:08:44 +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
e4890a14c2 Merge branch 'master' into fix/34 2020-09-17 11:55:38 +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
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
125644cc54 Merge branch 'master' into feat/pei-integration 2020-09-15 18:43:55 +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
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
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
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
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
David Racero
98ed475000 Remove Context and account from PausablePool events. 2020-09-14 15:59:11 +02:00
David Racero
775d003cc0 Keep standard paused() name function. 2020-09-14 15:33:24 +02:00
The3D
b2ec4dd2fa Renamed totalBorrowsStable, totalBorrowsVariable 2020-09-14 15:13:30 +02:00
The3D
bb4e1b5c4b Fixed errors 2020-09-14 15:09:16 +02:00
David Racero
bbc11eb092 Added pausable to Pool actions and aTokens at transfer, triggered by LendingPoolConfigurator. Added basic test to aToken transfer. 2020-09-14 13:03:39 +02:00
andyk
c0c3133763 makecredit delegation per debt token 2020-09-14 13:52:05 +03:00
The3D
dbf1a0b9e7 Merge branch 'master' into fix/34 2020-09-14 09:22:39 +02:00
eboado
7a8a0d6ac5 Merge branch 'master' into 30-collateral-swap 2020-09-14 08:58:37 +02:00
eboado
f355ae219f Merge branch 'master' into 33-add-native-credit-delegation 2020-09-11 11:25:42 +02:00
eboado
d3f9cd2191 Merge branch 'master' into 32-deposit-on-behalf-of 2020-09-10 21:40:26 +02:00
The3D
af362141fd Added reserveFactor to getReserveConfigurationData 2020-09-10 13:16:32 +02:00
The3D
de8ae523c8 Fixed total supply, tests 2020-09-10 13:05:02 +02:00
The3D
4a1e1156f4 Merge local branch 2020-09-10 12:51:52 +02:00
eboado
4b3abac526 Merge branch 'master' into feat/26-repay-collateral 2020-09-09 21:12:36 +02:00
andyk
3173bee782 initial implementation of the credit delegation + basic tests 2020-09-09 15:33:05 +03:00
andyk
9d7bf388a6 initial changes + test 2020-09-09 13:47:27 +03:00
eboado
3aa0dbc570 - Added tests of repayWithCollateral(), only for self-liquidation. 2020-09-08 15:05:53 +02:00
andyk
f1d3b8c9d6 add ISwapAdapter interface 2020-09-07 12:54:38 +03:00
andyk
5c28bf5a49 initial implementation of collateral swap method 2020-09-07 12:46:11 +03:00
eboado
819cc65abd Merge branch 'master' into feat/27-new-erc20 2020-09-04 17:10:32 +02:00
eboado
da734aa68a - Refactored ERC20 and adapted derived contracts. 2020-09-04 16:27:35 +02:00
eboado
2cbb1f5714 - Implemented repayWithCollateral() on LendingPoolLiquidationManager. 2020-09-03 15:46:45 +02:00
emilio
cf39045573 Merge branch 'master' into fix/23 2020-09-02 17:41:01 +02:00
eboado
75da6e0fba - Adapted flashLoan() for partial debt opening. 2020-08-25 12:55:05 +02:00
andyk
da5b6738c1 refactoring of DefaultReserveInterestRateStrategy to follow the stuileguide 2020-08-24 15:35:59 +03:00
The3D
dce7a73dda Renamed flashloan fee in premium 2020-08-24 01:30:01 +02:00
The3D
928770d9d5 Updated flashloans V2 2020-08-24 01:22:14 +02:00
The3D
bd0377198c Merge branch 'master' into fix/interfaces-guideline 2020-08-21 18:36:03 +02:00
andyk
13f4d34867 refactoring flashloan folder to fit current guideline, move events to interfaces 2020-08-21 17:03:01 +03:00
andyk
2d0325a3d2 refactoring interfaces and config folders to fit current guideline 2020-08-21 16:38:47 +03:00
andyk
94d8f38597 refactoring tokenization folder to fit current guideline, small gas optimizations 2020-08-21 13:38:08 +03:00
andyk
39984383c6 remove payable, add IAToken and ILendingPool 2020-08-20 15:32:20 +03:00
andyk
ae8878a50e fix more imports 2020-08-20 13:44:51 +03:00
andyk
1a2bfcbf45 remove FeeProvider setters and getters 2020-08-19 19:06:32 +03:00
andyk
d60f7b6272 removal of TokenDistributor, FeeProvider and FlashLoanVars 2020-08-19 18:56:51 +03:00
andyk
6a4caff6e4 AddressesSorage and UintStorage removal, guidlene fixes in AddressesProvider 2020-08-19 15:53:00 +03:00
andyk
89ad335912 pretty print 2020-07-13 11:54:08 +03:00
The3D
7018a85774 Merge branch 'master' into feat/debt 2020-07-10 11:20:15 +02:00
emilio
853f3118dc removed unused library, console.log 2020-07-09 17:02:16 +02:00
andyk
7690b22e8e repo cleanup -1 2020-07-03 12:15:30 +03:00
The3D
02d943b235 Refactoring migration 2020-06-21 01:40:03 +02:00
andyk
268e749a6d remove SafeERC20 dependency 2020-06-02 18:16:27 +03:00
andyk
f3597f670f remove EthAddressLib 2020-06-02 17:16:22 +03:00
eboado
b889cb25b6 - Added contracts from v1 of the protocol. 2020-05-29 18:45:37 +02:00