Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.35 KB

File metadata and controls

31 lines (21 loc) · 1.35 KB

veBAL

{% hint style="info" %} The FeeDistributor address is 0x26743984e3357efc59f2fd6c1afdc310335a61c9 {% endhint %}

How to Query Pending Tokens for a veBAL Holders

You can query pending tokens for a given veBAL holder by using eth_call to simulate a claim transaction. Below is some simple pseudocode that outlines the process:

feeDistributorAddress="0x26743984e3357efc59f2fd6c1afdc310335a61c9";
feeDistributorAbi=<loadFdAbi>;
userAddress=<yourAddress>;
tokenAddress0=<tokenAddress0>;
tokenAddress1=<tokenAddress1>;
tokens = [tokenAddress0, tokenAddress1];

feeDistributorContract = contract(feeDistributorAddress, feeDistributorAbi);
claimableTokens = feeDistributorContract.claimTokens(userAddress,tokens).call();

How to Claim Pending Tokens for a veBAL Holders

The process is identical to querying as above, except instead of eth_call, you will use eth_sendTransaction.

How do I Know Which Tokens to Query/Claim?

At the time of this writing, there is no subgraph tracking tokens added to the FeeDistributor. For now, an easy way you can find the available tokens for claiming is checking what the contract holds on Etherscan