SRC20Factory
is deployed, go to deployed SRC20Registry
contract and add this SRC20Factory
deployment address in addFactory()
functionSRC20Factory
deployment address during deploymentSRC20Registry address
, 2/ AssetRegistry
address and 3/ SWMPriceOracle
address. After GetRateMinter
is deployed, goto deployed SRC20Registry
contract and add this GetRateMinter
address in addMinter()
functionowner address
, 2/ SRC20Registry address
and 3/ TransferRules address
owner address
and 2/ any number greater than 0 to enable featuresSRC20Factory
deployed contract, generate new SRC20 token using create()
functionaddCurrency()
function; most of the time it will be ZERO address for ETH, DAI address, USDC address and WBTC address. Register your base currency you want to use for this fundraise using setBaseCurrency()
function.label
, SRC20 address
, CurrencyRegistry address
, startDate
, endDate
, softcap
and hardcap
SwarmPoweredFundraise address
and 2/ number of contributors
want to allow for this fundraiseSwarmPoweredFundraise
deployed contract and complete the remaining setup using setupContract()
function. setupContract
requires many parameters like SRC20 token price
, minimum amount of contribution
, maximum amount of contribution
, AffiliateManager address
, ContributorRestrictions address
, GetRateMinter address
and lock
or unlock
contributionsSRC20
deployed contract and set SwarmPoweredFundraise
address using setFundRaiseAddr()
functionContributorRestrictions
deployed contract and whitelist all your contributors using whitelistAccount()
function. After this contributors can contribute to fundraise.stakeAndMint()
. This function will do the following in one process: 1/ staking his equivalent SWM tokens, 2/ minting SRC20 tokens and 3/ withdrawing total contributor funds to contract owner