Skip to content

Latest commit

 

History

History

margined_fee_pool

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Margined Protocol Fee Pool

The Fee Pool is simply a contract that accrues the fees generated by the protocol.


InstantiateMsg

The instantiation message is empty.

{}

ExecuteMsg

update_config

Transfers the contract owner.

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

add_token

Append token to be accepted for fee payments.

{
   "add_token": {
        "token": "juno..."
   } 
}

remove_token

Remove token that is to be accepted for fee payments.

{
   "remove_token": {
        "token": "juno..."
   } 
}

send_token

Transfer tokens held by fee pool to a recipient address.

{
   "send_token": {
        "token": "juno...",
        "amount": "100",
        "recipient": "juno...",
   } 
}

QueryMsg

config

Returns contract parameters.

{
    "config": {}
}

is_token

Returns bool showing if token is accepted as fees.

{
    "is_token": {
        "token": "juno..."
    }
}

get_token_length

Returns number of tokens accepted as fees.

{
    "get_token_length": {}
}

get_token_list

Returns list of fee tokens.

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