Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 3ee46c10cdf77927896714ba0e9a37fb1f6f458ac6585e49361164f1dea3af88: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, 928.09698486, is more than the amount of FLOW, 928.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 | )
| ^