MEMO
field on their respective chains. THORChain inspects the transaction object as well as the MEMO
in order to process the transaction, so care must be taken to ensure the MEMO
and the transaction are both valid. If not, THORChain will automatically refund the assets.FUNCTION:PARAM1:PARAM2:PARAM3:PARAM4
:
separator:FUNCTION:PARAM1:PARAM2::
SWAP:ASSET:DESTADDR:LIM:AFFILIATE:FEE
SWAP
s
, =
:ASSET
:DESTADDR
:LIM
:AFFILIATE
:FEE
SWAP:ASSET:DESTADDR
simply swap=:ASSET:DESTADDR:LIM
swap with limits:ASSET:DESTADDR:LIM:AFFILIATE:FEE
swap with limit and affiliate=:THOR.RUNE:thor1el4ufmhll3yw7zxzszvfakrk66j7fx0tvcslym:19779138111
s:BNB/BUSD-BD1:thor15s4apx9ap7lazpsct42nmvf0t6am4r3w0r64f2:628197586176
ADD:POOL:PAIREDADDR:AFFILIATE:FEE
ADD
a
+
:POOL
:PAIREDADDR
:AFFILIATE
:FEE
ADD:POOL
single-sided add liquidity. If this is a position's first add, liquidity can only be withdrawn to the same address.+:POOL:PAIREDADDR
add on both sides. a:POOL:PAIREDADDR:AFFILIATE:FEE
add with affiliate+:BTC.BTC:
WITHDRAW:POOL:BASISPOINTS:ASSET
WITHDRAW
-
wd
:POOL
:BASISPOINTS
:ASSET
WITHDRAW:POOL:10000
dual-sided 100% withdraw liquidity. If a single-address position, this withdraws single-sidedly instead.-:POOL:1000
dual-sided 10% withdraw liquidity. wd:POOL:5000:ASSET
withdraw 50% liquidity as the asset specified while the rest stays in the pool.-:BTC.BTC:10000
DONATE:POOL
DONATE
%
:POOL
RESERVE
RESERVE
BOND:NODEADDR
BOND
:NODEADDR
UNBOND:NODEADDR:AMOUNT
MsgDeposit
BOND
:NODEADDR
:AMOUNT
LEAVE:NODEADDR
MsgDeposit
LEAVE
:NODEADDR
BOND:thor1xd4j3gk9frpxh8r22runntnqy34lwzrdkazldh
LEAVE:thor18r8gnfm4qjak47qvpjdtw66ehsx49w99c5wewd
NOOP
NOOP
:NOVAULT
MEMO
MEMO
is incorrect the user will be refunded.deposit(vault, asset, amount, memo)
function, where memo
is stringextra data
field, that has no limits.