Skip to content
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

Closed
wants to merge 18 commits into from

Conversation

Jarekkkkk
Copy link
Contributor

No description provided.

@llamabutler
Copy link

The adapter at projects/bucket-farm exports TVL:

sui                       3.67 M

total                    3.67 M 

@@ -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)
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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

@g1nt0ki g1nt0ki self-assigned this Dec 20, 2024
@g1nt0ki g1nt0ki closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants