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

feat: [UI/Dex-UI]: add-steth-oracle #941

Merged
merged 134 commits into from
Jul 26, 2024

Conversation

Space-Bean
Copy link
Contributor

@Space-Bean Space-Bean commented Jun 28, 2024

This PR does the following:

  • Updates the barnRaise token to be wstETH

  • Adds Bean:wstETH LP as a whitelisted token & consequentially

    • enables conversions BEAN<>BEAN:wstETH LP conversions
    • supports deposits to the newly whitelisted BEAN:wstETH well
    • & every other silo action
  • Updates the /#/silo page to include BEAN:wstETH

  • Renaming 'urBEAN:ETH' to urBEAN:wstETH everywhere the UI

  • Update Basin to utilize multiflow v1.1

image image image image image image

Setup:

  • open 'LibChainLinkOracle.sol' & comment out the following lines
image
  • run yarn in the project root to install dependencies
  • B/c there are contract changes, recompile the contract yarn compile & yarn generate from the protocol folder
  • B/c there are changes to the sdk, run yarn all:build from the project root
  • In a new terminal, run yarn anvil from the project root to run the localfork
  • in a new terminal, cd into protocol and, run npx hardhat UI-deployWstethMigration --network localhost
    • This will run the migration script. There are times in which this fails, so make sure it goes through & that the tokens migrated aren't 0.
    • In the case where the deploy script fails, run forge cache clean to clear your anvil cache & run the deploy script again. It should looks something like the image below.
image
  • in a new terminal, cd into Beanstalk/projects/ui and run yarn generate then yarn dev.
  • in a new terminal cd into Beanstalk/projects/dex-ui and , run yarn generate then yarn dev.

Helpful commands

  • To give yourself balances, run yarn g:bean setbalance
  • To forward 1 season, run yarn g:bean sunrise -f

UI

  • Intermediary State

    • Any unripe token actions are disabled until the migration is complete. Ensure that Deposit , Convert, and Chop are disabled for urBean & urBEAN:wstETH
  • Silo Page

    • Ensure that all values on the main silo page show as non-zero amounts after a deposit.
    • TVD will show as 0 if you don't have anything deposited
  • Deposit

    • Can I deposit w/ any & all the tokens available successfully?
    • Does depositing a ailo token deposit it to the correct place? (bean:ETH -> counts for bean:ETH not bean:wstETH)
    • Do my deposits show up & are calculated properly?
  • Swap

    • Can I swap between wstETH & any other token?
  • Convert

    • Can I convert between bean:wstETH & bean?
    • Can I convert between bean:ETH & bean?
  • Barn Page

    • Can I buy fertilizer w/ wstETH & every other token?

Basin UI

  • ensure that tokens have migrated to the Bean/wstETH well. Ensure that the Prices here reflect the prices on the Bean-UI.
  • ensure you can add liquidity to the new well (equal & single sided liquidity)
  • ensure you can swap between wstETH & bean & that the amount received is reasonably within the expected range
  • ensure that the new bean:wstETH token icon shows
  • ensure your balances show on each pool you have LP tokens in your wallet / farm balance / silo

@Space-Bean Space-Bean marked this pull request as ready for review July 24, 2024 10:56
@Space-Bean Space-Bean merged commit e5d74e2 into add-steth-oracle Jul 26, 2024
5 checks passed
@Space-Bean Space-Bean deleted the ui-dex-ui/add-steth-oracle branch July 26, 2024 08:52
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.

2 participants