Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> d065c04cf8cd56c0026156953347cdab4e1da0a8161c4c647af28e5694c567f6:20:8
|
20 | self.stakingCollectionRef.stakeNewTokens(nodeID: nodeID, delegatorID: delegatorID, amount: amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 8d0e87b65159ae63.FlowStakingCollection:771:57
|
771 | delegator.delegateNewTokens(from: <- self.getTokens(amount: amount))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: FlowStakingCollection.StakingCollection.getTokens: Cannot get tokens to stake! The amount of FLOW requested to use, 1028.09704590, is more than the amount of FLOW, 1028.09662824, in the owner's account.
--> 8d0e87b65159ae63.FlowStakingCollection:262:16
|
262 | assert(
263 | amount <= unlockedBalance,
264 | message: "FlowStakingCollection.StakingCollection.getTokens: Cannot get tokens to stake! "
265 | .concat("The amount of FLOW requested to use, ")
266 | .concat(amount.toString()).concat(", is more than the amount of FLOW, ")
267 | .concat((unlockedBalance).toString())
268 | .concat(", in the owner's account.")
269 | )
| ^