Skip to content
docs

DEFAULT_GAS

const DEFAULT_GAS: object

Defined in: protocol-staking-liquid-near/src/constants.ts:73

Prepaid gas per call. All of it is bought upfront at min_gas_purchase_price (the unburnt part is refunded), so it is kept near what the calls use. Burnt on mainnet (whole transaction): deposit_and_stake ~3.1–3.5 Tgas on both contracts (it stakes nothing itself: the operator bot does; an rNEAR stake with 30 Tgas prepaid succeeded), unstake_all 3.5, withdraw_all 3.4 (rNEAR) to ~11 (LiNEAR). None of them makes a cross-contract call but the payout transfer.

readonly stake: bigint

readonly unstake: bigint

readonly withdraw: bigint