tx · 5P6aTYNSWLn5uR8Kfe2bFgf3t8qgtJMmgaixhRfNCX7w

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.12 19:29 [1700076] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "5P6aTYNSWLn5uR8Kfe2bFgf3t8qgtJMmgaixhRfNCX7w", "fee": 1000000, "feeAssetId": null, "timestamp": 1631464233900, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "39tXbPkKdvD3LiZ9zgdEQ1ZTdUyaxqLkmQ9TvYQxoR7JDGBKrYdModTJKeGJzasbFBBoo6ZXy4mZNBFJ8aaAH6Qm" ], "script": "base64:AAIFAAAAAAAAAA0IAhIJCgcYGBERGAIBAAAACQAAAAAHZGlnaXRzOAAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAdzY2FsZTEyAAAAAOjUpRAAAAAAAAVhbHBoYQAAAAAAAAAAMgAAAAALYWxwaGFEaWdpdHMAAAAAAAAAAAIAAAAABGJldGEAAAAAAAK954ABAAAACHNrZXduZXNzAAAAAgAAAAF4AAAAAXkJAABpAAAAAgkAAGkAAAACCQAAZAAAAAIJAABrAAAAAwUAAAAHc2NhbGUxMgUAAAABeAUAAAABeQkAAGsAAAADBQAAAAdzY2FsZTEyBQAAAAF5BQAAAAF4AAAAAAAAAAACAAAAAAAAACcQAQAAAA1pbnZhcmlhbnRDYWxjAAAAAgAAAAF4AAAAAXkEAAAAAnNrCQEAAAAIc2tld25lc3MAAAACBQAAAAF4BQAAAAF5CQAAZAAAAAIJAABrAAAAAwkAAGQAAAACBQAAAAF4BQAAAAF5BQAAAAZzY2FsZTgJAABsAAAABgUAAAACc2sFAAAAB2RpZ2l0czgFAAAABWF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nRUb1JlY2lldmUJAAPwAAAAAgUAAAAEdGhpcwUAAAAOcmVjZWl2ZUFzc2V0SWQDAwkAAAAAAAACBQAAAA9leGNoYW5nZUNvdW50ZXIFAAAAC3JvdXRpbmdTaXplCQAAZwAAAAIFAAAAD2Ftb3VudFRvUmVjaWV2ZQUAAAASbWluQW1vdW50VG9SZWNlaXZlBwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAD2Ftb3VudFRvUmVjaWV2ZQUAAAAOcmVjZWl2ZUFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAD5yb3V0aW5nICE9IHJvdXRpbmdTaXplIG9yIGFtb3VudFRvUmVjaWV2ZSA8IG1pbkFtb3VudFRvUmVjZWl2ZQAAAADwc2eq", "height": 1700076, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EoLSyHsy6moCym4RV4mYKg7iTAZCuhgXRVzQYzRvsJBZ Next: 71YJEweK67rjxvvDYer71kh5dJn9obugja5EL5Y9MFZK Diff:
OldNewDifferences
5353 s[1]
5454 }
5555 else throw("Incorrect exchange type")
56- if ((D >= n))
57- then true
58- else false
56+ if (true)
57+ then throw(toString(D))
58+ else if ((D >= n))
59+ then true
60+ else false
5961 }
6062
6163
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 8
55
66 let b = 100000000
77
88 let c = 1000000000000
99
1010 let d = 50
1111
1212 let e = 2
1313
1414 let f = 46000000
1515
1616 func g (h,i) = (((fraction(c, h, i) + fraction(c, i, h)) / 2) / 10000)
1717
1818
1919 func j (h,i) = {
2020 let k = g(h, i)
2121 (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)))
2222 }
2323
2424
2525 func l (m,n,o,p,q,r,s) = {
2626 let t = 3000
2727 let u = 1000000
2828 let v = getIntegerValue(addressFromStringValue(o[0]), q[0])
2929 let w = getIntegerValue(addressFromStringValue(o[0]), q[1])
3030 let x = getIntegerValue(addressFromStringValue(o[1]), q[2])
3131 let y = getIntegerValue(addressFromStringValue(o[1]), q[3])
3232 let z = if ((p[0] == "cpmm"))
3333 then {
3434 let A = fraction(w, m, (m + v))
3535 fraction(A, (u - t), u)
3636 }
3737 else if ((p[0] == "flat"))
3838 then {
3939 let B = j(v, w)
4040 let C = j((v + m), (w - s[0]))
4141 s[0]
4242 }
4343 else throw("Incorrect exchange type")
4444 let D = if ((p[1] == "cpmm"))
4545 then {
4646 let E = fraction(y, z, (z + x))
4747 fraction(E, (u - t), u)
4848 }
4949 else if ((p[1] == "flat"))
5050 then {
5151 let B = j(x, y)
5252 let C = j((x + z), (y - s[1]))
5353 s[1]
5454 }
5555 else throw("Incorrect exchange type")
56- if ((D >= n))
57- then true
58- else false
56+ if (true)
57+ then throw(toString(D))
58+ else if ((D >= n))
59+ then true
60+ else false
5961 }
6062
6163
6264 @Callable(F)
6365 func routingTrade (o,p,r,s,q,G,n) = {
6466 let H = $Tuple2(F.payments[0].amount, F.payments[0].assetId)
6567 let m = H._1
6668 let I = H._2
6769 if (!(l(m, n, o, p, q, r, s)))
6870 then throw("Check transaction possibilty: declined")
6971 else {
7072 let J = size(o)
7173 func K (L,M) = {
7274 let N = L
7375 let O = N._1
7476 let P = N._2
7577 let Q = N._3
7678 if ((O == 0))
7779 then {
7880 let R = addressFromStringValue(M)
7981 let S = if ((p[O] == "cpmm"))
8082 then invoke(R, "exchange", [r[O]], [AttachedPayment(I, m)])
8183 else if ((p[O] == "flat"))
8284 then invoke(R, "exchange", [r[O], s[O]], [AttachedPayment(I, m)])
8385 else throw("Incorrect exchange type")
8486 if ((S == S))
8587 then {
8688 let T = S
8789 if ($isInstanceOf(T, "(Int, ByteVector)"))
8890 then {
8991 let S = T
9092 let U = S
9193 let V = U._1
9294 let W = U._2
9395 $Tuple3((O + 1), V, W)
9496 }
9597 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
9698 }
9799 else throw("Strict value is not equal to itself.")
98100 }
99101 else if (if ((O > 0))
100102 then (J > O)
101103 else false)
102104 then {
103105 let R = addressFromStringValue(M)
104106 let X = $Tuple2(Q, P)
105107 let Y = X._1
106108 let Z = X._2
107109 let S = if ((p[O] == "cpmm"))
108110 then invoke(R, "exchange", [r[O]], [AttachedPayment(Y, Z)])
109111 else if ((p[O] == "flat"))
110112 then invoke(R, "exchange", [r[O], s[O]], [AttachedPayment(Y, Z)])
111113 else throw("Incorrect exchange type")
112114 if ((S == S))
113115 then {
114116 let T = S
115117 if ($isInstanceOf(T, "(Int, ByteVector)"))
116118 then {
117119 let S = T
118120 let aa = S
119121 let V = aa._1
120122 let W = aa._2
121123 $Tuple3((O + 1), V, W)
122124 }
123125 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
124126 }
125127 else throw("Strict value is not equal to itself.")
126128 }
127129 else L
128130 }
129131
130132 let ab = {
131133 let ac = o
132134 let ad = size(ac)
133135 let ae = $Tuple3(0, 0, base58'')
134136 if ((ad == 0))
135137 then ae
136138 else {
137139 let af = K(ae, ac[0])
138140 if ((ad == 1))
139141 then af
140142 else {
141143 let ag = K(af, ac[1])
142144 if ((ad == 2))
143145 then ag
144146 else {
145147 let ah = K(ag, ac[2])
146148 if ((ad == 3))
147149 then ah
148150 else {
149151 let ai = K(ah, ac[3])
150152 throw("List size exceed 3")
151153 }
152154 }
153155 }
154156 }
155157 }
156158 let O = ab._1
157159 let P = ab._2
158160 let Q = ab._3
159161 let aj = assetBalance(this, G)
160162 if (if ((O == J))
161163 then (aj >= n)
162164 else false)
163165 then [ScriptTransfer(F.caller, aj, G)]
164166 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
165167 }
166168 }
167169
168170

github/deemru/w8io/026f985 
32.32 ms