Skip to content

Latest commit

 

History

History

margined_insurance_fund

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Margined Protocol Insurance Fund

Insurance fund contains funds that are used to cover shortfall in funding payments, additionally insurance fund accrues a portion of transaction fees and profits.


InstantiateMsg

The instantiation message is empty.

{}

ExecuteMsg

update_config

Enables transfer of contract ownership and the beneficiary of insurance funds. Beneficiary is an address that is able to request funds held by the insurance fund contract.

{
   "update_config": {
        "owner": "juno..."
        "beneficiary": "juno..."
   } 
}

add_vamm

Append vamm to list of supported vAMMs.

{
   "add_vamm": {
        "vamm": "juno..."
   } 
}

remove_vamm

Remove vamm from list of supported vAMMs.

{
   "remove_vamm": {
        "vamm": "juno..."
   } 
}

withdraw

Enables the beneficiary to request contract funds.

{
   "withdraw": {
        "token": "juno...",
        "amount": "100",
   } 
}

shutdown_vamms

Emergency shutdown function that halts all vAMMs trading.

{
   "shutdown_vamms": {} 
}

QueryMsg

config

Returns contract parameters.

{
    "config": {}
}

is_vamm

Returns bool showing if vamm is supported.

{
    "is_vamm": {
        "vamm": "juno..."
    }
}

get_all_vamm

Returns list of supported vAMMs.

{
    "get_all_vamm": {
        "limit"?: 69,
    }
}

get_all_vamm_status

Returns the status of all vAMMs supported.

{
    "get_all_vamm_status": {
        "limit"?: 69,
    }
}

get_vamm_status

Returns the status of a specific vAMM.

{
    "get_vamm_status": {
        "vamm": "juno...",
    }
}