Commit Graph

53 Commits

Author SHA1 Message Date
David Racero
dc65b0b62e
Merge branch 'master' into feat/188-avalanche-market 2021-09-20 11:04:24 +02:00
David Racero
95e9c3588c feat: support custom quote currencies. Added base scripts for custom atokens and rates. 2021-07-16 12:21:44 +02:00
Jason Raymond Bell
258a9be607 Merge branch 'master' into paraswap 2021-06-15 16:52:42 +01:00
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
miguelmtzinf
329a48cd03 feat: Add defender utils and use of signer 2021-05-17 14:35:21 +02:00
David Racero
8072db2f27 logs: remove unneeded debug log 2021-05-12 10:24:03 +02:00
David Racero
356f45f8da Fixed WETH config and added new oracle. Automatize ETH/USD aggregator at oracle task 2021-03-29 12:13:56 +02:00
David Racero
d7cf033e62 Added sidechain task to follow guidelines. Added IncentivesController to config. 2021-03-26 15:20:24 +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
David Racero
d16c680b7c Integrate polygon verifier into verification tools and Hardhat tasks 2021-03-11 16:55:04 +01:00
Zer0dot
c1142d4810 Changed "Lp"/"lp" prefix to "Amm"/"amm" 2021-02-22 15:59:51 -05:00
Zer0dot
0bf9810158 Replaced "Uni" prefix with "Lp" for tokens 2021-02-08 11:24:01 -05:00
Zer0dot
f590040c60 Merge remote-tracking branch 'oldfork/light-implementation' into lp-market 2021-02-04 16:45:00 -05:00
root
a9aff29b77 Flash liquidation fixes. Add working test for flash liquidation. Add Tenderly tests support. 2021-01-15 15:48:54 +00:00
Zer0dot
ed17b5a037 Slight cleanup 2021-01-14 20:59:14 -05:00
Zer0dot
917f632980 Added unique prefix functionality 2021-01-13 01:05:44 -05:00
David Racero
46c753cea1 Solve conflicts 2021-01-12 12:11:03 +01:00
Zer0dot
95691770ab Reset to original state 2021-01-10 20:05:34 -05:00
Zer0dot
57986b76a8 Testing 2020-12-25 00:47:30 -05:00
Zer0dot
9e001ec0b6 Initial testing 2020-12-22 18:48:02 -05:00
David Racero
39f71f9610 Prevent to hang if missing address at db json 2020-12-02 10:58:44 +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
David Racero
53d92ccfe4 Added permit domain check test. Update typechain and typescript to support new ethers 5 generated typings. Updated ethers to support _TypedDataEncoder for domain hash. 2020-11-18 19:18:02 +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
David Racero
12d17179d6 Renamed ChainlinkProxyPriceProvider to AaveOracle 2020-11-17 10:24:24 +01:00
David Racero
d1c6943cd3 Initial implementation of Tenderly plugin 2020-11-12 14:12:26 +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
David Racero
4df4841767 Rename AaveProtocolTestHelpers to AaveProtocolDataProvider. Add task to deploy AaveProtocolDataProvider. 2020-11-10 15:19:47 +01:00
David Racero
ce3db28503 Added tokenization verifications 2020-11-10 14:18:48 +01:00
David Racero
6eb19a2d66 Move verification to a separate task and run after deployment. Speed up verification via more logic to prevent too many retries. 2020-11-10 13:23:30 +01:00
Gerardo Nardelli
d3ef60f01b Merge fix 2020-11-06 15:21:27 -03: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
David Racero
729b642ea5 Support Buidler to run solidity-coverage until is ported. 2020-11-05 14:43:17 +01:00
David Racero
8ab3bce12e Fixed conflicts 2020-11-05 09:20:50 +01:00
David Racero
86f79b4c13 Reserves Configuration 2020-11-04 13:22:40 +01:00
David Racero
a54f910928 Added emergency token and ether withdrawal. Follow code guidelines. 2020-11-03 17:23:35 +01:00
David Racero
7282f7678b Allow WETHGateway to be used by multiple pools. Remove logger. 2020-11-02 17:51:54 +01:00
David Racero
e9d21ef74d Fixed conflicts 2020-11-02 10:20:59 +01:00
Gerardo Nardelli
e7183536b3 Merge branch 'master' into feat/uniswap-adapter-flashloan
# Conflicts:
#	helpers/contracts-deployments.ts
#	helpers/contracts-getters.ts
2020-10-30 17:01:39 -03:00
David Racero
b3cc9d1a62 Fix conflicts 2020-10-30 13:40:06 +01:00
Gerardo Nardelli
fc358b7c14 merge fixes 2020-10-29 17:29:41 -03:00
David Racero
744befc46c Added deposit test for WETHGateway 2020-10-29 12:44:21 +01:00
David Racero
9317df9252 Added boilerplate deployment, getters and tests. 2020-10-28 18:06:24 +01:00
David Racero
1ef22f036b Fix conflicts 2020-10-27 12:12:05 +01:00
David Racero
161fb63f19 Added borrow rates deployment optimization and minor tweaks for deployment helpers 2020-10-27 10:58:51 +01:00
David Racero
e17f2ec814 Added collateral enable and stable migration optimization. 2020-10-26 17:43:10 +01:00
David Racero
64df1eeb36 Removed mock swap 2020-10-22 18:27:23 +02:00
David Racero
e0627ce66b Added correct library placheholder hashes. Fix imports. 2020-10-16 11:27:09 +02:00
David Racero
03504849f1 Deployment function optimizations WIP 2020-10-15 19:19:02 +02:00