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