Intercoin / CommunityCoinContract

Contracts to let people stake various tokens and use the trust that was built up in Intercoin's factory code.
GNU Affero General Public License v3.0
12 stars 2 forks source link

06172024_issue2 #76

Closed artman325 closed 4 months ago

artman325 commented 4 months ago

When people call CommunityCoin.buy() the USDT (or whatever) should be used to buy ReserveToken — INTER — in the correct uniswap pool and then add this INTER to the reserves !

And that should help increase the exchange rate of community coin to INTER

If donating address equals the BuyingToken-ReserveToken uniswap address, then do swap and add to reserve. Like buyAndStake from CommunityCoin contract, but then the contract will burn the community coins it received.

So one of the addresses for donating can be this !

artman325 commented 4 months ago

updated When a pool is created, the owner can set up a donation address with the magic address '0x1000...000'. If this occurs in such pools, users will attempt to stake, buy and stake, or buy in presale and stake. A portion of these reserve tokens will remain in the pool and should be redeemable by other holders.

Please note that in the case of buying and staking, where a user buys, for example, with USDT, the pool should receive reserve tokens, not USDT. Therefore, there is a need to swap in an AMM (such as Uniswap).

In Fact we just can to specify a pool address as donation address and put it in donation array