Skip to content

Commit

Permalink
feat: update description of msg.sender for token manager (#1147)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Fluin <[email protected]>
Co-authored-by: Marty <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 2906be6 commit cfa807d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/dev/send-tokens/interchain-tokens/token-manager.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Token Managers

[Token Managers](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/token-manager/TokenManager.sol#L22) are contracts that facilitate the connection between your interchain token to the Interchain Token Service (ITS). The manager is the `msg.sender` of the transactions being executed on the token while it is being bridged.
[Token Managers](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/token-manager/TokenManager.sol#L22) are contracts that facilitate the connection between your interchain token to the Interchain Token Service (ITS). For certain manager types, such as `mint/burn` Token Manager, the manager is the `msg.sender` of the transaction being executed on the destination chain for the token when it is bridged in.

## Token Manager Types
There are different [types](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/interfaces/ITokenManagerType.sol#L10) of token managers available for developers to offer different types of integrations to ITS. These are; `nativeInterchain`, `mintBurnFrom`, `lockUnlock`, `lockUnlockFee`, `mintBurn`, and `gateway`.
Expand Down Expand Up @@ -51,4 +51,5 @@ Token Managers handle the flow limits for a token's ITS integration. A `flowLimi

For each cross-chain transaction that goes through ITS the `flowIn` & `flowAmount` amount are increased to track the [inflow](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/TokenHandler.sol#L51) and [outflow](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/TokenHandler.sol#L120) of tokens. To [set](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/token-manager/TokenManager.sol#L167) the `flowLimit` of a given token the caller must be a registered [flowLimiter](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/utils/RolesConstants.sol#L13).

More info on `flowLimits` can be found [here](/dev/send-tokens/interchain-tokens/rate-limit/)
For more information on `flowLimit`s, see [Flow Limit in Interchain Token Service
](/dev/send-tokens/interchain-tokens/flow-limit/)

0 comments on commit cfa807d

Please sign in to comment.