Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 7b9578883cca0b8c25126d3b99d231e51c18d466039d55709934011fdb766689:88:6
|
88 | self.collectionRef!.requestUnstaking(nodeID: self.nodeID!, delegatorID: self.delegatorID, amount: self.amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 8d0e87b65159ae63.FlowStakingCollection:727:16
|
727 | node.requestUnstaking(amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: Cannot unstake below the minimum if there are delegators
--> 8624b52f9ddcd04a.FlowIDTableStaking:555:12
|
555 | assert (
556 | nodeRecord.delegators.length == 0 ||
557 | FlowIDTableStaking.isGreaterThanMinimumForRole(numTokens: FlowIDTableStaking.NodeInfo(nodeID: nodeRecord.id).totalCommittedWithoutDelegators() - amount, role: nodeRecord.role),
558 | message: "Cannot unstake below the minimum if there are delegators"
559 | )
| ^