Maker PSM integration [TKR-2] (#150)

* ADDS basic boilerplate for PSM bridge WIP

* ADDS integrate the MakerPSM mixin and fix incorrect naming

* fix: take into account PSM fee when buying USDC from PSM

* feat: intial stab at a PSM sampler WIP

* feat: integrate MakerPsm into AS WIP

* refactor: get VAT contract address from PSM instead of passing it in

* fix: hardcode PSM Gemtoken to USDC

* fix: remove passing in authGem, get from PSM contract instead

* fix: use constant modified to avoid using storage variables

* fix: incorrect num decimals after multiplication in sampler

* fix: PSM buy sampling

* fix: use fillData to estimate gas schedule

* Rebased on latest development

* Guard and use latest Curve LiquidityProvider

* `@0x/contract-addresses`: Redeploy FQT on mainnet and ropsten

Co-authored-by: Jacob Evans <jacob@dekz.net>
Co-authored-by: Lawrence Forman <lawrence@0xproject.com>
This commit is contained in:
Kim Persson
2021-04-01 21:45:06 +02:00
committed by GitHub
parent 164a5d44d9
commit 3adfcdffa8
24 changed files with 568 additions and 24 deletions

View File

@@ -125,6 +125,7 @@ export enum BridgeProtocol {
Bancor,
CoFiX,
Nerve,
MakerPsm,
}
// tslint:enable: enum-naming