Error
Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 1975faf7836f68da364d6c3706179e634983adee871ae424adc93af76cd179d0:171:12 | 171 | listing?.takeBuyNow(ins: insRef, commissionRecipient: nil) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> d2abb5dbf5e08666.FRC20Storefront:562:12 | 562 | self._onTransactionDeal( 563 | storefrontAddress: storefrontAddress, 564 | seller: seller, 565 | buyer: buyer, 566 | transactedAmt: transactedAmt, 567 | transactedPrice: transactedPrice, 568 | commissionAmount: commissionAmount, 569 | commissionRecipientAddress: commissionRecipient?.address 570 | ) | ^ --> d2abb5dbf5e08666.FRC20Storefront:690:16 | 690 | marketTransactionHook.onDeal( 691 | storefront: storefrontAddress, 692 | listingId: self.details.storefrontId, 693 | seller: seller, 694 | buyer: buyer, 695 | tick: tickName, 696 | dealAmount: transactedAmt, 697 | dealPrice: transactedPrice, 698 | totalAmountInListing: self.details.amount, 699 | ) | ^ --> d2abb5dbf5e08666.FRC20FTShared:792:24 | 792 | ref.onDeal(storefront: storefront, listingId: listingId, seller: seller, buyer: buyer, tick: tick, dealAmount: dealAmount, dealPrice: dealPrice, totalAmountInListing: totalAmountInListing) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> d2abb5dbf5e08666.FRC20TradingRecord:554:12 | 554 | self.addRecord(record: newRecord) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: internal error: division by zero goroutine 41257573473 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 github.com/onflow/cadence/runtime/errors.NewUnexpectedError({0x301c708?, 0x248d9a0?}, {0x16ddec93a68?, 0x14051b25c80?, 0x16ddec93b50?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/errors/errors.go:145 +0x4b github.com/onflow/cadence/runtime/interpreter.asCadenceError({0x248d9a0, 0x3029c40}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:561 +0xa5 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).RecoverErrors(0x17a0e11bc20, 0x2d24b40) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:528 +0x57 panic({0x248d9a0, 0x3029c40}) /usr/local/go/src/runtime/panic.go:884 +0x213 math/big.nat.div({0x14051b25cb0?, 0x6c0acd?, 0x411482?}, {0x0?, 0x1722832?, 0x3089968?}, {0x14051b25cb0?, 0x0?, 0x16ddec93f38?}, {0x0, ...}) /usr/local/go/src/math/big/natdiv.go:520 +0x34b math/big.(*Int).QuoRem(0x16ddec93fc8, 0x16ddec93fc8, 0x16ddec940a8, 0x16ddec93f70) /usr/local/go/src/math/big/int.go:286 +0x9c math/big.(*Int).Div(0x16ddec93fc8?, 0x16ddec940c8?, 0xc00016ada0?) /usr/local/go/src/math/big/int.go:297 +0x45 github.com/onflow/cadence/runtime/interpreter.UFix64Value.Div.func1() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value.go:15957 +0x58 github.com/onflow/cadence/runtime/interpreter.NewUFix64Value({0x3031160?, 0x17a0e11bc20?}, 0x16ddec94090?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value.go:15732 +0x5b github.com/onflow/cadence/runtime/interpreter.UFix64Value.Div(0x0?, 0x6?, {0x3089968?, 0x470df40?}, {{0x305a6a0?, 0x155b6fcf410?}, {0x30439a0?, 0x14c63c62a80?}}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value.go:15962 +0x155 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitBinaryExpression(0x17a0e11bc20, 0x14c63c62a80) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:371 +0x923 github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x3068c00?, 0x14c63c62a80}, {0x30812e0, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:260 +0x458 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:306 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitBinaryExpression(0x17a0e11bc20, 0x14c63c62ae0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:311 +0x59 github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x3068c00?, 0x14c63c62ae0}, {0x30812e0, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:260 +0x458 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:306 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).assignmentGetterSetter.func1(0x20?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:53 +0x33 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitVariableDeclaration(0x17a0e11bc20, 0x16096bccfa0, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:459 +0x17f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitVariableDeclaration(0x40ff4a?, 0x16096bccfa0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:421 +0x25 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x3061410?, 0x16096bccfa0}, {0x307bb50, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:143 +0x4aa github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11bc20, {0x3061410?, 0x16096bccfa0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x25ffc20?, {0x173db9fc440?, 0x3, 0x307a480?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0x17a0e11bc20, 0x161f8cc3310) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:760 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithTestExpression(0xba0945?, {0x3068c00?, 0x14c63c629c0?}, 0x179a4cb?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:132 +0xce github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x64?, 0x173db9fc480) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:113 +0xd8 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x3061190?, 0x173db9fc480}, {0x307bb50, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:119 +0x335 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11bc20, {0x3061190?, 0x173db9fc480}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc7629a?, {0x13ad7513600?, 0x12, 0x17a0e11bc20?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:173 +0x2d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x17a0e11bc20, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0x16ddec950d0, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:785 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0x17a0e11bc20?, 0x16f5f13c600?, {0x13d4cf52620?, 0x1?, 0x162d9f5f4a0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:169 +0x19f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0x17a0e11bc20, 0x16f5f13c600, {{{0x305a6a0, 0x155b6fcf410}, {0x3043d88, 0x13ad878ed90}}, 0x13d4cf525f0, 0x0, 0x14d81621a10, 0x17a0e11bc20, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:148 +0x1d8 github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(0x177fd64?, {{{0x305a6a0, 0x155b6fcf410}, {0x3043d88, 0x13ad878ed90}}, 0x13d4cf525f0, 0x0, 0x14d81621a10, 0x17a0e11bc20, {0x13d4cf52620, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:126 +0x5e github.com/onflow/cadence/runtime/interpreter.BoundFunctionValue.invoke({{0x3079f40?, 0x16f5f13c600?}, 0x0?, 0x13d4cf525f0?}, {{{0x305a6a0, 0x155b6fcf410}, {0x3043d88, 0x13ad878ed90}}, 0x13d4cf525f0, 0x0, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:398 +0xd9 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeFunctionValue(0x17a0e11bc20?, {0x307afa8, 0x14e1095e800}, {0x13d4cf52610?, 0x1?, 0x13ad8792780?}, {0x13d4cf52600?, 0x1?, 0xbaf8b4?}, {0x14d81621a20, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:124 +0x1bd github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitInvocationExpressionWithImplicitArgument(0x17a0e11bc20, 0x13ad878ed90, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:1002 +0x8f6 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitInvocationExpression(0x0?, 0x14715e5a970?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:907 +0x1b github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x30690e0?, 0x13ad878ed90}, {0x30812e0, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:230 +0x2ea github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:306 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitExpressionStatement(0x1466368d418?, 0x16096bcc500?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:585 +0x34 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x30610a0?, 0x146ec578850}, {0x307bb50, 0x17a0e11bc20}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:140 +0x583 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11bc20, {0x30610a0?, 0x146ec578850}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc7629a?, {0x16cad258080?, 0x6, 0x17a0e11bc20?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:173 +0x2d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x17a0e11bc20, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0x16ddec95c78, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:785 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0x17a0e11bc20?, 0x16f5f13c580?, {0x13c86758900?, 0x8?, 0x162d9f5f4a0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:169 +0x19f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0x17a0e11bc20, 0x16f5f13c580, {{{0x305a6a0, 0xc5455aebd0}, {0x3043d88, 0x13ad73e9650}}, 0x16475b6dac0, 0x0, 0x1479cfe8bc0, 0x17a0e11b980, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:148 +0x1d8 github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(0x177fd64?, {{{0x305a6a0, 0xc5455aebd0}, {0x3043d88, 0x13ad73e9650}}, 0x16475b6dac0, 0x0, 0x1479cfe8bc0, 0x17a0e11b980, {0x13c86758900, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:126 +0x5e github.com/onflow/cadence/runtime/interpreter.BoundFunctionValue.invoke({{0x3079f40?, 0x16f5f13c580?}, 0x0?, 0x16475b6dac0?}, {{{0x305a6a0, 0xc5455aebd0}, {0x3043d88, 0x13ad73e9650}}, 0x16475b6dac0, 0x0, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:398 +0xd9 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeFunctionValue(0x17a0e11b980?, {0x307afa8, 0x14e1095e460}, {0x13c86758880?, 0x8?, 0x14e42331e80?}, {0x13c86758800?, 0x8?, 0x418350?}, {0x16c0151ec80, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:124 +0x1bd github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitInvocationExpressionWithImplicitArgument(0x17a0e11b980, 0x13ad73e9650, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:1002 +0x8f6 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitInvocationExpression(0x414584?, 0x16ddec964f0?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:907 +0x1b github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x30690e0?, 0x13ad73e9650}, {0x30812e0, 0x17a0e11b980}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:230 +0x2ea github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:306 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitExpressionStatement(0x40ff4a?, 0x1476324b440?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:585 +0x34 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x30610a0?, 0x14b3f0c9950}, {0x307bb50, 0x17a0e11b980}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:140 +0x583 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11b980, {0x30610a0?, 0x14b3f0c9950}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x16ddec96700?, {0xc50db0d1c0?, 0x2, 0x30742a0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0x17a0e11b980, 0x15996ef3b80) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:760 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithVariableDeclaration(0x17a0e11b980, 0x16cb64b4fa0, 0x16cb64b4fa0?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:163 +0x1ef github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x40ff4a?, 0x13b706fb340) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:115 +0x95 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x3061190?, 0x13b706fb340}, {0x307bb50, 0x17a0e11b980}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:119 +0x335 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11b980, {0x3061190?, 0x13b706fb340}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x16ddec96a30?, {0x13b706fb380?, 0x3, 0x3073fd0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0x17a0e11b980, 0x15996ef3d10) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:760 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithVariableDeclaration(0x17a0e11b980, 0x16cb64b46e0, 0x16cb64b46e0?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:163 +0x1ef github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x40ff4a?, 0x13b706fb3c0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:115 +0x95 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x3061190?, 0x13b706fb3c0}, {0x307bb50, 0x17a0e11b980}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:119 +0x335 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11b980, {0x3061190?, 0x13b706fb3c0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x10f3fa0?, {0xc50db0d1e0?, 0x2, 0x3ea?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0x17a0e11b980, 0x15996ef3d60) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:760 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitForStatement(0x17a0e11b980, 0x139255a1ce0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:313 +0x2ef github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x30610f0?, 0x139255a1ce0}, {0x307bb50, 0x17a0e11b980}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:122 +0x411 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11b980, {0x30610f0?, 0x139255a1ce0}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc7629a?, {0x13b706fb400?, 0x3, 0x17a0e11b980?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:173 +0x2d github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x17a0e11b980, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0x16ddec97188, {0x0, 0x0, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:785 +0x18f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated(0x17a0e11b980?, 0x146a9e7fb80?, {0x13c86758580?, 0x8?, 0x162d9f5f0e0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:169 +0x19f github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunction(0x17a0e11b980, 0x146a9e7fb80, {{{0x305a6a0, 0x16c78694c90}, {0x3043d88, 0x13ad8c67c70}}, 0x16475b6d130, 0x0, 0x167d55772f0, 0x17a0e11bc80, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:148 +0x1d8 github.com/onflow/cadence/runtime/interpreter.(*InterpretedFunctionValue).invoke(0x177fd64?, {{{0x305a6a0, 0x16c78694c90}, {0x3043d88, 0x13ad8c67c70}}, 0x16475b6d130, 0x0, 0x167d55772f0, 0x17a0e11bc80, {0x13c86758580, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:126 +0x5e github.com/onflow/cadence/runtime/interpreter.BoundFunctionValue.invoke({{0x3079f40?, 0x146a9e7fb80?}, 0x0?, 0x16475b6d130?}, {{{0x305a6a0, 0x16c78694c90}, {0x3043d88, 0x13ad8c67c70}}, 0x16475b6d130, 0x0, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:398 +0xd9 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeFunctionValue(0x17a0e11bc80?, {0x307afa8, 0x13c24a71da0}, {0x13c86758400?, 0x8?, 0x0?}, {0x13c86758100?, 0x8?, 0xc2be758c00?}, {0x1650a678000, ...}, ...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:124 +0x1bd github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitInvocationExpressionWithImplicitArgument(0x17a0e11bc80, 0x13ad8c67c70, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:1002 +0x8f6 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitInvocationExpression(0x414584?, 0x16ddec97a00?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:907 +0x1b github.com/onflow/cadence/runtime/ast.AcceptExpression[...]({0x30690e0?, 0x13ad8c67c70}, {0x30812e0, 0x17a0e11bc80}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:230 +0x2ea github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalExpression(...) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_expression.go:306 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitExpressionStatement(0x40ff4a?, 0x15cb1e01920?) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:585 +0x34 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x30610a0?, 0x15609650540}, {0x307bb50, 0x17a0e11bc80}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:140 +0x583 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11bc80, {0x30610a0?, 0x15609650540}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0x16ddec97c10?, {0x15609650550?, 0x1, 0x30742a0?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitBlock(0x17a0e11bc80, 0x163bc127f90) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:760 +0xa8 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitIfStatementWithVariableDeclaration(0x17a0e11bc80, 0x170026dc280, 0x170026dc280?, 0x0) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:163 +0x1ef github.com/onflow/cadence/runtime/interpreter.(*Interpreter).VisitIfStatement(0x64?, 0x14f62068500) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:115 +0x95 github.com/onflow/cadence/runtime/ast.AcceptStatement[...]({0x3061190?, 0x14f62068500}, {0x307bb50, 0x17a0e11bc80}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/ast/visitor.go:119 +0x335 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).evalStatement(0x17a0e11bc80, {0x3061190?, 0x14f62068500}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:58 +0x165 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitStatements(0xc7629a?, {0x1421e425c00?, 0x9, 0x17a0e11bc80?}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_statement.go:64 +0x65 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).invokeInterpretedFunctionActivated.func2() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter_invocation.go:173 +0x2d created by github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock /app/engine/execution/computation/computer/computer.go:375 +0xa45 --> d2abb5dbf5e08666.FRC20TradingRecord:598:16 | 598 | let points = 1.0 * record.dealPrice / benchmarkPrice * mintAmount | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
tick:
grok
batchBuyItems:
0-299-1440490485:
49
Loading...