Liquid Staking

Stake SUI and receive afSUI to earn a reliable yield, and hold the most decentralized staking derivative on Sui.

The Staking class provides functionality for staking and unstaking SUI tokens in the Aftermath Finance protocol.

Initialization

const afSdk = new Aftermath("MAINNET");
await afSdk.init(); // initialize provider

const staking = afSdk.Staking();

Constants

Staking.constants = {
	fees: {
		protocolUnstake: 0.05, // 5%
		defaultValidator: 0, // 0%
		maxValidator: 0.05, // 5%
	},
	bounds: {
		minStake: BigInt("1000000000"), // 1 SUI
		minUnstake: BigInt("1000000000"), // 1 afSUI
		maxExternalFeePercentage: 0.5, // 50%
	},
	defaultValidatorFee: 0, // 0%
};

Methods

Validator Information

Staking Operations

Queries and Statistics

Validator Management

Types

Position Types

Validator Types

Example Usage

Last updated