Vaulta

bancorusdcdp

Contract

The data structures defined by this contract.

  • Action parameter in adjustinflat

    {
      "name": "adjustinflat",
      "base": "",
      "fields": []
    }
  • Table row type of balance1

    {
      "name": "balances_t",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "stable_withdrawn",
          "type": "asset"
        },
        {
          "name": "last_stable_withdrawn",
          "type": "uint64"
        },
        {
          "name": "total_fee",
          "type": "asset"
        }
      ]
    }
  • Action parameter in borrow

    {
      "name": "borrow",
      "base": "",
      "fields": [
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in liquidate

    {
      "name": "liquidate",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        }
      ]
    }
  • Action parameter in setconfig

    {
      "name": "setconfig",
      "base": "",
      "fields": [
        {
          "name": "sttoksymb",
          "type": "string"
        },
        {
          "name": "sttokprec",
          "type": "uint8"
        },
        {
          "name": "sttokcontr",
          "type": "name"
        },
        {
          "name": "assetsymb",
          "type": "string"
        },
        {
          "name": "assetprec",
          "type": "uint8"
        },
        {
          "name": "assetcontr",
          "type": "name"
        },
        {
          "name": "governsymb",
          "type": "string"
        },
        {
          "name": "governprec",
          "type": "uint8"
        },
        {
          "name": "governcontr",
          "type": "name"
        },
        {
          "name": "tokenratio",
          "type": "float64"
        }
      ]
    }
  • Table row type of settings1

    {
      "name": "settings_t",
      "base": "",
      "fields": [
        {
          "name": "stable_token_symbol",
          "type": "string"
        },
        {
          "name": "stable_token_precision",
          "type": "uint8"
        },
        {
          "name": "stable_token_contract",
          "type": "name"
        },
        {
          "name": "asset_token_symbol",
          "type": "string"
        },
        {
          "name": "asset_token_precision",
          "type": "uint8"
        },
        {
          "name": "asset_token_contract",
          "type": "name"
        },
        {
          "name": "govern_token_symbol",
          "type": "string"
        },
        {
          "name": "govern_token_precision",
          "type": "uint8"
        },
        {
          "name": "govern_token_contract",
          "type": "name"
        },
        {
          "name": "token_percentage",
          "type": "float64"
        },
        {
          "name": "price_asset_token",
          "type": "float64"
        },
        {
          "name": "inflation_rate",
          "type": "float64"
        },
        {
          "name": "fees_rate",
          "type": "float64"
        }
      ]
    }
  • Action parameter in stakeandbor

    {
      "name": "stakeandbor",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "stake",
          "type": "asset"
        },
        {
          "name": "borrow",
          "type": "float32"
        }
      ]
    }
  • Action parameter in updateprice

    {
      "name": "updateprice",
      "base": "",
      "fields": [
        {
          "name": "price",
          "type": "float64"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }