Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 789 Bytes

how-many-bpt-in-vebal.md

File metadata and controls

14 lines (10 loc) · 789 Bytes

How Many BPT in veBAL?

Are you trying value or determine underlying assets that are locked in veBAL? You'll need to query a few things from the veBAL contract. Most notably:

underlyingBpt = veBAL.token();
(amount, end) = veBAL.locked();

{% hint style="warning" %} Don't use balanceOf on the veBAL contract if you're trying to calculate value associated with underlying tokens. balanceOf returns a time dependent value only useful for querying a user's current voting power. {% endhint %}

Now that you have the underlyingBpt address and the amount of those BPT that you have locked, you can now analyze, value, or determine underlying tokens.