TransactionSEALED
*◇^○▒?!╱╲╳&░^◇*!▓▫■^█□!▓╳!~╱!▫●^○*~▓~&&!○^%█~╱□$▒●░▪■╳#▫*▒%%▓$▫▫
Transaction ID
Execution Fee
0.00000374 FLOWExecution Error
Error Code: 1101
pre-condition failed: FungibleToken.Vault.withdraw: Cannot withdraw tokens! The amount requested to be withdrawn (596.33624275) is greater than the balance of the Vault (4.02051280).
Error ContextLine 224
Call Stack
Raw Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: pre-condition failed: FungibleToken.Vault.withdraw: Cannot withdraw tokens! The amount requested to be withdrawn (596.33624275) is greater than the balance of the Vault (4.02051280). --> f233dcee88fe0abe.FungibleToken:224:16
Transaction Summary
Contract CallCalled EVM, FlowEVMBridgeConfig, FlowEVMBridgeUtils +3 more
Script Arguments
0amountInUFix64
596.33624275
1minAmountOutUFix64
0.00000000
2txData[[UInt8]]
[
[
"172",
"150",
"80",
"216",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"32",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"64",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"160",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"36",
"117",
"206",
"175",
"230",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"32",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"160",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"184",
"124",
"150",
"107",
"192",
"11",
"194",
"196",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"32",
"83",
"211",
"237",
"65",
"156",
"220",
"236",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"104",
"58",
"78",
"163",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"43",
"211",
"191",
"83",
"218",
"193",
"6",
"160",
"41",
"11",
"4",
"131",
"236",
"188",
"137",
"212",
"15",
"204",
"150",
"31",
"62",
"0",
"11",
"184",
"127",
"39",
"53",
"45",
"95",
"131",
"219",
"135",
"165",
"163",
"224",
"15",
"75",
"7",
"204",
"33",
"56",
"216",
"238",
"82",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"4",
"18",
"33",
"14",
"138",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
[
"61",
"240",
"33",
"36",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"12",
"150",
"175",
"34",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
]
]3gasLimit[UInt64]
[ "15000000", "15000000" ]
4value[UInt]
[ "596336242750000000000", "0" ]
Cadence Script
1import EVM from 0xe467b9dd11fa00df
2import FlowEVMBridgeConfig from 0x1e4aa0b87d10b141
3import FlowEVMBridgeUtils from 0x1e4aa0b87d10b141
4import FlowEVMUtil from 0xccacabad8e80b596
5import FlowToken from 0x1654653399040a61
6import FungibleToken from 0xf233dcee88fe0abe
7
8transaction(amountIn: UFix64, minAmountOut: UFix64, txData: [[UInt8]], gasLimit: [UInt64], value: [UInt]) {
9 prepare(signer: auth(BorrowValue, CopyValue) &Account) {
10 let coa = signer.storage.borrow<auth(EVM.Bridge, EVM.Call, EVM.Withdraw) &EVM.CadenceOwnedAccount>(from: /storage/evm)!;let startVault = signer.storage.borrow<auth(FungibleToken.Withdraw) &{FungibleToken.Vault}>(from: /storage/flowTokenVault)!;let a <- startVault.withdraw(amount: amountIn);let b = FlowEVMBridgeUtils.convertCadenceAmountToERC20Amount(a.balance, erc20Address: FlowEVMBridgeConfig.getEVMAddressAssociated(with: Type<@FlowToken.Vault>())!);coa.deposit(from: <-(a as! @FlowToken.Vault))
11 let r0 = FlowEVMUtil.runCall(coa, contractAddress: EVM.addressFromString("0x3EF68D3f7664b2805D4E88381b64868a56f88bC4"), txdata: txData[0], gasLimit: gasLimit[0], value: EVM.Balance(attoflow: value[0]));let c = FlowEVMUtil.convertBytesToUInt256(r0.slice(from: r0.length - 64, upTo: r0.length-32))
12 txData[1] = FlowEVMUtil.replaceInto(into: txData[1], replace: FlowEVMUtil.convertUInt256ToBytes(c), start: 68);let r1 = FlowEVMUtil.approveAndSwap(coa, tokenAddress: EVM.addressFromString("0x7f27352D5F83Db87a5A3E00f4B07Cc2138D8ee52"), amount: c, contractAddress: EVM.addressFromString("0x073D6f03D1f1724F9dAA11b7f61A45105607F88c"), txdata: txData[1], gasLimit: gasLimit[1]);let d = FlowEVMUtil.convertBytesToUInt256(r1);let diff = FlowEVMBridgeUtils.convertERC20AmountToCadenceAmount(d, erc20Address: EVM.addressFromString("0x2aaBea2058b5aC2D339b163C6Ab6f2b6d53aabED"));assert(diff >= minAmountOut, message: diff.toString().concat(" < minAmountOut"));
13 }
14}