We launched this coin on every blockchain and made them copy our bnb coin's marketcap
The Mirror Project synchronizes market capitalization across multiple blockchain networks by leveraging Uniswap as the source of truth. Each launchpad receives real-time metadata from Uniswap pools, ensuring that the market cap remains consistent regardless of which blockchain the coin is traded on.
This cross-chain synchronization is achieved through oracle networks that continuously monitor Uniswap liquidity pools and broadcast pricing data to smart contracts deployed on each supported blockchain. The result is a unified market cap that reflects true multi-chain liquidity.
const fetchUniswapPrice = async (tokenAddress) => {
const pair = await factoryContract.getPair(
tokenAddress,
WETH_ADDRESS
);
const reserves = await pairContract.getReserves();
const price = reserves[1] / reserves[0];
return price;
};
function syncMarketCap(uint256 uniswapMcap) external {
require(msg.sender == oracle, "Unauthorized");
uint256 totalSupply = token.totalSupply();
uint256 targetPrice = uniswapMcap / totalSupply;
emit MarketCapSynced(uniswapMcap, targetPrice);
}