tx · 2V6JEWnj7NfZBPdBHPgTJNn2Tste5tL3YHPQbtMKT9Yk

3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6:  -0.01000000 Waves

2023.03.16 13:20 [2492453] smart account 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6 > SELF 0.00000000 Waves

{ "type": 13, "id": "2V6JEWnj7NfZBPdBHPgTJNn2Tste5tL3YHPQbtMKT9Yk", "fee": 1000000, "feeAssetId": null, "timestamp": 1678962108309, "version": 2, "chainId": 84, "sender": "3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6", "senderPublicKey": "3pW4h7e3NAcqGkvc1AyziZLMPSsG2eXvCGU7vLxPXkaq", "proofs": [ "53TyvShpf8SRmGkpLQgChem9zKMGp2nKDHNXrxQaht1LSQ6V15DyMoNnY7u4LWZP3CChe693mVyikWMHCeuX6JHR" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMBAQEAAAAAAAAAAQAAAAFpAQAAAARjYWxsAAAAAwAAAAtmaXJzdE51bWJlcgAAAAxzZWNvbmROdW1iZXIAAAAIbXVsdGlwbHkEAAAADGJpZ0ludFJlc3VsdAkAAToAAAACCQABOQAAAAIJAAE2AAAAAQUAAAALZmlyc3ROdW1iZXIJAAE2AAAAAQUAAAAIbXVsdGlwbHkJAAE5AAAAAgkAATYAAAABBQAAAAxzZWNvbmROdW1iZXIJAAE2AAAAAQUAAAAIbXVsdGlwbHkEAAAABnJlc3VsdAkAAaAAAAABBQAAAAxiaWdJbnRSZXN1bHQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABnJlc3VsdAUAAAAGcmVzdWx0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleWGhMqE=", "height": 2492453, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6N6y16P3DaaaxaUQKcCC5WxEpJvRqL2rkUPpfWodXKk Next: 9nZL2VYJXhhWKVCeQVo17YYD9HjGb5b52jSQHk9Lk73U Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "bstUsdtAssetId"
54
6-let b = "bstSurfAssetId"
75
8-func c (d) = {
9- let e = d
10- if ($isInstanceOf(e, "ByteVector"))
11- then {
12- let f = e
13- f
14- }
15- else throw("Expected that data will be string")
6+@Callable(a)
7+func call (b,c,d) = {
8+ let e = ((toBigInt(b) * toBigInt(d)) / (toBigInt(c) * toBigInt(d)))
9+ let f = toInt(e)
10+[IntegerEntry("result", f)]
1611 }
1712
1813
19-@Callable(g)
20-func issueAssets () = {
21- let h = Issue("bstUsdtTest1", "", 10000000, 6, true, unit, 0)
22- let i = calculateAssetId(h)
23- let j = Issue("bstSurfTest1", "", 10000000, 6, true, unit, 1)
24- let k = calculateAssetId(j)
25-[DeleteEntry(a), DeleteEntry(b), BinaryEntry(a, i), BinaryEntry(b, k), h, j]
26- }
27-
28-
29-
30-@Callable(g)
31-func sendInternalAssetsToTheCaller (l,m) = {
32- let n = if ((l == 0))
33- then c(getBinary(a))
34- else if ((l == 1))
35- then c(getBinary(b))
36- else throw("Wrong Asset Id")
37- let o = assetBalance(this, n)
38- if ((o >= m))
39- then [ScriptTransfer(g.caller, m, n)]
40- else [Reissue(n, m, true), ScriptTransfer(g.caller, m, n)]
41- }
42-
43-
44-@Verifier(p)
45-func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
14+@Verifier(g)
15+func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
4616

github/deemru/w8io/026f985 
21.65 ms