swapper
Base swapper
contract.
Links
- Deployments: https://github.com/mars-protocol/rover/tree/master/scripts/deploy/addresses
- Types:
- Contract repo: https://github.com/mars-protocol/v2-fields-of-mars/tree/master/contracts/swapper/base
- Audits: https://github.com/mars-protocol/mars-audits/tree/main/rover
InstantiateMsg
ExecuteMsg
update_owner
Manages owner role state.
OwnerUpdate
set_route
Configure the route for swapping an asset. This is chain-specific, and can include parameters such as slippage tolerance and the routes for multi-step swaps.
Empty
swap_exact_in
Perform a swapper with an exact-in amount. Requires slippage allowance %.
Coin
transfer_result
Send swapper results back to swapper. Also refunds extra if sent more than needed. Internal use only.
QueryMsg
owner
Query contract owner config.
route
Get route for swapping an input denom into an output denom.
routes
Enumerate all swapper routes.
estimate_exact_in_swap
Return current spot price swapping In for Out
WARNING:
Do not use this as an oracle price feed. Use Mars-Oracle for pricing.