We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714bf3b commit 7056fc6Copy full SHA for 7056fc6
1 file changed
cadence/contracts/FlowYieldVaults.cdc
@@ -404,7 +404,7 @@ access(all) contract FlowYieldVaults {
404
/// Withdraws the requested amount from the Strategy
405
access(FungibleToken.Withdraw) fun withdraw(amount: UFix64): @{FungibleToken.Vault} {
406
post {
407
- result.balance == amount:
+ result.balance >= amount && result.balance - amount <= (0.00000001 as UFix64):
408
"Invalid Vault balance returned - requested \(amount) but returned \(result.balance)"
409
410
self.vaultType == result.getType():
0 commit comments