Skip to content
docs

LiquidStakeResult

Defined in: protocol-staking-liquid-near/src/types.ts:182

amount: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:166

LiquidStakeQuote.amount


apr: number | null

Defined in: protocol-staking-liquid-near/src/types.ts:175

LiquidStakeQuote.apr


fee: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:158

Upper bound of the network fee, yoctoNEAR (all gas burnt, at the gas price + 10 %). Passes as maxFee.

LiquidStakeQuote.fee


hash: string

Defined in: protocol-staking-liquid-near/src/types.ts:183


hashes: string[]

Defined in: protocol-staking-liquid-near/src/types.ts:184


maxStakeable: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:177

available − reserve − upfront (never below 0).

LiquidStakeQuote.maxStakeable


price: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:174

LiquidStakeQuote.price


reserve: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:165

NEAR the stake leaves on the account: the configured reserve, but at least one unstake’s upfront.

LiquidStakeQuote.reserve


shares: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:173

Tokens expected for amount − storageFee at the current price (rounded down).

LiquidStakeQuote.shares


storageFee: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:171

NEAR the contract keeps from amount for the account’s NEP-145 registration: storage_balance_bounds.min (0.00125 NEAR) on a first stake into rNEAR, else 0. Warning ‘pays-storage’ when above 0.

LiquidStakeQuote.storageFee


transactions: NearTransaction[]

Defined in: protocol-staking-liquid-near/src/types.ts:179

One transaction: a single deposit_and_stake (it registers the account itself; no storage_deposit).

LiquidStakeQuote.transactions


upfront: bigint

Defined in: protocol-staking-liquid-near/src/types.ts:163

NEAR the node holds back when it accepts the transaction, beside the deposit: the prepaid gas, bought at min_gas_purchase_price. The unburnt part comes back a few blocks later.

LiquidStakeQuote.upfront


warnings: LiquidStakingWarning[]

Defined in: protocol-staking-liquid-near/src/types.ts:180

LiquidStakeQuote.warnings