Messages
gamm
Exit Max and Swap

cosmos.gamm.exitMaxAndSwap

The account executed a transaction that performed the following steps:

  1. The LP shares were exchanged for two tokens from the LP. At most the number of shares specified are used (the system might take less than the specified quantity).
  2. One of the two token types gets swapped for the other. The user received the exact quantity of tokens specified.

Schema

FieldRequiredData typeExplanationExample
__typeYesstringAlways "cosmos.gamm.exitMaxAndSwap"."cosmos.gamm.exitMaxAndSwap"
blockchainYesstringThe blockchain this transaction was executed on. This field will have one of the values in the ID column where the Ecosystem column's value is Cosmos."juno"
txHashYesstringThe transaction's hash."DBAD2F68E6CEF64B8EA29F47B2765CED53CB1552AE6422C98974C8D4DA8869F8"
isSuccessfulYesbooleanWhether the transaction succeeded or failed.true
memoYesstringA note the user added while making the transaction. Maybe be empty ("")."I owed you 1.5 ATOM since you paid for lunch."
accountYesstringExecutor's address"bitsong1jv4r79zsfkg3m3mdafg4uxyxg4z9fn3u8kjmh2"
poolIdYesnumberLP's ID12
tokenYestokenThe token the user received.
sharesYesstringThe maximum number of shares the system took from the user."1231"

token

FieldRequiredData typeExplanationExample
denominationYesstring"uatom"
quantityYesstringThe exact number of tokens the user received."100"

Example

{
  "__type": "cosmos.gamm.exitMaxAndSwap",
  "blockchain": "juno",
  "txHash": "DBAD2F68E6CEF64B8EA29F47B2765CED53CB1552AE6422C98974C8D4DA8869F8",
  "isSuccessful": true,
  "memo": "",
  "account": "bitsong1jv4r79zsfkg3m3mdafg4uxyxg4z9fn3u8kjmh2",
  "poolId": 1,
  "token": {
    "denomination": "uatom",
    "quantity": "100"
  },
  "shares": "1238"
}