Migration Facet
The Migration Facet contains functions related to Silo V3. Farmers are required to migrate to the new accounting system created by the Silo V3 upgrade.
Call Functions
Migrates a Farmer's Deposits from the old (Seasons based) to the new Silo (Stems based) accounting system.
When migrating an account, a user must submit all of the account's Deposits or the migration will not pass because the Seed check will fail. The Seed check adds up the BDV of all submitted Deposits, multiplies by the corresponding Seed amount for each token type, then compares that to the total Seeds stored for that user. If everything matches, the migration is valid.
Parameter | Type | Description |
---|---|---|
|
| Address of the account to migrate. |
|
| Array of whitelisted token addresses to migrate. |
|
| The Seasons for the Deposits. |
|
| The amounts of those Deposits which are to be migrated. |
|
| Discrepancy between the calculated Stalk and the actual Stalk the account has. |
|
| Discrepancy between the calculated Seeds and the actual Seeds the account has. |
|
| The Merkle proof that confirms |
Migrate an account to Silo V3 that has no Deposits.
Parameter | Type | Description |
---|---|---|
|
| Address of the account to migrate. |
View Functions
Gets balance of Seeds for a Farmer that hasn't migrated.
Parameter | Type | Description |
---|---|---|
|
| A Farmer's address. |
Return Value | Description |
---|---|
| Balance of Seeds for an unmigrated Farmer. |
Gets a Farmer's balance of Grown Stalk at the time of Stems deployment (Silo V3 upgrade).
Parameter | Type | Description |
---|---|---|
|
| Address of Farmer. |
Return Value | Description |
---|---|
| Grown Stalk balance for |
Locate the token amount and BDV for a Farmer's Deposit in legacy storage.
Parameter | Type | Description |
---|---|---|
|
| Address of Farmer. |
|
| Whitelisted token address to get Deposit for. |
|
| Season of the Deposit in legacy storage. |
Return Value | Description |
---|---|
| Amount of |
| BDV of the Deposit in legacy storage. |
Events
None.
Last updated