Vaulta

eosdtcntract

Contract

{
  "version": "eosio::abi/1.0",
  "types": [
    {
      "new_type_name": "n",
      "type": "name"
    },
    {
      "new_type_name": "a",
      "type": "asset"
    },
    {
      "new_type_name": "u",
      "type": "uint32"
    },
    {
      "new_type_name": "l",
      "type": "uint64"
    },
    {
      "new_type_name": "f",
      "type": "float64"
    },
    {
      "new_type_name": "t",
      "type": "time_point_sec"
    },
    {
      "new_type_name": "s",
      "type": "string"
    },
    {
      "new_type_name": "c",
      "type": "symbol"
    }
  ],
  "structs": [
    {
      "name": "empty",
      "base": "",
      "fields": []
    },
    {
      "name": "ctrsetting",
      "base": "",
      "fields": [
        {
          "name": "setting_id",
          "type": "l"
        },
        {
          "name": "global_lock",
          "type": "uint8"
        },
        {
          "name": "time_shift",
          "type": "l"
        },
        {
          "name": "liquidator_account",
          "type": "n"
        },
        {
          "name": "oraclize_account",
          "type": "n"
        },
        {
          "name": "sttoken_account",
          "type": "n"
        },
        {
          "name": "nutoken_account",
          "type": "n"
        },
        {
          "name": "governance_fee",
          "type": "f"
        },
        {
          "name": "stability_fee",
          "type": "f"
        },
        {
          "name": "critical_ltv",
          "type": "f"
        },
        {
          "name": "liquidation_penalty",
          "type": "f"
        },
        {
          "name": "liquidator_discount",
          "type": "f"
        },
        {
          "name": "liquidation_price",
          "type": "a"
        },
        {
          "name": "nut_auct_ratio",
          "type": "f"
        },
        {
          "name": "nut_discount",
          "type": "f"
        },
        {
          "name": "profit_factor",
          "type": "f"
        },
        {
          "name": "vote_period",
          "type": "u"
        },
        {
          "name": "stake_period",
          "type": "u"
        },
        {
          "name": "reserve_ratio",
          "type": "f"
        },
        {
          "name": "staking_weight",
          "type": "f"
        },
        {
          "name": "bpproxy_account",
          "type": "n"
        },
        {
          "name": "governc_account",
          "type": "n"
        },
        {
          "name": "referral_min_stake",
          "type": "a"
        },
        {
          "name": "referral_ratio",
          "type": "f"
        },
        {
          "name": "collateral_account",
          "type": "n"
        },
        {
          "name": "collateral_token",
          "type": "c"
        },
        {
          "name": "savings_account",
          "type": "n"
        },
        {
          "name": "min_pos",
          "type": "a"
        },
        {
          "name": "tokenswap_account",
          "type": "n"
        }
      ]
    },
    {
      "name": "settingset",
      "base": "",
      "fields": [
        {
          "name": "liquidator_account",
          "type": "n"
        },
        {
          "name": "oraclize_account",
          "type": "n"
        },
        {
          "name": "sttoken_account",
          "type": "n"
        },
        {
          "name": "nutoken_account",
          "type": "n"
        },
        {
          "name": "governance_fee",
          "type": "f"
        },
        {
          "name": "stability_fee",
          "type": "f"
        },
        {
          "name": "critical_ltv",
          "type": "f"
        },
        {
          "name": "liquidation_penalty",
          "type": "f"
        },
        {
          "name": "liquidator_discount",
          "type": "f"
        },
        {
          "name": "nut_auct_ratio",
          "type": "f"
        },
        {
          "name": "nut_discount",
          "type": "f"
        },
        {
          "name": "profit_factor",
          "type": "f"
        },
        {
          "name": "vote_period",
          "type": "u"
        },
        {
          "name": "stake_period",
          "type": "u"
        },
        {
          "name": "reserve_ratio",
          "type": "f"
        },
        {
          "name": "staking_weight",
          "type": "f"
        },
        {
          "name": "bpproxy_account",
          "type": "n"
        },
        {
          "name": "governc_account",
          "type": "n"
        },
        {
          "name": "referral_min_stake",
          "type": "a"
        },
        {
          "name": "referral_ratio",
          "type": "f"
        },
        {
          "name": "collateral_account",
          "type": "n"
        },
        {
          "name": "collateral_token",
          "type": "c"
        },
        {
          "name": "savings_account",
          "type": "n"
        },
        {
          "name": "min_pos",
          "type": "a"
        },
        {
          "name": "tokenswap_account",
          "type": "n"
        }
      ]
    },
    {
      "name": "parameter",
      "base": "",
      "fields": [
        {
          "name": "parameter_id",
          "type": "l"
        },
        {
          "name": "total_collateral",
          "type": "f"
        },
        {
          "name": "total_debt",
          "type": "a"
        },
        {
          "name": "stability_rate",
          "type": "f"
        },
        {
          "name": "governance_rate",
          "type": "f"
        },
        {
          "name": "prev_date",
          "type": "t"
        },
        {
          "name": "prev_vote",
          "type": "t"
        },
        {
          "name": "prev_stake",
          "type": "t"
        },
        {
          "name": "eos_staked",
          "type": "a"
        }
      ]
    },
    {
      "name": "positions",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "maker",
          "type": "n"
        },
        {
          "name": "outstanding",
          "type": "a"
        },
        {
          "name": "governance",
          "type": "a"
        },
        {
          "name": "collateral",
          "type": "f"
        }
      ]
    },
    {
      "name": "positionadd",
      "base": "",
      "fields": [
        {
          "name": "maker",
          "type": "n"
        }
      ]
    },
    {
      "name": "colateraldel",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "collateral",
          "type": "a"
        }
      ]
    },
    {
      "name": "debtgenerate",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "debt",
          "type": "a"
        }
      ]
    },
    {
      "name": "positionid",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        }
      ]
    },
    {
      "name": "positiongive",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "to",
          "type": "n"
        }
      ]
    },
    {
      "name": "receivecolat",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "a"
        }
      ]
    },
    {
      "name": "receivestable",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "a"
        }
      ]
    },
    {
      "name": "ctrltvratios",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "ltv_ratio",
          "type": "f"
        }
      ]
    },
    {
      "name": "fillltvratio",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "l"
        },
        {
          "name": "limit",
          "type": "u"
        }
      ]
    },
    {
      "name": "ratechanged",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "n"
        },
        {
          "name": "asset_symbol",
          "type": "c"
        },
        {
          "name": "base",
          "type": "c"
        }
      ]
    },
    {
      "name": "ctrreferral",
      "base": "",
      "fields": [
        {
          "name": "referral_id",
          "type": "l"
        },
        {
          "name": "referral",
          "type": "n"
        },
        {
          "name": "staked_amount",
          "type": "a"
        }
      ]
    },
    {
      "name": "positionref",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "referral_id",
          "type": "l"
        }
      ]
    },
    {
      "name": "referraladd",
      "base": "",
      "fields": [
        {
          "name": "referral",
          "type": "n"
        }
      ]
    },
    {
      "name": "posandrefadd",
      "base": "",
      "fields": [
        {
          "name": "maker",
          "type": "n"
        },
        {
          "name": "referral_id",
          "type": "l"
        }
      ]
    },
    {
      "name": "referraldel",
      "base": "",
      "fields": [
        {
          "name": "referral_id",
          "type": "l"
        }
      ]
    },
    {
      "name": "delltvratiol",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "l"
        },
        {
          "name": "limit",
          "type": "u"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "settingset",
      "type": "settingset",
      "ricardian_contract": ""
    },
    {
      "name": "currentver",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "globallock",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "paraminit",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "positionadd",
      "type": "positionadd",
      "ricardian_contract": ""
    },
    {
      "name": "colateraldel",
      "type": "colateraldel",
      "ricardian_contract": ""
    },
    {
      "name": "debtgenerate",
      "type": "debtgenerate",
      "ricardian_contract": ""
    },
    {
      "name": "reinit",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "positiondel",
      "type": "positionid",
      "ricardian_contract": ""
    },
    {
      "name": "positiongive",
      "type": "positiongive",
      "ricardian_contract": ""
    },
    {
      "name": "receivecolat",
      "type": "receivecolat",
      "ricardian_contract": ""
    },
    {
      "name": "receivestable",
      "type": "receivestable",
      "ricardian_contract": ""
    },
    {
      "name": "margincall",
      "type": "positionid",
      "ricardian_contract": ""
    },
    {
      "name": "close",
      "type": "positionid",
      "ricardian_contract": ""
    },
    {
      "name": "restakerex",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "voteproducer",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "unstakeall",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "unstakeback",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "withdrawall",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "fillltvratio",
      "type": "fillltvratio",
      "ricardian_contract": ""
    },
    {
      "name": "margincalpos",
      "type": "empty",
      "ricardian_contract": ""
    },
    {
      "name": "ratechanged",
      "type": "ratechanged",
      "ricardian_contract": ""
    },
    {
      "name": "referraladd",
      "type": "referraladd",
      "ricardian_contract": ""
    },
    {
      "name": "posandrefadd",
      "type": "posandrefadd",
      "ricardian_contract": ""
    },
    {
      "name": "referraldel",
      "type": "referraldel",
      "ricardian_contract": ""
    },
    {
      "name": "delltvratiol",
      "type": "delltvratiol",
      "ricardian_contract": ""
    }
  ],
  "tables": [
    {
      "name": "ctrsettings",
      "index_type": "i64",
      "key_names": [
        "setting_id"
      ],
      "key_types": [
        "uint64"
      ],
      "type": "ctrsetting"
    },
    {
      "name": "parameters",
      "index_type": "i64",
      "key_names": [
        "parameter_id"
      ],
      "key_types": [
        "uint64"
      ],
      "type": "parameter"
    },
    {
      "name": "positions",
      "index_type": "i64",
      "key_names": [
        "position_id",
        "maker"
      ],
      "key_types": [
        "uint64",
        "name"
      ],
      "type": "positions"
    },
    {
      "name": "ctrltvratios",
      "index_type": "i64",
      "key_names": [
        "position_id",
        "ltv_ratio"
      ],
      "key_types": [
        "uint64",
        "float64"
      ],
      "type": "ctrltvratios"
    },
    {
      "name": "ctrreferrals",
      "index_type": "i64",
      "key_names": [
        "referral_id"
      ],
      "key_types": [
        "uint64"
      ],
      "type": "ctrreferral"
    },
    {
      "name": "positionrefs",
      "index_type": "i64",
      "key_names": [
        "position_id"
      ],
      "key_types": [
        "uint64"
      ],
      "type": "positionref"
    }
  ],
  "ricardian_clauses": [],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}