Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shielde refund in IBC #421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading