Hold an maBeets position with at least $10
Curated by

Franz
Call-to-Action
https://beets.fi/mabeetsID Type
EVM ADDRESS
Cred Type
GRAPHQL
Last Update Time
12/30/2024, 02:55:32
Query
query info($address: String!){ userGetPoolBalances(address: $address, chains:[FANTOM]){ poolId totalBalance tokenPrice }}
Expression
function(resp) { if (resp != null && resp.userGetPoolBalances.length > 0) { for (const balance of resp.userGetPoolBalances) { if (balance.poolId === '0x9e4341acef4147196e99d648c5e43b3fc9d026780002000000000000000005ec') { const totalValue = parseFloat(balance.totalBalance) * parseFloat(balance.tokenPrice); if (totalValue >= 10) { return 1; } } } } return 0; }