LogoLogo
  • Swarm Network
  • Swarm Network
    • Network Governance
      • Getting started
      • Voting App
      • The Swarm Network
        • Powers
        • Governance
        • Members
        • Swarm Council
        • Treasury
      • Initiating Governance Actions
        • Introduction
        • Proposals
        • Ballot Types
        • Submitting a GAP
      • Governance Action Voting Process
        • Ballots
        • Retrieving the text of previous ballots
        • Voting
    • SWM Token
    • SWM Staking
  • Swarm Protocol
    • SRC20
      • SRC20 Token Contract
      • Transfer Rules Contract
      • Featured Contract
      • Roles Contract
      • SRC20 Registry Contract
      • Asset Registry Contract
      • Minter Contract
      • SRC20Factory Contract
    • Swarm Powered Fundraise
      • Uniswap Proxy Contract
      • Currency Registry Contract
      • Affiliate Manager Contract
      • Swarm Powered Fundraise Contract
      • Contributor Restrictions Contract
    • mySwarm.app
    • kovan.mySwarm.app (test version, please use this)
    • Mumbai Testnet
  • Open tools
    • Legacy Masternode Reward Collection
    • VerifiedExistence
    • Market Access Protocol
  • Keep up
    • Blog
    • Twitter
    • Discourse
    • Telegram
    • Voting App
    • FAQ
Powered by GitBook
On this page
  • Feature Description
  • Read Functions
  • Write Functions

Was this helpful?

  1. Swarm Protocol
  2. Swarm Powered Fundraise

Contributor Restrictions Contract

- BETA -

PreviousSwarm Powered Fundraise ContractNextmySwarm.app

Last updated 4 years ago

Was this helpful?

  • Smart Contract: specific to a Swarm Powered Fundraise for a specific SRC20

  • Created: review the ; then referenced in the Swarm Powered Fundraise contract

  • Purpose: Manages whitelist and restrictions for each contributor in a Swarm Powered Fundraise

  • Example: TBD

Feature Description

Read Functions

Function

Description

fundraise() returns (address)

Returns the address of the Swarm Powered Fundraise contract that this Contributor Restrictions contract applies to

maxContributors() returns (uint256)

Returns the maximum number of contributors that can participate in a Swarm Powered Fundraise

isAllowed(account) returns (bool)

Checks if an account is on the whitelist of a Swarm Powered Fundraise and the contributor list has not reached the maximum number of contributors

checkRestrictions(address) returns (bool)

Checks if an account is on the whitelist and is not above the maximum number of contributors

Write Functions

Function

Description

whitelistAccount(address)

Adds an address to the whitelist of a Swarm Powered Fundraise and accepts any pending contribution

unWhitelistAccount(address)

Removes an address from the whitelist of a Swarm Powered Fundraise and removes any qualified contributions by the address

bulkWhitelistAccount(address[])

Whitelists an array of addresses for a Swarm Powered Fundraise

bulkUnWhitelistAccount(address[])

Removes an array of addresses from the whitelist of a Swarm Powered Fundraise

SPF Deployment Sequence