{
"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": "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"
}
]
},
{
"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"
}
]
},
{
"name": "posposition",
"base": "",
"fields": [
{
"name": "position_id",
"type": "l"
},
{
"name": "maker",
"type": "n"
},
{
"name": "outstanding",
"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": "ctrltvratios",
"base": "",
"fields": [
{
"name": "position_id",
"type": "l"
},
{
"name": "ltv_ratio",
"type": "f"
}
]
},
{
"name": "ratechanged",
"base": "",
"fields": [
{
"name": "contract",
"type": "n"
},
{
"name": "asset_symbol",
"type": "c"
},
{
"name": "base",
"type": "c"
}
]
}
],
"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": "margincall",
"type": "positionid",
"ricardian_contract": ""
},
{
"name": "close",
"type": "positionid",
"ricardian_contract": ""
},
{
"name": "margincalpos",
"type": "empty",
"ricardian_contract": ""
},
{
"name": "ratechanged",
"type": "ratechanged",
"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": "posparameter"
},
{
"name": "positions",
"index_type": "i64",
"key_names": [
"position_id",
"maker"
],
"key_types": [
"uint64",
"name"
],
"type": "posposition"
},
{
"name": "ctrltvratios",
"index_type": "i64",
"key_names": [
"position_id",
"ltv_ratio"
],
"key_types": [
"uint64",
"float64"
],
"type": "ctrltvratios"
}
],
"ricardian_clauses": [],
"error_messages": [],
"abi_extensions": [],
"variants": [],
"action_results": []
}