tx · 8GBf7aAN1tV72MPELaMBeTzFDox4nm166Pdp8WiZXTtv

3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP:  -0.01000000 Waves

2021.08.23 18:55 [1671180] smart account 3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP > SELF 0.00000000 Waves

{ "type": 13, "id": "8GBf7aAN1tV72MPELaMBeTzFDox4nm166Pdp8WiZXTtv", "fee": 1000000, "feeAssetId": null, "timestamp": 1629734161612, "version": 2, "chainId": 84, "sender": "3N7AyMYR2ovan7TNvPE9jMRTejZyXPcV9NP", "senderPublicKey": "Go3xxijfukFnawU9Jyy1yX4dSyxKT9SYT6Tp3g6iTAjt", "proofs": [ "4twXWSD4F3WuS8Y9VGCaSMk1boA9d4m5vXQtQChaK1cmgT27TJgksmZMJb8QARxe2FUcPutS4c6o31PZ9KvLw5fX" ], "script": "base64:AAIFAAAAAAAAAfoIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoeCgJhORIYY29tbWlzc2lvblNjYWxlRGVsaW1pdGVyGhAKAmIxEgpjb21taXNzaW9uGgoKAmIyEgRmZWVzGgoKAmIzEgRmcm9tGggKAmI0EgJ0bxoKCgJiNRIEYW1udBoWCgJiNhIQYW1vdW50V2l0aG91dEZlZRoTCgJiNxINYW1vdW50V2l0aEZlZRoHCgJiOBIBaRoJCgJiORIDbWluGgkKAmMxEgNlMWEaCQoCYzISA2UxYhoJCgJjMxIDZTJhGgkKAmM0EgNlMmIaCQoCYzUSA2UzYRoJCgJjNhIDZTNiGgkKAmM3EgNiYnUaCQoCYzgSA2JidxoJCgJjORIDYmJzGgoKAmQxEgRkaWZ1GgoKAmQyEgRkaWZzGgoKAmQzEgRkaWZ3GgsKAmQ0EgVzd2FwMRoLCgJkNRIFZGlmZnUaCwoCZDYSBXN3YXAyG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AAAAAAgUAAAACZDYFAAAAAmQ2BAAAAAJkNQkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAAAmE1BQAAAAJjNwMJAAAAAAAAAgUAAAACZDUFAAAAAmQ1BAAAAAJkOAkAA/wAAAAEBQAAAAJhMQIAAAAIZXhjaGFuZ2UJAARMAAAAAgAAAAAAAAAAAQUAAAADbmlsCQAETAAAAAIJAQAAAA9BdHRhY2hlZFBheW1lbnQAAAACBQAAAAJhNQUAAAACZDUFAAAAA25pbAMJAAAAAAAAAgUAAAACZDgFAAAAAmQ4BAAAAAJkOQkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAAAmE0BQAAAAJjOAMJAAAAAAAAAgUAAAACZDkFAAAAAmQ5AwkAAGYAAAACBQAAAAJkOQUAAAACYjkEAAAAAmUxAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmQ5BQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJkOQkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZTdHJpY3QAAAABAAAAAmUyAQAAAAJlMwAAAAAJAAH0AAAAAwgFAAAAAmUyAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZTIAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACZTIAAAAPc2VuZGVyUHVibGljS2V5DlyoYw==", "height": 1671180, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: hEWtLEXeQjKyAjVE6wo4MHYo9zmzmRXYDkiVkyHSVyG Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL"))
5+
6+let b = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip"))
7+
8+let c = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B"))
9+
10+let d = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS'
11+
12+let e = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL'
13+
14+let f = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g'
15+
16+let g = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272")
17+
18+let h = 100000000
19+
20+let i = 1000000
21+
22+let j = 3000
23+
24+func k (l,m,n) = {
25+ let o = fraction(m, n, (n + l))
26+ let p = fraction(o, (i - j), i)
27+ p
28+ }
29+
30+
31+@Callable(q)
32+func call1 (n,r) = if ((q.caller != g))
33+ then throw("only admin")
34+ else {
35+ let s = getIntegerValue(a, "A_asset_balance")
36+ if ((s == s))
37+ then {
38+ let t = getIntegerValue(a, "B_asset_balance")
39+ if ((t == t))
40+ then {
41+ let u = getIntegerValue(b, "A_asset_balance")
42+ if ((u == u))
43+ then {
44+ let v = getIntegerValue(b, "B_asset_balance")
45+ if ((v == v))
46+ then {
47+ let w = getIntegerValue(c, "A_asset_balance")
48+ if ((w == w))
49+ then {
50+ let x = getIntegerValue(c, "B_asset_balance")
51+ if ((x == x))
52+ then {
53+ let y = assetBalance(this, e)
54+ if ((y == y))
55+ then {
56+ let z = assetBalance(this, d)
57+ if ((z == z))
58+ then {
59+ let A = assetBalance(this, f)
60+ if ((A == A))
61+ then {
62+ let B = k(s, t, n)
63+ if ((B == B))
64+ then {
65+ let C = k(u, v, B)
66+ if ((C == C))
67+ then {
68+ let D = k(w, x, C)
69+ if ((D == D))
70+ then if ((D > (n + r)))
71+ then {
72+ let E = invoke(a, "exchange", [1], [AttachedPayment(d, (n * h))])
73+ if ((E == E))
74+ then {
75+ let F = (assetBalance(this, e) - y)
76+ if ((F == F))
77+ then {
78+ let G = invoke(c, "exchange", [1], [AttachedPayment(e, F)])
79+ if ((G == G))
80+ then {
81+ let H = (assetBalance(this, f) - A)
82+ if ((H == H))
83+ then {
84+ let I = invoke(b, "exchange", [1], [AttachedPayment(f, H)])
85+ if ((I == I))
86+ then {
87+ let J = (assetBalance(this, d) - z)
88+ if ((J == J))
89+ then if ((J > r))
90+ then [IntegerEntry("debug", J)]
91+ else throw(("diffw" + toString(J)))
92+ else throw("Strict value is not equal to itself.")
93+ }
94+ else throw("Strict value is not equal to itself.")
95+ }
96+ else throw("Strict value is not equal to itself.")
97+ }
98+ else throw("Strict value is not equal to itself.")
99+ }
100+ else throw("Strict value is not equal to itself.")
101+ }
102+ else throw("Strict value is not equal to itself.")
103+ }
104+ else throw(("difw" + toString(D)))
105+ else throw("Strict value is not equal to itself.")
106+ }
107+ else throw("Strict value is not equal to itself.")
108+ }
109+ else throw("Strict value is not equal to itself.")
110+ }
111+ else throw("Strict value is not equal to itself.")
112+ }
113+ else throw("Strict value is not equal to itself.")
114+ }
115+ else throw("Strict value is not equal to itself.")
116+ }
117+ else throw("Strict value is not equal to itself.")
118+ }
119+ else throw("Strict value is not equal to itself.")
120+ }
121+ else throw("Strict value is not equal to itself.")
122+ }
123+ else throw("Strict value is not equal to itself.")
124+ }
125+ else throw("Strict value is not equal to itself.")
126+ }
127+ else throw("Strict value is not equal to itself.")
128+ }
129+
130+
131+
132+@Callable(q)
133+func call2 (n,r) = if ((q.caller != g))
134+ then throw("only admin")
135+ else {
136+ let y = assetBalance(this, e)
137+ let z = assetBalance(this, d)
138+ let A = assetBalance(this, f)
139+ if (if (if ((y == y))
140+ then (z == z)
141+ else false)
142+ then (A == A)
143+ else false)
144+ then {
145+ let E = invoke(b, "exchange", [1], [AttachedPayment(d, (n * h))])
146+ if ((E == E))
147+ then {
148+ let H = (assetBalance(this, f) - A)
149+ if ((H == H))
150+ then {
151+ let G = invoke(c, "exchange", [1], [AttachedPayment(f, H)])
152+ if ((G == G))
153+ then {
154+ let F = (assetBalance(this, e) - y)
155+ if ((F == F))
156+ then {
157+ let I = invoke(a, "exchange", [1], [AttachedPayment(e, F)])
158+ if ((I == I))
159+ then {
160+ let J = (assetBalance(this, d) - z)
161+ if ((J == J))
162+ then if ((J > r))
163+ then {
164+ let K = "ok"
165+[IntegerEntry("debug", J)]
166+ }
167+ else throw(toString(J))
168+ else throw("strict")
169+ }
170+ else throw("strict")
171+ }
172+ else throw("strict")
173+ }
174+ else throw("strict")
175+ }
176+ else throw("strict")
177+ }
178+ else throw("strict")
179+ }
180+ else throw("Strict")
181+ }
182+
183+
184+@Verifier(L)
185+func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
186+

github/deemru/w8io/169f3d6 
32.76 ms