assertLiquidPlan
assertLiquidPlan(
transactions,contract):void
Defined in: protocol-staking-liquid-near/src/transactions.ts:60
Throws unless every transaction goes to contract and holds only function calls to
LIQUID_WRITE_METHODS. Runs on every plan before it is returned or sent. In particular it
refuses ft_transfer / ft_transfer_call to the contract: it has no ft_on_transfer, so tokens
(or “staking by transfer”) sent that way are lost.
Parameters
Section titled “Parameters”transactions
Section titled “transactions”readonly NearTransaction[]
contract
Section titled “contract”string
Returns
Section titled “Returns”void