How is the pegging process?

Hi
Can anyone let me know how is the architecture of pegging tokens?

scenario 1: there are TokenA and TokenB on chainA, TokenB is not listed yet, TokenA is deployed sometime(days, weeks, years, etc.) ago and has liquidity and therefore has price in terms of another token or stablecoin.

scenario 2: TokenA is on chainA, TokenB is on chainB. The TokenA is deployed sometime(days, weeks, years, etc.) ago and has liquidity and therefore has price in terms of another token or stablecoin. TokenB is just deployed but not listed yet on chainB.

How the TokenB could be pegged to the TokenA's price in both above scenarios?

A better question should be, is there any other way to chain values of two different on-chain assets to each other without arbitrage? for example BTC and WBTC.

In the case where both tokens (TokenA and TokenB) are on the same network, the simplest way to bind is to create a liquidity pool on a decentralized exchange. The price of TokenB will be determined by the ratio of TokenA to TokenB in this pool. If the tokens are on different networks, bridges, wrapped tokens or crosschain swaps can be used for binding.

1 Like

could you please explain more about this?