Campaign

contract Campaign is Proxied, CampaignData
Title:Campaign contract - Allows to crowdfund a market
Author:Stefan George - <stefan@gnosis.pm>
function fund(uint amount)
public
 timedTransitions
 atStage(Stages . AuctionStarted)

Allows to contribute to required market funding

Parameters:
  • amount – Amount of collateral tokens
function refund()
public
 timedTransitions
 atStage(Stages . AuctionFailed)
returns (uint refundAmount)

Withdraws refund amount

Return:Refund amount
function createMarket()
public
 timedTransitions
 atStage(Stages . AuctionSuccessful)
returns (Market)

Allows to create market after successful funding

Return:Market address
function closeMarket()
public
 atStage(Stages . MarketCreated)

Allows to withdraw fees from market contract to campaign contract

Return:Fee amount
function withdrawFees()
public
 atStage(Stages . MarketClosed)
returns (uint fees)

Allows to withdraw fees from campaign contract to contributor

Return:Fee amount