Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (43 loc) · 1.42 KB

Terraswap Router

The Router Contract contains the logic to facilitate multi-hop swap operations via native & terraswap.

On-chain swap & Terraswap is supported.

Columbus-5 Contract:

Bombay-0012 Contract:

Tx:

Operations Assertion

The contract will check whether the resulting token is swapped into one token.

Example

Swap KRT => UST => mABNB

{
   "execute_swap_operations":{
      "operations":[
         {
            "native_swap":{
               "offer_denom":"ukrw",
               "ask_denom":"uusd"
            }
         },
         {
            "terra_swap":{
               "offer_asset_info":{
                  "native_token":{
                     "denom":"uusd"
                  }
               },
               "ask_asset_info":{
                  "token":{
                     "contract_addr":"terra1avryzxnsn2denq7p2d7ukm6nkck9s0rz2llgnc"
                  }
               }
            }
         }
      ],
      "minimum_receive":"88000"
   }
}