Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat(beefy): Fix price per share and decimals #2194

Merged
merged 1 commit into from
Jan 26, 2023
Merged

Conversation

immasandwich
Copy link
Contributor

Description

Beefy was not working for vaulted token with less than 18 decimals. Adjust the logic since balanceOf and supply are always rendered in the precision of the underlying token, and getPricePerFullShare is always rendered in 18 decimals.

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

How to test?

@immasandwich immasandwich merged commit 7c95fa7 into main Jan 26, 2023
@immasandwich immasandwich deleted the fix-beefy-decimals branch January 26, 2023 20:41
0xdapper pushed a commit to 0xdapper/studio that referenced this pull request Feb 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant