Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silo v3 onboarding #523

Merged
merged 5 commits into from
Jun 29, 2023
Merged

Silo v3 onboarding #523

merged 5 commits into from
Jun 29, 2023

Conversation

silochad
Copy link
Contributor

@silochad silochad commented Jun 29, 2023

Run yarn dev in projects/ui so that you get the netlify endpoint

Forking at block 17251906 which is right after EBIP-8 deployment

Manually fetched the deposits at this block for the BFM (0x21de18b6a8f78ede6d16c50a167f6b222dc08df7) and overrode those in deposits.json:

{
  "data": {
    "farmer": {
      "id": "0x21de18b6a8f78ede6d16c50a167f6b222dc08df7",
      "deposits": [
        {
          "token": "0x1bea0050e63e05fbb5d8ba2f10cf5800b6224449",
          "season": 6612,
          "amount": "532690",
          "bdv": "118361"
        },
        {
          "token": "0xbea0000029ad1c77d3d5d23ba2d8893db9d1efab",
          "season": 11883,
          "amount": "377060000000",
          "bdv": "377060000000"
        }
      ]
    }
  }
  • Add onboarding flow
  • Add migration button
  • Replay onboarding after migration
  • Load deposits from static JSON if user hasn't migrated, otherwise use sdk.silo.getBalances()

@silochad
Copy link
Contributor Author

Requesting retroactive review

@silochad silochad mentioned this pull request Jun 28, 2023
@silochad silochad merged commit 5f992c8 into silo-v3-ui Jun 29, 2023
@silochad silochad deleted the silo-v3-onboarding branch June 29, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant