Skip to content

Commit

Permalink
add shielde refund section in ibc
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jan 15, 2025
1 parent 4bb3a04 commit e729bbf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/docs/pages/users/ibc/shielded-ibc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ namadac ibc-transfer \

Gas fees can be paid like all the other transactions either directly from an implicit account adding `--gas-payer $IMPLICIT_ADDRESS` or via the MASP.
For more information please refer to the [fees section](../fees.mdx).

### Refund when IBC transfer failure
The token should be refunded when the IBC transfer fails.

`--refund-target` can be set to specify the address to be refunded only if you send tokens from a shielded address. In a transparent IBC transfer, tokens will be refunded to the source address.

The refund target address will receive the refund if `--refund-target` is given. You can set a transparent or a payment address for the refund target.

If no `--refund-target` is given in a transfer from a shielded address, a generated transparent address whose alias is prefixed with `ibc-refund-target` and the token will be refunded to the transparent address.

Please note that it is impossible to refund to the payment address when the refund happens after the MASP epoch when the transfer has started. In this case, the tokens will be refunded to the fallback transparent address that is automatically generated when a payment address is set to the refund target.

0 comments on commit e729bbf

Please sign in to comment.