Skip to content

Commit

Permalink
add more notes
Browse files Browse the repository at this point in the history
  • Loading branch information
i9 committed Feb 25, 2024
1 parent 0dd6427 commit 1707fb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/message/apps/erc20-bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Fee has 2 parts:
- percentage fee: collected in bridge contract, may vary for different source chain due to business reason

## Contract
### Overview
Similar to NFT bridge, one bridge contract handles both vault and peg. This is mainly due to we have to save bridge addresses on other chains, one unified contract simplifies logic and saves storage cost.
- we can support deposit and burn calls of existing cBridge, with only difference is that the call is `payable` as user must pay Celer IM msg bus for message fee in source chain gas token.

### Key configurations
```solidity
/// MsgTokenBridge address on other chains, key is chain id
mapping(uint64 => address) public bridgeAddr;
Expand Down

0 comments on commit 1707fb4

Please sign in to comment.