tx · EoLSyHsy6moCym4RV4mYKg7iTAZCuhgXRVzQYzRvsJBZ

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.12 19:22 [1700066] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "EoLSyHsy6moCym4RV4mYKg7iTAZCuhgXRVzQYzRvsJBZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1631463779883, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "8Rn24ZViXQo6rxTXH4owhNcrrCZ67q3Rh8UHfyZGMxN3wU3RYra1X23c8Ms6cN7MhJ4zWShye344hiQQi3UrbVA" ], "script": "base64:AAIFAAAAAAAAAA0IAhIJCgcYGBERGAIBAAAACQAAAAAHZGlnaXRzOAAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAdzY2FsZTEyAAAAAOjUpRAAAAAAAAVhbHBoYQAAAAAAAAAAMgAAAAALYWxwaGFEaWdpdHMAAAAAAAAAAAIAAAAABGJldGEAAAAAAAK954ABAAAACHNrZXduZXNzAAAAAgAAAAF4AAAAAXkJAABpAAAAAgkAAGkAAAACCQAAZAAAAAIJAABrAAAAAwUAAAAHc2NhbGUxMgUAAAABeAUAAAABeQkAAGsAAAADBQAAAAdzY2FsZTEyBQAAAAF5BQAAAAF4AAAAAAAAAAACAAAAAAAAACcQAQAAAA1pbnZhcmlhbnRDYWxjAAAAAgAAAAF4AAAAAXkEAAAAAnNrCQEAAAAIc2tld25lc3MAAAACBQAAAAF4BQAAAAF5CQAAZAAAAAIJAABrAAAAAwkAAGQAAAACBQAAAAF4BQAAAAF5BQAAAAZzY2FsZTgJAABsAAAABgUAAAACc2sFAAAAB2RpZ2l0czgFAAAABWFscGhhBQAAAAth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hbmdlQ291bnRlcgUAAAALcm91dGluZ1NpemUJAABnAAAAAgUAAAAPYW1vdW50VG9SZWNpZXZlBQAAABJtaW5BbW91bnRUb1JlY2VpdmUHCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPYW1vdW50VG9SZWNpZXZlBQAAAA5yZWNlaXZlQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAPnJvdXRpbmcgIT0gcm91dGluZ1NpemUgb3IgYW1vdW50VG9SZWNpZXZlIDwgbWluQW1vdW50VG9SZWNlaXZlAAAAAFqaUq8=", "height": 1700066, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CdZYon4JJbf1r9uhhso9PRSwSiUCNPGZ4aFQtib4u91i Next: 5P6aTYNSWLn5uR8Kfe2bFgf3t8qgtJMmgaixhRfNCX7w Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b,c,d,e,f) = {
5- let g = 3000
6- let h = 1000000
7- let i = getIntegerValue(addressFromStringValue(d[0]), f[0])
8- let j = getIntegerValue(addressFromStringValue(d[0]), f[1])
9- let k = getIntegerValue(addressFromStringValue(d[1]), f[2])
10- let l = getIntegerValue(addressFromStringValue(d[1]), f[3])
11- let m = fraction(j, b, (b + i))
12- let n = fraction(m, (h - g), h)
13- let o = fraction(l, n, (n + k))
14- let p = fraction(o, (h - g), h)
15- if ((p >= c))
4+let a = 8
5+
6+let b = 100000000
7+
8+let c = 1000000000000
9+
10+let d = 50
11+
12+let e = 2
13+
14+let f = 46000000
15+
16+func g (h,i) = (((fraction(c, h, i) + fraction(c, i, h)) / 2) / 10000)
17+
18+
19+func j (h,i) = {
20+ let k = g(h, i)
21+ (fraction((h + i), b, pow(k, a, d, e, a, CEILING)) + (2 * fraction(pow(fraction(h, i, b), 0, 5, 1, (a / 2), DOWN), pow((k - f), a, d, e, a, DOWN), b)))
22+ }
23+
24+
25+func l (m,n,o,p,q,r,s) = {
26+ let t = 3000
27+ let u = 1000000
28+ let v = getIntegerValue(addressFromStringValue(o[0]), q[0])
29+ let w = getIntegerValue(addressFromStringValue(o[0]), q[1])
30+ let x = getIntegerValue(addressFromStringValue(o[1]), q[2])
31+ let y = getIntegerValue(addressFromStringValue(o[1]), q[3])
32+ let z = if ((p[0] == "cpmm"))
33+ then {
34+ let A = fraction(w, m, (m + v))
35+ fraction(A, (u - t), u)
36+ }
37+ else if ((p[0] == "flat"))
38+ then {
39+ let B = j(v, w)
40+ let C = j((v + m), (w - s[0]))
41+s[0]
42+ }
43+ else throw("Incorrect exchange type")
44+ let D = if ((p[1] == "cpmm"))
45+ then {
46+ let E = fraction(y, z, (z + x))
47+ fraction(E, (u - t), u)
48+ }
49+ else if ((p[1] == "flat"))
50+ then {
51+ let B = j(x, y)
52+ let C = j((x + z), (y - s[1]))
53+s[1]
54+ }
55+ else throw("Incorrect exchange type")
56+ if ((D >= n))
1657 then true
1758 else false
1859 }
1960
2061
21-@Callable(q)
22-func routingTrade (d,e,r,s,f,t,c) = {
23- let u = $Tuple2(q.payments[0].amount, q.payments[0].assetId)
24- let b = u._1
25- let v = u._2
26- let w = size(d)
27- func x (y,z) = {
28- let A = y
29- let B = A._1
30- let C = A._2
31- let D = A._3
32- if ((B == 0))
33- then {
34- let E = addressFromStringValue(z)
35- let F = if ((e[B] == "cpmm"))
36- then invoke(E, "exchange", [r[B]], [AttachedPayment(v, b)])
37- else if ((e[B] == "flat"))
38- then invoke(E, "exchange", [r[B], s[B]], [AttachedPayment(v, b)])
39- else throw("Incorrect exchange type")
40- if ((F == F))
62+@Callable(F)
63+func routingTrade (o,p,r,s,q,G,n) = {
64+ let H = $Tuple2(F.payments[0].amount, F.payments[0].assetId)
65+ let m = H._1
66+ let I = H._2
67+ if (!(l(m, n, o, p, q, r, s)))
68+ then throw("Check transaction possibilty: declined")
69+ else {
70+ let J = size(o)
71+ func K (L,M) = {
72+ let N = L
73+ let O = N._1
74+ let P = N._2
75+ let Q = N._3
76+ if ((O == 0))
4177 then {
42- let G = F
43- if ($isInstanceOf(G, "(Int, ByteVector)"))
78+ let R = addressFromStringValue(M)
79+ let S = if ((p[O] == "cpmm"))
80+ then invoke(R, "exchange", [r[O]], [AttachedPayment(I, m)])
81+ else if ((p[O] == "flat"))
82+ then invoke(R, "exchange", [r[O], s[O]], [AttachedPayment(I, m)])
83+ else throw("Incorrect exchange type")
84+ if ((S == S))
4485 then {
45- let F = G
46- let H = F
47- let I = H._1
48- let J = H._2
49- $Tuple3((B + 1), I, J)
86+ let T = S
87+ if ($isInstanceOf(T, "(Int, ByteVector)"))
88+ then {
89+ let S = T
90+ let U = S
91+ let V = U._1
92+ let W = U._2
93+ $Tuple3((O + 1), V, W)
94+ }
95+ else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
5096 }
51- else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
97+ else throw("Strict value is not equal to itself.")
5298 }
53- else throw("Strict value is not equal to itself.")
99+ else if (if ((O > 0))
100+ then (J > O)
101+ else false)
102+ then {
103+ let R = addressFromStringValue(M)
104+ let X = $Tuple2(Q, P)
105+ let Y = X._1
106+ let Z = X._2
107+ let S = if ((p[O] == "cpmm"))
108+ then invoke(R, "exchange", [r[O]], [AttachedPayment(Y, Z)])
109+ else if ((p[O] == "flat"))
110+ then invoke(R, "exchange", [r[O], s[O]], [AttachedPayment(Y, Z)])
111+ else throw("Incorrect exchange type")
112+ if ((S == S))
113+ then {
114+ let T = S
115+ if ($isInstanceOf(T, "(Int, ByteVector)"))
116+ then {
117+ let S = T
118+ let aa = S
119+ let V = aa._1
120+ let W = aa._2
121+ $Tuple3((O + 1), V, W)
122+ }
123+ else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
124+ }
125+ else throw("Strict value is not equal to itself.")
126+ }
127+ else L
54128 }
55- else if (if ((B > 0))
56- then (w > B)
57- else false)
58- then {
59- let E = addressFromStringValue(z)
60- let K = $Tuple2(D, C)
61- let L = K._1
62- let M = K._2
63- let F = if ((e[B] == "cpmm"))
64- then invoke(E, "exchange", [r[B]], [AttachedPayment(L, M)])
65- else if ((e[B] == "flat"))
66- then invoke(E, "exchange", [r[B], s[B]], [AttachedPayment(L, M)])
67- else throw("Incorrect exchange type")
68- if ((F == F))
69- then {
70- let G = F
71- if ($isInstanceOf(G, "(Int, ByteVector)"))
72- then {
73- let F = G
74- let N = F
75- let I = N._1
76- let J = N._2
77- $Tuple3((B + 1), I, J)
78- }
79- else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
80- }
81- else throw("Strict value is not equal to itself.")
82- }
83- else y
84- }
85129
86- let O = {
87- let P = d
88- let Q = size(P)
89- let R = $Tuple3(0, 0, base58'')
90- if ((Q == 0))
91- then R
92- else {
93- let S = x(R, P[0])
94- if ((Q == 1))
95- then S
130+ let ab = {
131+ let ac = o
132+ let ad = size(ac)
133+ let ae = $Tuple3(0, 0, base58'')
134+ if ((ad == 0))
135+ then ae
96136 else {
97- let T = x(S, P[1])
98- if ((Q == 2))
99- then T
137+ let af = K(ae, ac[0])
138+ if ((ad == 1))
139+ then af
100140 else {
101- let U = x(T, P[2])
102- if ((Q == 3))
103- then U
141+ let ag = K(af, ac[1])
142+ if ((ad == 2))
143+ then ag
104144 else {
105- let V = x(U, P[3])
106- throw("List size exceed 3")
145+ let ah = K(ag, ac[2])
146+ if ((ad == 3))
147+ then ah
148+ else {
149+ let ai = K(ah, ac[3])
150+ throw("List size exceed 3")
151+ }
107152 }
108153 }
109154 }
110155 }
111- }
112- let B = O._1
113- let C = O._2
114- let D = O._3
115- let W = assetBalance(this, t)
116- if (if ((B == w))
117- then (W >= c)
118- else false)
119- then [ScriptTransfer(q.caller, W, t)]
120- else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
156+ let O = ab._1
157+ let P = ab._2
158+ let Q = ab._3
159+ let aj = assetBalance(this, G)
160+ if (if ((O == J))
161+ then (aj >= n)
162+ else false)
163+ then [ScriptTransfer(F.caller, aj, G)]
164+ else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
165+ }
121166 }
122167
123168

github/deemru/w8io/026f985 
38.70 ms