Commit Graph

157 Commits

Author SHA1 Message Date
Jason Raymond Bell
4fe36c8fa4 Introduce registry of valid Augustus addresses
Set in constructor of BaseParaSwapSellAdapter and validates before swap.
Created mock registry that only validates one address.
Changed the test fixtures to accomodate registry and added two new tests.
Updated deployment script.
Registry address left as a placeholder in package.json since not known yet.

Fixes MixBytes Warning 1.
2021-05-20 23:25:51 +01:00
Jason Raymond Bell
bf635b6d50 Merge branch 'master' into paraswap 2021-03-18 16:46:02 +00:00
Jason Raymond Bell
242826ded6 ParaSwap adapter for collateral swaps
Complete with unit tests (using a mock AugustusSwapper contract).

Has similar functionality/tests as for existing Uniswap adapter.

Fixed a couple bugs in tests for Uniswap adapters.
2021-03-18 15:44:52 +00:00
The3D
7f44a0c242 Removed unused param in struct 2021-03-05 10:36:55 +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
Zer0dot
e729926543 Merge branch 'master' into feat/light-deployments-update 2021-02-05 10:03:11 -05: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
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
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
eboado
5e9ccb5244 - Added getter to _marketId 2020-11-27 10:00:11 +01:00
The-3D
b7bae0cb67 Merge branch 'feat/166-market-id' into 'master'
- Added marketId and setter on LendingPoolAddressesProvider

Closes #166

See merge request aave-tech/protocol-v2!189
2020-11-26 16:13:04 +00:00
eboado
3f070d67ec - Added set of usage as collateral to true on liquidator receiving aToken. 2020-11-26 16:44:32 +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
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
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
The3D
e4bccaed91 Fixed ILendingPool interface 2020-11-25 11:40:55 +01: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
eboado
5532ebdc8a - Moved data types (structs and enum) to a DataTypes library, to simplify interfaces 2020-11-24 14:53:34 +01:00
The3D
10e9f17446 Added interface for LendingPoolLiquidationManager 2020-11-23 19:17:19 +01:00
eboado
e2d1a274bc Merge branch 'master' into feat/153-improve-docs 2020-11-23 15:56:55 +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
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
eboado
0c6ec03cec - Reviewed comments on DefaultReserveInterestRateStrategy and interface. 2020-11-19 14:48:15 +01:00
eboado
a5f9332234 - Fixed comments on LendingPoolAddressesProviderRegistry and removed useless getter. 2020-11-19 14:21:36 +01:00
Gerardo Nardelli
a7115f019e Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-getters.ts
#	helpers/types.ts
2020-11-10 11:40:25 -03:00
The3D
c81047ca93 Fixes #123 2020-11-10 14:57:09 +01:00
Gerardo Nardelli
3f779e2e9f Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-deployments.ts
#	helpers/types.ts
#	test/__setup.spec.ts
#	test/helpers/make-suite.ts
2020-11-06 14:26:31 -03:00
emilio
57e444714d Merge branch 'master' into fix/114 2020-11-05 15:25:24 +01:00
emilio
69c3d5b9b7 Adds Emergency admin 2020-11-05 12:35:50 +01:00
The3D
4e4fbe6539 Refactoring of credit delegation 2020-11-03 19:47:57 +01:00
Gerardo Nardelli
fa7fa9f948 Add permit support in swap adapters 2020-11-02 17:33:00 -03:00