tx · PQdd2ZaZacPfM4MfmHywRt2mRvL384Z2hF1dih7ZvMf

3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6:  -0.01000000 Waves

2023.03.16 14:09 [2492501] smart account 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6 > SELF 0.00000000 Waves

{ "type": 13, "id": "PQdd2ZaZacPfM4MfmHywRt2mRvL384Z2hF1dih7ZvMf", "fee": 1000000, "feeAssetId": null, "timestamp": 1678964992664, "version": 2, "chainId": 84, "sender": "3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6", "senderPublicKey": "3pW4h7e3NAcqGkvc1AyziZLMPSsG2eXvCGU7vLxPXkaq", "proofs": [ "4MorzL5fYcFeVhzSwLJQZXBFGtdq9NJ8WerGEAB1PzxV5cBWGy3514KaUZGQCJczq4f2y9HhJbfNByvtBFsHebtp" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMBAQEAAAAAAAAAAQAAAAFpAQAAAARjYWxsAAAAAwAAAAtmaXJzdE51bWJlcgAAAAxzZWNvbmROdW1iZXIAAAAIbXVsdGlwbHkEAAAADGJpZ0ludFJlc3VsdAkAAT0AAAAECQABNgAAAAEFAAAAC2ZpcnN0TnVtYmVyCQABNgAAAAEFAAAACG11bHRpcGx5CQABNgAAAAEFAAAADHNlY29uZE51bWJlcgUAAAAGSEFMRlVQBAAAAAZyZXN1bHQJAAGgAAAAAQUAAAAMYmlnSW50UmVzdWx0BAAAAAhiYWNrd2FyZAkAAT0AAAAEBQAAAAxiaWdJbnRSZXN1bHQJAAE2AAAAAQUAAAAMc2Vjb25kTnVtYmVyCQABNgAAAAEFAAAACG11bHRpcGx5BQAAAAZIQUxGVVAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABnJlc3VsdAUAAAAGcmVzdWx0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA5iYWNrd2FyZFJlc3VsdAkAAaAAAAABBQAAAAhiYWNrd2FyZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmyxLNU", "height": 2492501, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8SpGJhg2w2nLTCuYgpnMcvzY7Q96p9CZMYeu65JKbp32 Next: 8gZfH6eH8SCFnXwCTwxk1HrzH8ZxVh1E69oykQHe33e9 Diff:
OldNewDifferences
55
66 @Callable(i)
77 func call (firstNumber,secondNumber,multiply) = {
8- let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / toBigInt(secondNumber))
9- let bigIntResult2 = fraction(toBigInt(firstNumber), toBigInt(multiply), toBigInt(secondNumber), HALFUP)
10- let result = toInt(bigIntResult2)
11- let backward2 = fraction(bigIntResult2, toBigInt(secondNumber), toBigInt(multiply))
12- let backward = ((bigIntResult2 * toBigInt(secondNumber)) / toBigInt(multiply))
13-[IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward2))]
8+ let bigIntResult = fraction(toBigInt(firstNumber), toBigInt(multiply), toBigInt(secondNumber), HALFUP)
9+ let result = toInt(bigIntResult)
10+ let backward = fraction(bigIntResult, toBigInt(secondNumber), toBigInt(multiply), HALFUP)
11+[IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward))]
1412 }
1513
1614
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func call (firstNumber,secondNumber,multiply) = {
8- let bigIntResult = ((toBigInt(firstNumber) * toBigInt(multiply)) / toBigInt(secondNumber))
9- let bigIntResult2 = fraction(toBigInt(firstNumber), toBigInt(multiply), toBigInt(secondNumber), HALFUP)
10- let result = toInt(bigIntResult2)
11- let backward2 = fraction(bigIntResult2, toBigInt(secondNumber), toBigInt(multiply))
12- let backward = ((bigIntResult2 * toBigInt(secondNumber)) / toBigInt(multiply))
13-[IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward2))]
8+ let bigIntResult = fraction(toBigInt(firstNumber), toBigInt(multiply), toBigInt(secondNumber), HALFUP)
9+ let result = toInt(bigIntResult)
10+ let backward = fraction(bigIntResult, toBigInt(secondNumber), toBigInt(multiply), HALFUP)
11+[IntegerEntry("result", result), IntegerEntry("backwardResult", toInt(backward))]
1412 }
1513
1614
1715 @Verifier(tx)
1816 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1917

github/deemru/w8io/026f985 
34.76 ms