Factory
The factory contract registers a pair between two tokens. It uses the pre-stored pair contract binary and instantiates it so that users do not need to execute a pair contract by themselves.
Transaction
Create pair
Instantiate a pair from uploaded WASM binary. Please check this document in detail usage.
{
"create_pair": {
"assets": [
{
"info": {
"token": {
"contract_addr": "terra..."
}
},
"amount": "0"
},
{
"info": {
"native_token": {
"denom": "uluna"
}
},
"amount": "0"
}
]
}
}
Query
Config
{
"config": {}
}
Pair
{
"pair": {
"asset_infos": [
{
"token": {
"contract_addr": "<Addr>"
}
},
{
"native_token": {
"denom": "uluna"
}
}
]
}
}
Pairs
{
"pairs": {
"start_after": [ // optional
{
"token": {
"contract_addr": "<Addr>"
}
},
{
"native_token": {
"denom": "uluna"
}
}
],
"limit": 10 // optional, default=10, max=30
}
}
Native Token Decimals
{
"native_token_decimals": {
"denom": "uluna"
}
}