-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bucket-airdrop farm ] add missing credits value #12800
Conversation
The adapter at projects/bucket-farm exports TVL:
|
@@ -36,8 +36,9 @@ async function tvl(api) { | |||
let assetType = type.slice(type.indexOf("<"), type.indexOf(">")).split(",")[1].trim() | |||
|
|||
if(assetType == "0x922d15d7f55c13fd790f6e54397470ec592caa2b508df292a2e8553f3d3b274f::msui::MSUI" || assetType == "0x41ff228bfd566f0c707173ee6413962a77e3929588d010250e4e76f0d1cc0ad4::ksui::KSUI") assetType = ADDRESSES.sui.SUI | |||
|
|||
api.add(assetType, degenPool.fields.balance) | |||
const credits = degenPool.fields.sheet.fields.credits.fields.contents.reduce((acc,content)=> acc + Number(content.fields.value.fields.pos0),0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @Jarekkkkk what is this credit field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the borrowed value from other protocols
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, you need to expand on that. It is not like other farms where people lock tokens and wait for points/tokens as reward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is some feature we might be utilized on in the future that might integrate with our protocol. if the borrowed value can't be counted, then it's fine.
thanks for your reply, sir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, sorry we cant count borrowed value
No description provided.