Skip to content

Diagrams

artman325 edited this page Jan 9, 2024 · 15 revisions

Example with several factories

Diagram represents a case involving several factories, each capable of producing its own CommunityStakingPools. Please consider the following points:

  • The Uniswap pair can be shared among any CommunityCoins from any CommunityCoinFactories. However, a user can only redeem from the factory where they possess community coins.
  • Staking tokens can occur in several ways:
    • by calling stake. Transfer staking tokens 1 into 1
    • by calling buyAndStake. Utilize a third paying token.
    • by calling buyInPresaleAndStake. Should send ETH to the presale contract.
  • A CommunityCoinFactory can only manage the CommunityCoin it produced. Similarly, a CommunityCoin can only call issueWalletTokens to the factory that created it.
token name produced by holders
Comunity Coins(CC) CommunityCoinFactory users
Uniswap LP tokens UniswapPair users, CommunityCoin

alt text

Example of accruing fees

alt text

Clone this wiki locally