From bd89023db7230aa4ab47d9cff7f6c88f2e022fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A8=D0=B2=D0=B5=D1=86=20=D0=90=D0=BD=D0=B4=D1=80=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D1=8C=D0=B5=D0=B2=D0=B8?= =?UTF-8?q?=D1=87?= <91282981+Shvandre@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:49:45 +0300 Subject: [PATCH] Replaced Asset struct, fixed typos, added paragraph about withdrawing liquidity --- docs/src/content/docs/cookbook/dexes/dedust.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/src/content/docs/cookbook/dexes/dedust.mdx b/docs/src/content/docs/cookbook/dexes/dedust.mdx index 4571048ad..f765cc0af 100644 --- a/docs/src/content/docs/cookbook/dexes/dedust.mdx +++ b/docs/src/content/docs/cookbook/dexes/dedust.mdx @@ -248,11 +248,11 @@ message(0x40e108d6) JettonDepositLiquidity { // Target amount of the second asset targetBalances1: Int as coins; - // Custom payload to attack to the transaction if the provisioning is successful + // Custom payload attached to the transaction if the provisioning is successful // Defaults to `null`, which means no payload fulfillPayload: Cell? = null; - // Custom payload to attack to the transaction if the provisioning is rejected + // Custom payload attached to the transaction if the provisioning is rejected // Defaults to `null`, which means no payload rejectPayload: Cell? = null; } @@ -283,8 +283,8 @@ struct Asset { // Specify 1 for Jetton and then you must set non-null values for the following fields type: Int as uint4; - workchain: Int? as uint8 = null; - address: Int? as uint256 = null; + workchain: Int as uint8; + address: Int as uint256; } const PoolTypeVolatile: Int = 0; @@ -436,7 +436,8 @@ message(0xf8a7ea5) JettonTransfer { ### Withdraw liquidity To withdraw liquidity, burning LP tokens is required. You can refer to examples of Jetton burning in the [respective section of Jettons Cookbook page](/cookbook/jettons#burning-jetton). - +However more TONs than for the usual burn should be attached. Too small number of attached tons may cause LP tokens to be burned, but liquidity from the pool will not be sent (or will be sent partially). +So anyone should consider to attach at least 0.5 TON. Excesses will be returned. :::tip[Hey there!] Didn't find your favorite example of DeDust interaction? Have cool implementations in mind? [Contributions are welcome!](https://github.com/tact-lang/tact/issues)