CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> ce4f7ec02ee414cade9ed0d2dbfcd4ab98e0f6951e5a49ef944e4ccafe70f1c5:182:12 | 182 | listing?.takeBuyNow(ins: insRef, commissionRecipient: nil) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> d2abb5dbf5e08666.FRC20Storefront:569:12 | 569 | self._onTransactionDeal( 570 | storefrontAddress: storefrontAddress, 571 | seller: seller, 572 | buyer: buyer, 573 | transactedAmt: transactedAmt, 574 | transactedPrice: transactedPrice, 575 | commissionAmount: commissionAmount, 576 | commissionRecipientAddress: commissionRecipient?.address 577 | ) | ^ --> d2abb5dbf5e08666.FRC20Storefront:697:16 | 697 | marketTransactionHook.onDeal( 698 | storefront: storefrontAddress, 699 | listingId: self.details.storefrontId, 700 | seller: seller, 701 | buyer: buyer, 702 | tick: tickName, 703 | dealAmount: transactedAmt, 704 | dealPrice: transactedPrice, 705 | totalAmountInListing: self.details.amount, 706 | ) | ^ --> d2abb5dbf5e08666.FRC20FTShared:953:12 | 953 | self._iterateHooks(fun (type: Type, ref: &AnyResource{FRC20FTShared.TransactionHook}) { 954 | // call hook 955 | ref.onDeal(storefront: storefront, listingId: listingId, seller: seller, buyer: buyer, tick: tick, dealAmount: dealAmount, dealPrice: dealPrice, totalAmountInListing: totalAmountInListing) 956 | 957 | // emit event 958 | emit TransactionHooksOnDeal( 959 | hooksOwner: hooksOwnerAddr!, 960 | executedHookType: type, 961 | storefront: storefront, 962 | listingId: listingId, 963 | ) 964 | }) | ^^ --> d2abb5dbf5e08666.FRC20FTShared:1006:24 | 1006 | func(type, ref) | ^^^^^^^^^^^^^^^ --> d2abb5dbf5e08666.FRC20FTShared:955:16 | 955 | ref.onDeal(storefront: storefront, listingId: listingId, seller: seller, buyer: buyer, tick: tick, dealAmount: dealAmount, dealPrice: dealPrice, totalAmountInListing: totalAmountInListing) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> d2abb5dbf5e08666.FRC20TradingRecord:549:12 | 549 | self.addRecord(record: newRecord) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: internal error: division by zero goroutine 84979426585 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 github.com/onflow/cadence/runtime/errors.NewUnexpectedError({0x301c708?, 0x248d9a0?}, {0xc0ccaafc58?, 0xc01c99c540?, 0xc0ccaafd40?}) /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(0xf465023f20, 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({0xc01c99c570?, 0x6c0acd?, 0x411482?}, {0x0?, 0x1722832?, 0x3089968?}, {0xc01c99c570?, 0x0?, 0xc0ccab0128?}, {0x0, ...}) /usr/local/go/src/math/big/natdiv.go:520 +0x34b math/big.(*Int).QuoRem(0xc0ccab01b8, 0xc0ccab01b8, 0xc0ccab0298, 0xc0ccab0160) /usr/local/go/src/math/big/int.go:286 +0x9c math/big.(*Int).Div(0xc0ccab01b8?, 0xc0ccab02b8?, 0xc0001cad80?) /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?, 0xf465023f20?}, 0xc0ccab0280?) /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?, 0xc40beee420?}, {0x30439a0?, 0x14015d7cab0?}}) /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(0xf465023f20, 0x14015d7cab0) /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?, 0x14015d7cab0}, {0x30812e0, 0xf465023f20}) /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(0xf465023f20, 0x14015d7cb40) /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?, 0x14015d7cb40}, {0x30812e0, 0xf465023f20}) /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(0xf465023f20, 0x14ec970c500, 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?, 0x14ec970c500) /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?, 0x14ec970c500}, {0x307bb50, 0xf465023f20}) /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(0xf465023f20, {0x3061410?, 0x14ec970c500}) /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?, {0xc1110e5180?, 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(0xf465023f20, 0x140dff96780) /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?, 0x14015d7c9c0?}, 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?, 0xc1110e51c0) /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?, 0xc1110e51c0}, {0x307bb50, 0xf465023f20}) /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(0xf465023f20, {0x3061190?, 0xc1110e51c0}) /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?, {0x14d470be000?, 0x12, 0xf465023f20?}) /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(0xf465023f20, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0xc0ccab12c0, {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(0xf465023f20?, 0x145a8449c00?, {0xc0c2401060?, 0x1?, 0x14cfb6cce60?}) /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(0xf465023f20, 0x145a8449c00, {{{0x305a6a0, 0xc40beee420}, {0x3043d88, 0x15246e127e0}}, 0xc0c2401030, 0x0, 0xc0c11d5100, 0xf465023f20, ...}) /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, 0xc40beee420}, {0x3043d88, 0x15246e127e0}}, 0xc0c2401030, 0x0, 0xc0c11d5100, 0xf465023f20, {0xc0c2401060, ...}, ...}) /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?, 0x145a8449c00?}, 0x0?, 0xc0c2401030?}, {{{0x305a6a0, 0xc40beee420}, {0x3043d88, 0x15246e127e0}}, 0xc0c2401030, 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(0xf465023f20?, {0x307afa8, 0xc0c2404600}, {0xc0c2401050?, 0x1?, 0x14c467c2dc0?}, {0xc0c2401040?, 0x1?, 0xbaf8b4?}, {0xc0c11d5110, ...}, ...) /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(0xf465023f20, 0x15246e127e0, 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?, 0x14938072ed0?) /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?, 0x15246e127e0}, {0x30812e0, 0xf465023f20}) /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(0x150ac7d44a8?, 0x14f0696fea0?) /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?, 0xc0c10846f0}, {0x307bb50, 0xf465023f20}) /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(0xf465023f20, {0x30610a0?, 0xc0c10846f0}) /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?, {0x14e59cc9600?, 0x6, 0xf465023f20?}) /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(0xf465023f20, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0xc0ccab1e68, {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(0xf465023f20?, 0x145a8449b80?, {0x145e4379e00?, 0x8?, 0x14cfb6cce60?}) /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(0xf465023f20, 0x145a8449b80, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69180}}, 0xc0c2400570, 0x0, 0xc0c0714bd0, 0x139b5539c80, ...}) /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(0x80?, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69180}}, 0xc0c2400570, 0x0, 0xc0c0714bd0, 0x139b5539c80, {0x145e4379e00, ...}, ...}) /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.(*Interpreter).functionConditionsWrapper.func1.1.1() /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:2206 +0x2b5 github.com/onflow/cadence/runtime/interpreter.(*Interpreter).visitFunctionBody(0x139b5539c80, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x10?}, 0xc0ccab22e8, {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).functionConditionsWrapper.func1.1({{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69180}}, 0xc0c2400570, 0x0, 0xc0c0714bd0, 0x139b5539c80, {0x145e4379e00, 0x8, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/interpreter.go:2220 +0x330 github.com/onflow/cadence/runtime/interpreter.(*HostFunctionValue).invoke(0x177fd64?, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69180}}, 0xc0c2400570, 0x0, 0xc0c0714bd0, 0x139b5539c80, {0x145e4379e00, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:256 +0x3a github.com/onflow/cadence/runtime/interpreter.BoundFunctionValue.invoke({{0x3079e98?, 0x145df009548?}, 0x0?, 0xc0c2400570?}, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69180}}, 0xc0c2400570, 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(0x139b5539c80?, {0x307afa8, 0xc0c24042a0}, {0x145e4379d80?, 0x8?, 0x411482?}, {0x145e4379d00?, 0x8?, 0xc0ccab2818?}, {0x14943726c80, ...}, ...) /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(0x139b5539c80, 0x14d37f69180, 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(0xb4?, 0xc0c2404280?) /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?, 0x14d37f69180}, {0x30812e0, 0x139b5539c80}) /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(0x64?, 0xc0ccab2b78?) /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?, 0xc0c03ae880}, {0x307bb50, 0x139b5539c80}) /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(0x139b5539c80, {0x30610a0?, 0xc0c03ae880}) /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?, {0xc0c03ad140?, 0x2, 0x139b5539c80?}) /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(0x139b5539c80, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc0ccab2de0?}, 0xc0ccab2e20, {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(0x139b5539c80?, 0x145e4379b80?, {0xc0c2404220?, 0x2?, 0x1722832?}) /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(0x139b5539c80, 0x145e4379b80, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69570}}, 0x0, 0x0, 0xc0c072a740, 0x139b5539c80, ...}) /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(0x2?, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69570}}, 0x0, 0x0, 0xc0c072a740, 0x139b5539c80, {0xc0c2404220, ...}, ...}) /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.(*Interpreter).invokeFunctionValue(0x139b5539c80?, {0x3079f40, 0x145e4379b80}, {0xc0c2404200?, 0x2?, 0x1482b65b3c0?}, {0xc0c24041e0?, 0x2?, 0x418350?}, {0xc0c072c5c0, ...}, ...) /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(0x139b5539c80, 0x14d37f69570, 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?, 0xc0ccab3538?) /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?, 0x14d37f69570}, {0x30812e0, 0x139b5539c80}) /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?, 0x151966ff4d0?) /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?, 0xc0c03ae990}, {0x307bb50, 0x139b5539c80}) /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(0x139b5539c80, {0x30610a0?, 0xc0c03ae990}) /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(0xc0ccab3748?, {0xc0c03ae9a0?, 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(0x139b5539c80, 0x14810c6cff0) /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(0x139b5539c80, 0x1451afdeb40, 0x1451afdeb40?, 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?, 0x13f0a1183c0) /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?, 0x13f0a1183c0}, {0x307bb50, 0x139b5539c80}) /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(0x139b5539c80, {0x3061190?, 0x13f0a1183c0}) /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(0xc0ccab3a78?, {0x13f0a118400?, 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(0x139b5539c80, 0x14810c6d040) /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(0x139b5539c80, 0x1451afdea00, 0x1451afdea00?, 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?, 0x13f0a118440) /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?, 0x13f0a118440}, {0x307bb50, 0x139b5539c80}) /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(0x139b5539c80, {0x3061190?, 0x13f0a118440}) /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?, {0xc0c03ad200?, 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(0x139b5539c80, 0x14810c6d090) /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(0x139b5539c80, 0xdf592802a0) /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?, 0xdf592802a0}, {0x307bb50, 0x139b5539c80}) /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(0x139b5539c80, {0x30610f0?, 0xdf592802a0}) /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?, {0xc0c03ae9b0?, 0x1, 0x139b5539c80?}) /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(0x139b5539c80, {0x0, 0x0, 0x0}, {0x0, 0x0, 0xc7645b?}, 0xc0ccab41d0, {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(0x139b5539c80?, 0x1508a4f4380?, {0xc0c2353c80?, 0x1?, 0x14cfb6cca00?}) /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(0x139b5539c80, 0x1508a4f4380, {{{0x305a6a0, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69260}}, 0xc0c2353c50, 0x0, 0xc0c0714b40, 0x139b5539c80, ...}) /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, 0x13a9aeeb560}, {0x3043d88, 0x14d37f69260}}, 0xc0c2353c50, 0x0, 0xc0c0714b40, 0x139b5539c80, {0xc0c2353c80, ...}, ...}) /go/pkg/mod/github.com/dapperlabs/cadence-internal@v0.42.5-patch.1/runtime/interpreter/value_function.go:126 +0x5e created by github.com/onflow/flow-go/engine/execution/computation/computer.(*blockComputer).executeBlock /app/engine/execution/computation/computer/computer.go:375 +0xa45 --> d2abb5dbf5e08666.FRC20TradingRecord:593:16 | 593 | let points = 1.0 * record.dealPrice / benchmarkPrice * mintAmount | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments:
tick:
worthless
batchBuyItems:
0-0-1463090890:
10000