Skip to content

The SUID module is a simple staking pool that allows users to stake SUI and receive SUID in return.

Notifications You must be signed in to change notification settings

vijay-kesanakurthi/suid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SUID - Staking pool module

The SUID module is a simple staking pool that allows users to stake SUI and receive SUID in return.User can also stake and unstake SUI with the given validator.

Functions

1. add_liquidity:

  • Add liquidity to the pool by transferring SUI to the pool and receiving SUID in return.

2. remove_liquidity:

  • Remove liquidity from the pool by burning SUID and receiving SUI in return.

3. stake:

  • Stake the SUI with the given validator.

4. unstake:

  • Unstake the SUI.

5. get_supply:

  • Return the total supply of SUID.

6. get_assets:

  • Return the total amount of SUI in the pool.

How to Build

sui move build

How to Test

sui move test

How to Publish

This guide assumes you have a private key, already have faucet coins in testnet or devnet.

sui client publish --gas-budget 100000000 --json

About

The SUID module is a simple staking pool that allows users to stake SUI and receive SUID in return.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages