Skip to content
docs

LiquidStakeQuote

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

amount: bigint

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


apr: number | null

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


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.


maxStakeable: bigint

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

available − reserve − upfront (never below 0).


price: bigint

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


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.


shares: bigint

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

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


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.


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).


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.


warnings: LiquidStakingWarning[]

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