Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@marinade.finance/incentives-distribution-sdk
Advanced tools
Readme
A contract to distribute incentives for using MNDE token.
The basic workflow is:
an admin creates a treasury
account that configures admin
holds statistics and defines token store, a vault for tokens to be distributed
the treasury stands for a root configuration account that's aligned to one token type
the admin creates a claimRecord
account for an wallet address
the admin funds the treasury
vault (token store account)
the admin appoints a part of the funded tokens from treasury
vault to the claimRecord
the owner of the wallet (the claim authority) proceed claim
operation on claimRecord
to withdraw the appointed token amount
All amounts works in lamports
of the token
The on-chain claimRecord
works with totalAmount
and nonClaimedAmount
. To calculate claimed amount for a claim record one gets it as a subtraction totalAmount - nonClaimedAmount
Marinade Incentives Distribution Program address indiXdKbsC4QSLQQnn6ngZvkqfywn6KgEeQbkGSpk1V
.
The treasuries configured are available via src/sdk.ts
.
inTrQECqatDmvAt7ahYeWg82efX5PsxhiFXzQk9eKYG
(STAKERS_TREASURY
)iNTrR8cP5Vw86X17sDNwuGxKyqR57sYZ8HvpRY7r1FF
(REFERRERS_TREASURY
)iNtR2h6yAUDXawbiVBHVUBZ5qN3qsFCezZJABgfWT8h
(SEASON2_TREASURY
)Claiming of the tokens means to deposit tokens to SPL Governance Voter State Registry (VSR) plugin. The wallet owner then can unlock the tokens via SPL Gov UI or use them for voting when they are locked.
To claim the amount from the incentives distribution program one should
use claimOwnerAndDepositInstructions
.
That generates set of instructions that checks the VSR plugin accounts
and may add instructions that creates the Voter account and configure deposit entries.
The last call is claimAndDeposit
that do the transfer from incentives program
to VSR program.
FAQs
SDK of the incentives distribution contract
The npm package @marinade.finance/incentives-distribution-sdk receives a total of 112 weekly downloads. As such, @marinade.finance/incentives-distribution-sdk popularity was classified as not popular.
We found that @marinade.finance/incentives-distribution-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.