yearn/yearn.fi

[EXT-4] Bug: yBribe "Create Bribe" page search, sorting, chain selection broken

dudesahn opened this issue ยท 6 comments

What happened ๐Ÿ†˜

On the yBribe Offer Bribe page, searching for a gauge doesn't do anything, and neither does trying to sort the columns. I believe the following should be true:

  • default is to sort by Current $/veCRV
  • Sort should bring up relevant gauges

Additionally, I'm not sure how the chain selector is supposed to work here...theoretically it should only show gauges from that chain when selected? But that doesn't work either ๐Ÿ™

To Reproduce ๐Ÿ”‚

Navigate to https://yearn.fi/ybribe/offer-bribe and try to sort, search, or select different chains.

Screen Shot 2023-10-23 at 12 05 54 PM

More ๐Ÿ”Ž

  • Checking the console, it is VERY angry
Screen Shot 2023-10-23 at 12 15 03 PM
  • Browser : Brave, MacOS

EXT-4

FYI: The issue with the console is expected: it's trying to get the icons for the tokens, but they don't have icons, so rekt.

I just pushed a bunch of fixes for this. Please let me know if you still have issues, or I will close in a few days

Just checked and it looks amazing @Majorfi, thanks so much for handling this so quickly!

Update: noticed one last thing as I was reviewing

The pricing seems to be off on the Offer Bribe page by a factory of 10_000. Below is the value shown on this page, which is ~10,000x higher than the actual value. ~0.38 SPELL should be ~$0.0002.

Screen Shot 2023-10-29 at 2 09 11 PM

The Claim Bribe page shows the correct value. ~0.38 SPELL should be ~$0.0002.

Screen Shot 2023-10-29 at 2 09 34 PM

Note that this pricing issue can be seen to be true not just for MIM/SPELL, but for the other two bribes as well

Pushed a change @dudesahn, good catch