CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> c0d233224b0cc1db56844569c7964bb1645f1322c20cb12209a2004988c25602:18:8 | 18 | self.stakingCollectionRef.requestUnstaking(nodeID: nodeID, delegatorID: delegatorID, amount: amount) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 8d0e87b65159ae63.FlowStakingCollection:864:20 | 864 | delegator.requestUnstaking(amount: amount) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: assertion failed: Not enough tokens to unstake! --> 8624b52f9ddcd04a.FlowIDTableStaking:727:12 | 727 | assert ( 728 | delRecord.tokensStaked.balance + 729 | delRecord.tokensCommitted.balance 730 | >= amount + delRecord.tokensRequestedToUnstake, 731 | message: "Not enough tokens to unstake!" 732 | ) | ^
Arguments:
nodeID:
79949f163dac6b72ab72c1d12b9677d71dd9367f7331d59425b485050c8712d9
delegatorID:
1298
amount:
324