npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@marinade.finance/incentives-distribution-sdk

v1.0.15

Published

SDK of the incentives distribution contract

Downloads

107

Readme

SDK of incentives distribution program

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 MNDE Treasuries

Marinade Incentives Distribution Program address indiXdKbsC4QSLQQnn6ngZvkqfywn6KgEeQbkGSpk1V.

The treasuries configured are available via src/sdk.ts.

  • MSOL and native SOL stakers treasury at inTrQECqatDmvAt7ahYeWg82efX5PsxhiFXzQk9eKYG (STAKERS_TREASURY)
  • Referrers treasury at iNTrR8cP5Vw86X17sDNwuGxKyqR57sYZ8HvpRY7r1FF (REFERRERS_TREASURY)
  • Season 2 treasury at iNtR2h6yAUDXawbiVBHVUBZ5qN3qsFCezZJABgfWT8h (SEASON2_TREASURY)

Claiming

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.