Fundraiser Facet
The Fundraiser Facet dandles the creation, funding, and completion of Fundraisers.
Call Functions
Fund a Fundraiser in exchange for Pods.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
|
| Amount of |
|
| Balance to spend tokens from; see |
Return Type | Description |
---|---|
| The number of Pods received. |
Creates a Fundraiser. Can only be called by the owner of Beanstalk.
Parameter | Type | Description |
---|---|---|
|
| The address to which funds are delivered at the end of the Fundraiser. |
|
| The address of the token that can be sent to the Fundraiser in exchange for Pods. |
|
| The amount of |
View Functions
Returns the remaining number of tokens to raise.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
Return Type | Description |
---|---|
| The remaining number of tokens to raise. |
Returns the total amount of tokens raised so far.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
Return Type | Description |
---|---|
| The total amount of tokens raised so far. |
Returns the address of the token that can be sent to the Fundraiser.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
Return Type | Description |
---|---|
| The address of the token that can be sent to the Fundraiser. |
Returns the Fundraiser struct.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
Return Type | Description |
---|---|
| Returns the Fundraiser struct in App Storage. |
Returns the number of Fundraisers.
Return Type | Description |
---|---|
| The number of Fundraisers. |
Events
Emitted when a Fundraiser is created.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
|
| The address to which funds are delivered. |
|
| The address of the token that can be sent to the Fundraiser in exchange for Pods. |
|
| The amount of |
Emitted when a Farmer calls fund
.
Parameter | Type | Description |
---|---|---|
|
| The address of the Farmer. |
|
| The Fundraiser ID. |
|
| The amount of |
Emitted when a Fundraiser is fully funded.
Parameter | Type | Description |
---|---|---|
|
| The Fundraiser ID. |
Last updated