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(a)
77 func call (b,c,d) = {
8- let e = ((toBigInt(b) * toBigInt(d)) / toBigInt(c))
9- let f = fraction(toBigInt(b), toBigInt(d), toBigInt(c), HALFUP)
10- let g = toInt(f)
11- let h = fraction(f, toBigInt(c), toBigInt(d))
12- let i = ((f * toBigInt(c)) / toBigInt(d))
13-[IntegerEntry("result", g), IntegerEntry("backwardResult", toInt(h))]
8+ let e = fraction(toBigInt(b), toBigInt(d), toBigInt(c), HALFUP)
9+ let f = toInt(e)
10+ let g = fraction(e, toBigInt(c), toBigInt(d), HALFUP)
11+[IntegerEntry("result", f), IntegerEntry("backwardResult", toInt(g))]
1412 }
1513
1614
17-@Verifier(j)
18-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
15+@Verifier(h)
16+func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey)
1917
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func call (b,c,d) = {
8- let e = ((toBigInt(b) * toBigInt(d)) / toBigInt(c))
9- let f = fraction(toBigInt(b), toBigInt(d), toBigInt(c), HALFUP)
10- let g = toInt(f)
11- let h = fraction(f, toBigInt(c), toBigInt(d))
12- let i = ((f * toBigInt(c)) / toBigInt(d))
13-[IntegerEntry("result", g), IntegerEntry("backwardResult", toInt(h))]
8+ let e = fraction(toBigInt(b), toBigInt(d), toBigInt(c), HALFUP)
9+ let f = toInt(e)
10+ let g = fraction(e, toBigInt(c), toBigInt(d), HALFUP)
11+[IntegerEntry("result", f), IntegerEntry("backwardResult", toInt(g))]
1412 }
1513
1614
17-@Verifier(j)
18-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
15+@Verifier(h)
16+func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey)
1917

github/deemru/w8io/026f985 
19.08 ms