tx · Feh4WjZbmCp6FrtH9iwsessVLaGkL1pTz6LjXAK4xFwx

3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph:  -0.01400000 Waves

2021.10.25 13:35 [1761726] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves

{ "type": 13, "id": "Feh4WjZbmCp6FrtH9iwsessVLaGkL1pTz6LjXAK4xFwx", "fee": 1400000, "feeAssetId": null, "timestamp": 1635158111024, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "5CoTAgqGZ4t6AVvUoHizVTE3wVrbWPoAz52BwP6uAePw3pL9Kg32vL2CAssR2xKSdk7RMuELrsGGZmDoKcBsoRkV" ], "script": "base64:AAIFAAAAAAAAABEIAhIAEgASAwoBCBIECgIIAQAAAAIAAAAACXVzZXJBc3NldAIAAAAsR3JmZ3BjemNjcm41QWJydUxjdFh3Qzk0MWRnd2lwQnk2SFpZRGFRWEhidWsAAAAACWRBcHBBc3NldAIAAAAsN2FwU0p4TG54REt1bmI3YUJHYXVnNXFmVFg4OGpwYzNSMjI0OXBidUpVMngAAAAEAAAAAmE4AQAAAARpbml0AAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAADMzUFBIN3g3aXFvYlc1eml5aVJDaWMxOXJRcUtyNm5QWWFLMV9saXF1aWRpdHlfdG9rZW4CAAAALENIZWpCVFNybXMxZDRwS3dhVlZUdE44WnRKQzk0dzU3eEZOYloxd0dBU1ZQCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAMTNQUEg3eDdpcW9iVzV6aXlpUkNpYzE5clFxS3I2blBZYUsxX3NlcnZpY2VfdG9rZW4CAAAALDdvY1JYVXNVcnR5ajlHQWN4Ukp0OHRjcHNnZ0ZadDdjNDY3cUZleXBQYTF5BQ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NzZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADXBvb2xBbW91bnRLZXkFAAAADW5ld1Bvb2xBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAEXVzZXJQb29sQW1vdW50S2V5BQAAABFuZXdVc2VyUG9vbEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARdXNlclBvb2xFYXJuZWRLZXkFAAAADW5ld1VzZXJFYXJuZWQFAAAAA25pbAkAAAIAAAABAgAAACZZb3UgaGF2ZSBub3Qgc3VjaCBiYWxhbmNlIGZvciB3aXRoZHJhdwAAAAEAAAACYjYBAAAAAmI3AAAAAAkAAfQAAAADCAUAAAACYjYAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJiNgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJiNgAAAA9zZW5kZXJQdWJsaWNLZXm3h/uN", "height": 1761726, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DhBLBNfaAfvzuRjs9BTco3CEFsZrb3ws6uLyn1V6nTzG Next: 8BGdtMf5VdTzV7WYPB7Xu69Nccnx1a7HVccmPW6HvYqL Diff:
OldNewDifferences
2626 let j = (g + "_asset_balance")
2727 let k = toString(f.caller)
2828 let l = (((g + "_") + k) + "_asset_balance")
29- let m = getIntegerValue(this, j)
30- let n = {
31- let o = getInteger(l)
32- if ($isInstanceOf(o, "Int"))
29+ let m = getStringValue(this, (g + "_service_token"))
30+ let n = getIntegerValue(this, j)
31+ let o = {
32+ let p = getInteger(l)
33+ if ($isInstanceOf(p, "Int"))
3334 then {
34- let p = o
35- p
35+ let q = p
36+ q
3637 }
3738 else {
38- let q = o
39+ let r = p
3940 0
4041 }
4142 }
42- let r = (m + h)
4343 let s = (n + h)
44-[ScriptTransfer(f.caller, h, fromBase58String(b)), IntegerEntry(j, r), IntegerEntry(l, s)]
44+ let t = (o + h)
45+[ScriptTransfer(f.caller, h, fromBase58String(m)), IntegerEntry(j, s), IntegerEntry(l, t)]
4546 }
4647
4748
4849
4950 @Callable(f)
50-func withdraw (g,t) = {
51+func withdraw (g,u) = {
5152 let h = f.payments[0].amount
5253 let i = f.payments[0].assetId
5354 let j = (g + "_asset_balance")
5455 let k = toString(f.caller)
5556 let l = (((g + "_") + k) + "_asset_balance")
56- let u = (((g + "_") + k) + "_earned")
57- let m = getIntegerValue(this, j)
58- let n = {
59- let o = getInteger(l)
60- if ($isInstanceOf(o, "Int"))
57+ let v = (((g + "_") + k) + "_earned")
58+ let n = getIntegerValue(this, j)
59+ let o = {
60+ let p = getInteger(l)
61+ if ($isInstanceOf(p, "Int"))
6162 then {
62- let p = o
63- p
63+ let q = p
64+ q
6465 }
6566 else {
66- let q = o
67+ let r = p
6768 0
6869 }
6970 }
70- let v = {
71- let o = getInteger(l)
72- if ($isInstanceOf(o, "Int"))
71+ let w = {
72+ let p = getInteger(l)
73+ if ($isInstanceOf(p, "Int"))
7374 then {
74- let p = o
75- p
75+ let q = p
76+ q
7677 }
7778 else {
78- let q = o
79+ let r = p
7980 0
8081 }
8182 }
82- let w = (v + (h * t))
83- let r = (m - h)
84- if ((n >= h))
83+ let x = (w + (h * u))
84+ let s = (n - h)
85+ if ((o >= h))
8586 then {
86- let s = (n - h)
87-[ScriptTransfer(f.caller, h, fromBase58String(a)), IntegerEntry(j, r), IntegerEntry(l, s), IntegerEntry(u, w)]
87+ let t = (o - h)
88+[ScriptTransfer(f.caller, h, fromBase58String(a)), IntegerEntry(j, s), IntegerEntry(l, t), IntegerEntry(v, x)]
8889 }
8990 else throw("You have not such balance for withdraw")
9091 }
9192
9293
93-@Verifier(x)
94-func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
94+@Verifier(y)
95+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
9596
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "Grfgpczccrn5AbruLctXwC941dgwipBy6HZYDaQXHbuk"
55
66 let b = "7apSJxLnxDKunb7aBGaug5qfTX88jpc3R2249pbuJU2x"
77
88 @Callable(c)
99 func init () = [StringEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_liquidity_token", "CHejBTSrms1d4pKwaVVTtN8ZtJC94w57xFNbZ1wGASVP"), StringEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_service_token", "7ocRXUsUrtyj9GAcxRJt8tcpsggFZt7c467qFeypPa1y")]
1010
1111
1212
1313 @Callable(c)
1414 func call () = {
1515 let d = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0)
1616 let e = calculateAssetId(d)
1717 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), d]
1818 }
1919
2020
2121
2222 @Callable(f)
2323 func deposit (g) = {
2424 let h = f.payments[0].amount
2525 let i = f.payments[0].assetId
2626 let j = (g + "_asset_balance")
2727 let k = toString(f.caller)
2828 let l = (((g + "_") + k) + "_asset_balance")
29- let m = getIntegerValue(this, j)
30- let n = {
31- let o = getInteger(l)
32- if ($isInstanceOf(o, "Int"))
29+ let m = getStringValue(this, (g + "_service_token"))
30+ let n = getIntegerValue(this, j)
31+ let o = {
32+ let p = getInteger(l)
33+ if ($isInstanceOf(p, "Int"))
3334 then {
34- let p = o
35- p
35+ let q = p
36+ q
3637 }
3738 else {
38- let q = o
39+ let r = p
3940 0
4041 }
4142 }
42- let r = (m + h)
4343 let s = (n + h)
44-[ScriptTransfer(f.caller, h, fromBase58String(b)), IntegerEntry(j, r), IntegerEntry(l, s)]
44+ let t = (o + h)
45+[ScriptTransfer(f.caller, h, fromBase58String(m)), IntegerEntry(j, s), IntegerEntry(l, t)]
4546 }
4647
4748
4849
4950 @Callable(f)
50-func withdraw (g,t) = {
51+func withdraw (g,u) = {
5152 let h = f.payments[0].amount
5253 let i = f.payments[0].assetId
5354 let j = (g + "_asset_balance")
5455 let k = toString(f.caller)
5556 let l = (((g + "_") + k) + "_asset_balance")
56- let u = (((g + "_") + k) + "_earned")
57- let m = getIntegerValue(this, j)
58- let n = {
59- let o = getInteger(l)
60- if ($isInstanceOf(o, "Int"))
57+ let v = (((g + "_") + k) + "_earned")
58+ let n = getIntegerValue(this, j)
59+ let o = {
60+ let p = getInteger(l)
61+ if ($isInstanceOf(p, "Int"))
6162 then {
62- let p = o
63- p
63+ let q = p
64+ q
6465 }
6566 else {
66- let q = o
67+ let r = p
6768 0
6869 }
6970 }
70- let v = {
71- let o = getInteger(l)
72- if ($isInstanceOf(o, "Int"))
71+ let w = {
72+ let p = getInteger(l)
73+ if ($isInstanceOf(p, "Int"))
7374 then {
74- let p = o
75- p
75+ let q = p
76+ q
7677 }
7778 else {
78- let q = o
79+ let r = p
7980 0
8081 }
8182 }
82- let w = (v + (h * t))
83- let r = (m - h)
84- if ((n >= h))
83+ let x = (w + (h * u))
84+ let s = (n - h)
85+ if ((o >= h))
8586 then {
86- let s = (n - h)
87-[ScriptTransfer(f.caller, h, fromBase58String(a)), IntegerEntry(j, r), IntegerEntry(l, s), IntegerEntry(u, w)]
87+ let t = (o - h)
88+[ScriptTransfer(f.caller, h, fromBase58String(a)), IntegerEntry(j, s), IntegerEntry(l, t), IntegerEntry(v, x)]
8889 }
8990 else throw("You have not such balance for withdraw")
9091 }
9192
9293
93-@Verifier(x)
94-func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
94+@Verifier(y)
95+func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
9596

github/deemru/w8io/169f3d6 
65.27 ms