Storage keys
A token balance is stored with a storage key. The token balance key should be #Multitoken/{token_addr}/balance/{owner_addr}
. These keys can be made with token functions (opens in a new tab).
Namada stores multitoken balances for the same owner by {token_addr}
, e.g. a token received over IBC is managed in #Multitoken/{ibc_token}/balance/{receiver_addr}
. It is distinguished from the receiver's original balance in #Multitoken/{token_addr}/balance/{receiver_addr}
to know which chain the token was transferred from. The {ibc_token}
is explained in IBC.