Fundraiser Facet
Last updated
Last updated
Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Fundraiser Facet dandles the creation, funding, and completion of Fundraisers.
Fund a Fundraiser in exchange for Pods.
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Creates a Fundraiser. Can only be called by the owner of Beanstalk.
Returns the remaining number of tokens to raise.
Returns the total amount of tokens raised so far.
Returns the address of the token that can be sent to the Fundraiser.
Returns the Fundraiser struct.
Returns the number of Fundraisers.
Emitted when a Fundraiser is created.
Emitted when a Farmer calls fund
.
Emitted when a Fundraiser is fully funded.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
id
uint32
The Fundraiser ID.
amount
uint256
Amount of fundraisers[id].token
to provide.
mode
From
Balance to spend tokens from; see LibTransfer.From
.
uint256
The number of Pods received.
payee
address
The address to which funds are delivered at the end of the Fundraiser.
token
address
The address of the token that can be sent to the Fundraiser in exchange for Pods.
amount
uint256
The amount of token
that is being raised.
id
uint32
The Fundraiser ID.
uint256
The remaining number of tokens to raise.
id
uint32
The Fundraiser ID.
uint256
The total amount of tokens raised so far.
id
uint32
The Fundraiser ID.
address
The address of the token that can be sent to the Fundraiser.
id
uint32
The Fundraiser ID.
Fundraiser
Returns the Fundraiser struct in App Storage.
uint32
The number of Fundraisers.
id
uint32
The Fundraiser ID.
fundraiser
address
The address to which funds are delivered.
token
address
The address of the token that can be sent to the Fundraiser in exchange for Pods.
amount
uint256
The amount of token
that is being raised.
account
address
The address of the Farmer.
id
uint32
The Fundraiser ID.
amount
uint256
The amount of token
that account
provided.
id
uint32
The Fundraiser ID.