Commit Graph

57 Commits

Author SHA1 Message Date
The3D
4e4fbe6539 Refactoring of credit delegation 2020-11-03 19:47:57 +01:00
The3D
54bae079c9 Renamed error 2020-11-03 12:15:37 +01:00
David Racero
1ac0a45394 Fix conflicts 2020-10-30 16:52:44 +01:00
eboado
cba766d282 Merge branch 'master' into feat/102-batch-delegation-allowance 2020-10-30 16:04:31 +01:00
eboado
5a9a46a31f Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 14:55:03 +01:00
David Racero
b3cc9d1a62 Fix conflicts 2020-10-30 13:40:06 +01:00
eboado
1954f609c2 Merge branch 'master' into 100/flash-loan-bath-modes 2020-10-30 11:40:31 +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
David Truong
a517d5d11d - implement test for onBehalfOf flashloan borrow debt 2020-10-27 13:10:10 +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
David Truong
24d5c4766f [WIP] Adding onBehalfOf to flashloan 2020-10-26 13:27:31 +01:00
The3D
6398fe4260 Fix comments, tests 2020-10-23 18:41:08 +02:00
The3D
a2e2450bb3 Finalized implementation, fixed tests 2020-10-22 20:37:50 +02:00
David Racero
628f0de639 Merge branch 'feat/66' into 67-use-factory-functions 2020-10-16 11:50:51 +02:00
David Racero
03504849f1 Deployment function optimizations WIP 2020-10-15 19:19:02 +02:00
The3D
e4dc67ec7a Updated test error messages 2020-10-15 17:20:22 +02:00
David Racero
57ffc9c613 Reorg errors library, sorted by error number, added prefix to each constant and a prefix glossary. 2020-10-14 11:03:32 +02:00
The3D
543c3f5c9c Merge branch 'master' into fix/62 2020-10-13 13:41:57 +02:00
The3D
aea61d57ab Fixed tests code 2020-10-12 20:07:17 +02:00
The3D
53d6114775 Merge branch 'master' into feat/18 2020-10-12 15:19:27 +02:00
eboado
273070fada Added return uint256 validation to flashLoan() 2020-10-07 16:20:32 +02:00
The3D
274b63713d Merge branch 'master' into fix/34 2020-09-16 16:34:29 +02:00
The3D
c6a3588792 Merge branch 'master' into fix/34 2020-09-15 15:33:09 +02:00
David Racero
6842978706 Merge and fix conflicts 2020-09-15 10:57:04 +02:00
The3D
b2ec4dd2fa Renamed totalBorrowsStable, totalBorrowsVariable 2020-09-14 15:13:30 +02:00
David Racero
202ddbdec4 Moved all pausable tests into their own Pausable test suite 2020-09-14 15:02:48 +02:00
David Racero
ad2581b0a0 Added pausable tests 2020-09-14 13:57:40 +02:00
eboado
7a8a0d6ac5 Merge branch 'master' into 30-collateral-swap 2020-09-14 08:58:37 +02:00
eboado
d3f9cd2191 Merge branch 'master' into 32-deposit-on-behalf-of 2020-09-10 21:40:26 +02:00
David Racero
53112c0982 Merge changes 2020-09-09 21:26:52 +02:00
andyk
9d7bf388a6 initial changes + test 2020-09-09 13:47:27 +03:00
andyk
212cf76f23 add base tests 2020-09-07 16:48:46 +03:00
eboado
819cc65abd Merge branch 'master' into feat/27-new-erc20 2020-09-04 17:10:32 +02:00
emilio
bb822035a8 Added further test on flashloan for stable rate borrowing 2020-09-03 18:14:39 +02:00
emilio
48438f59f5 Added a new test to check an invalid interest rate mode 2020-09-03 16:29:14 +02:00
emilio
1486cee774 Fixed tests on flashloan 2020-09-03 15:53:18 +02:00
emilio
db99b6eca6 Merge branch 'master' into fix/23 2020-09-03 15:41:36 +02:00
emilio
16fc0d4971 Updated flashloans 2020-09-03 15:17:46 +02:00
pol
714c2ff3fd Refactored as per the PR comments 2020-09-03 10:33:15 +02:00
pol
76b4fc6b2d All tests working. WIP look at old error messages to remove them all 2020-09-02 17:54:34 +02:00
eboado
e0c27fef3f - Moved index update on flashLoan() to before the executeOperation.
- Refactor to remove try..catch.
- Change on _executeBorrow() to not consider liquidityTaken when coming from flash loan.
2020-08-28 16:44:14 +02:00
eboado
5435620e41 - Added tests to cover flashLoan(). 2020-08-25 14:50:07 +02:00
eboado
75da6e0fba - Adapted flashLoan() for partial debt opening. 2020-08-25 12:55:05 +02:00
The3D
928770d9d5 Updated flashloans V2 2020-08-24 01:22:14 +02:00
The3D
d833157cf4 Updated flashloans to transferFrom the receiver instead of checking that the funds where sent back 2020-08-23 18:38:34 +02:00
The3D
8a8c75c713 Fixed flashloan test 2020-08-20 12:21:42 +02:00
andyk
d60f7b6272 removal of TokenDistributor, FeeProvider and FlashLoanVars 2020-08-19 18:56:51 +03:00
andyk
d141d090e4 migrate to ethers v5 2020-08-19 15:23:41 +03:00