Vaulta

pethpos.eq

Contract

The data structures defined by this contract.

  • Action parameter in currentver

    Action parameter in globallock

    Action parameter in paraminit

    Action parameter in reinit

    Action parameter in margincalpos

    {
      "name": "empty",
      "base": "",
      "fields": []
    }
  • Table row type of ctrsettings

    {
      "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"
        }
      ]
    }
  • Action parameter in settingset

    {
      "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": "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": "governc_account",
          "type": "n"
        },
        {
          "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"
        }
      ]
    }
  • Table row type of parameters

    {
      "name": "posparameter",
      "base": "",
      "fields": [
        {
          "name": "parameter_id",
          "type": "l"
        },
        {
          "name": "total_collateral",
          "type": "f"
        },
        {
          "name": "total_debt",
          "type": "a"
        },
        {
          "name": "stability_rate",
          "type": "f"
        },
        {
          "name": "prev_date",
          "type": "t"
        }
      ]
    }
  • Table row type of positions

    {
      "name": "posposition",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "maker",
          "type": "n"
        },
        {
          "name": "outstanding",
          "type": "a"
        },
        {
          "name": "collateral",
          "type": "f"
        }
      ]
    }
  • Action parameter in positionadd

    {
      "name": "positionadd",
      "base": "",
      "fields": [
        {
          "name": "maker",
          "type": "n"
        }
      ]
    }
  • Action parameter in colateraldel

    {
      "name": "colateraldel",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "collateral",
          "type": "a"
        }
      ]
    }
  • Action parameter in debtgenerate

    {
      "name": "debtgenerate",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "debt",
          "type": "a"
        }
      ]
    }
  • Action parameter in positiondel

    Action parameter in margincall

    Action parameter in close

    {
      "name": "positionid",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        }
      ]
    }
  • Action parameter in positiongive

    {
      "name": "positiongive",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "to",
          "type": "n"
        }
      ]
    }
  • Action parameter in receivecolat

    {
      "name": "receivecolat",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "a"
        }
      ]
    }
  • Table row type of ctrltvratios

    {
      "name": "ctrltvratios",
      "base": "",
      "fields": [
        {
          "name": "position_id",
          "type": "l"
        },
        {
          "name": "ltv_ratio",
          "type": "f"
        }
      ]
    }
  • Action parameter in ratechanged

    {
      "name": "ratechanged",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "n"
        },
        {
          "name": "asset_symbol",
          "type": "c"
        },
        {
          "name": "base",
          "type": "c"
        }
      ]
    }