hello OpenZeppelin community . Im a newbie in blockchain developing . my last project was creating a simple smart contract and listed on Pancakeswap . Today i want to build a token verse Usdt with 1:1 ratio and add Liquditypool for that token that will be stable even with swapping tokens . i just wanted to know the procedure and i have a deadline so i would be glad to hear your opinion community .
Thankyou
Hi, welcome!
I think if you want to wrap usdt to a new token, maybe you can have a look at this contract:
thankyou after i wrapped it how can i add liqudity pools on uniswap for a stable price
For a stablecoin or a stable price? Prices cannot be stable. They must be always changing.
If for a stablecoin, you may want to find the address of stablecoin contract address first, and use the following solidity code to create a pair, where USDTAddr
is the address of the stable coin USDT
contract.
pair = IFactory(_router.factory()).createPair(address(this), USDTAddr);
thankyou after creating a pair imagine i have 50 token A and 50 token usdt after i swap some tokens for usdt price changes in pool but i want liqudity pool to be equal of both tokens and price of token A always euqal to usdt
i want a stablecoin and price of a stablecoin wont change alot for example 0.95 to 1.05 range compare to token B in liqudity pool like usdt
I think for the AMM, you need to provide large liquidity, so it will has a low slippage when swap tokens.
For more details, maybe you can have a read of following articles:
Hi guys, How can we create a stablecoin which is pegged to local currency, and what is the whole process. I am a noob coder, so It would be a great help if someone can help me out with this.
Hi, welcome!
Sorry, I am not sure what do you mean. So what type of stable coin do you want to create?
DAI
or USDC
, USDT
or other kind of stable coin, like UST