Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Add Curve sUSD #2563

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Add Curve sUSD #2563

merged 1 commit into from
Apr 23, 2020

Conversation

dekz
Copy link
Member

@dekz dekz commented Apr 23, 2020

Description

Adds Curve sUSD plain (no underlying yTokens)

curl 'http://localhost:3000/swap/v0/quote?buyToken=USDT&sellToken=DAI&sellAmount=100000000000000000000000&takerAddress=WHALE'
{
  "price": "1.00919950822",
  "guaranteedPrice": "0.97892059851",
  "to": "0x61935cbdd02287b511119ddb11aeb42f1593b7ef",
  "value": "1200000000000000",
  "gas": "3634181",
  "from": "WHALE",
  "gasPrice": "8000000000",
  "protocolFee": "1200000000000000",
  "buyTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "sellTokenAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
  "buyAmount": "100919950822",
  "sellAmount": "100000000000000000000000",
  "sources": [
    {
      "name": "0x",
      "proportion": "0"
    },
    {
      "name": "Uniswap",
      "proportion": "0"
    },
    {
      "name": "Eth2Dai",
      "proportion": "0"
    },
    {
      "name": "Kyber",
      "proportion": "0"
    },
    {
      "name": "Curve_USDC_DAI",
      "proportion": "0"
    },
    {
      "name": "Curve_USDC_DAI_USDT",
      "proportion": "0"
    },
    {
      "name": "Curve_USDC_DAI_USDT_TUSD",
      "proportion": "0.4044"
    },
    {
      "name": "Curve_USDC_DAI_USDT_BUSD",
      "proportion": "0.05646"
    },
    {
      "name": "Curve_USDC_DAI_USDT_SUSD",
      "proportion": "0.5391"
    },
    {
      "name": "LiquidityProvider",
      "proportion": "0"
    }
  ],

@dekz dekz force-pushed the feat/curve-susd branch from 3a6f1a9 to 1df5e4d Compare April 23, 2020 05:59
Copy link
Contributor

@dorothy-zbornak dorothy-zbornak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@dekz dekz merged commit 6063854 into development Apr 23, 2020
@dekz dekz deleted the feat/curve-susd branch April 23, 2020 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants