tx · 7X3LFxdPQt1bxd5JsemCmswSPgD2rUyJy6aBmT426SSi

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.12 19:51 [1700100] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "7X3LFxdPQt1bxd5JsemCmswSPgD2rUyJy6aBmT426SSi", "fee": 1000000, "feeAssetId": null, "timestamp": 1631465493895, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "5eYXBePMsEo794Kfsmmn9T8TYHZGz64sT1KRe44PV4TdiMfwbtCu7eAzMLSo4juYuUfCcnx46sdWDacZmiZDbaVu" ], "script": "base64:AAIFAAAAAAAAAA0IAhIJCgcYGBERGAIBAAAACQAAAAAHZGlnaXRzOAAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAdzY2FsZTEyAAAAAOjUpRAAAAAAAAVhbHBoYQAAAAAAAAAAMgAAAAALYWxwaGFEaWdpdHMAAAAAAAAAAAIAAAAABGJldGEAAAAAAAK954ABAAAACHNrZXduZXNzAAAAAgAAAAF4AAAAAXkJAABpAAAAAgkAAGkAAAACCQAAZAAAAAIJAABrAAAAAwUAAAAHc2NhbGUxMgUAAAABeAUAAAABeQkAAGsAAAADBQAAAAdzY2FsZTEyBQAAAAF5BQAAAAF4AAAAAAAAAAACAAAAAAAAACcQAQAAAA1pbnZhcmlhbnRDYWxjAAAAAgAAAAF4AAAAAXkEAAAAAnNrCQEAAAAIc2tld25lc3MAAAACBQAAAAF4BQAAAAF5CQAAZAAAAAIJAABrAAAAAwkAAGQAAAACBQAAAAF4BQAAAAF5BQAAAAZzY2FsZTgJAABsAAAABgUAAAACc2sFAAAAB2RpZ2l0czgFAAAABWFscGhhBQAAAAthbHBoYURp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AAZEAAAACBQAAAA0kbGlzdDYyNjM2MzEyAAAAAAAAAAADCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgMwQAAAAPZXhjaGFuZ2VDb3VudGVyCAUAAAALJHQwNjIxMTYzMTIAAAACXzEEAAAADmFtb3VudHNXaXRoRmVlCAUAAAALJHQwNjIxMTYzMTIAAAACXzIEAAAADGFzc2V0c0lkU2VuZAgFAAAACyR0MDYyMTE2MzEyAAAAAl8zBAAAAA9hbW91bnRUb1JlY2lldmUJAAPwAAAAAgUAAAAEdGhpcwUAAAAOcmVjZWl2ZUFzc2V0SWQDAwkAAAAAAAACBQAAAA9leGNoYW5nZUNvdW50ZXIFAAAAC3JvdXRpbmdTaXplCQAAZwAAAAIFAAAAD2Ftb3VudFRvUmVjaWV2ZQUAAAASbWluQW1vdW50VG9SZWNlaXZlBwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAD2Ftb3VudFRvUmVjaWV2ZQUAAAAOcmVjZWl2ZUFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAD5yb3V0aW5nICE9IHJvdXRpbmdTaXplIG9yIGFtb3VudFRvUmVjaWV2ZSA8IG1pbkFtb3VudFRvUmVjZWl2ZQAAAABs8yVG", "height": 1700100, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BLpFyCWpUHFNyuwHprZGidX7x6yHV8xhUR8mVANTeTAF Next: 6Fs8rzUuoHKgpMcMxR6uxFxNXzdSQ8fr9Y28V6UgPTkc 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 = s[0]
4141 let D = j((v + m), (w - s[0]))
4242 if ((D >= B))
4343 then C
4444 else throw("Flat contract: invariantNew < invariant")
4545 }
4646 else throw("Incorrect exchange type")
4747 let E = if ((p[1] == "cpmm"))
4848 then {
4949 let F = fraction(y, z, (z + x))
5050 fraction(F, (u - t), u)
5151 }
5252 else if ((p[1] == "flat"))
5353 then {
5454 let B = j(x, y)
5555 let G = s[1]
5656 let D = j((x + z), (y - G))
5757 if ((D >= B))
5858 then G
5959 else throw("Flat contract: invariantNew < invariant")
6060 }
6161 else throw("Incorrect exchange type")
6262 if ((E >= n))
6363 then true
6464 else false
6565 }
6666
6767
6868 @Callable(H)
6969 func routingTrade (o,p,r,s,q,I,n) = {
7070 let J = $Tuple2(H.payments[0].amount, H.payments[0].assetId)
7171 let m = J._1
7272 let K = J._2
7373 if (!(l(m, n, o, p, q, r, s)))
7474 then throw("Check transaction possibilty: declined")
7575 else {
7676 let L = size(o)
7777 func M (N,O) = {
7878 let P = N
7979 let Q = P._1
8080 let R = P._2
8181 let S = P._3
8282 if ((Q == 0))
8383 then {
8484 let T = addressFromStringValue(O)
8585 let U = if ((p[Q] == "cpmm"))
8686 then invoke(T, "exchange", [r[Q]], [AttachedPayment(K, m)])
8787 else if ((p[Q] == "flat"))
8888 then invoke(T, "exchange", [r[Q], s[Q]], [AttachedPayment(K, m)])
8989 else throw("Incorrect exchange type")
9090 if ((U == U))
9191 then {
9292 let V = U
9393 if ($isInstanceOf(V, "(Int, ByteVector)"))
9494 then {
9595 let U = V
9696 let W = U
9797 let X = W._1
9898 let Y = W._2
9999 $Tuple3((Q + 1), X, Y)
100100 }
101101 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
102102 }
103103 else throw("Strict value is not equal to itself.")
104104 }
105105 else if (if ((Q > 0))
106106 then (L > Q)
107107 else false)
108108 then {
109109 let T = addressFromStringValue(O)
110110 let Z = $Tuple2(S, R)
111111 let aa = Z._1
112112 let ab = Z._2
113113 let U = if ((p[Q] == "cpmm"))
114114 then invoke(T, "exchange", [r[Q]], [AttachedPayment(aa, ab)])
115115 else if ((p[Q] == "flat"))
116116 then invoke(T, "exchange", [r[Q], s[Q]], [AttachedPayment(aa, ab)])
117117 else throw("Incorrect exchange type")
118118 if ((U == U))
119119 then {
120120 let V = U
121121 if ($isInstanceOf(V, "(Int, ByteVector)"))
122122 then {
123123 let U = V
124124 let ac = U
125125 let X = ac._1
126126 let Y = ac._2
127127 $Tuple3((Q + 1), X, Y)
128128 }
129129 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
130130 }
131131 else throw("Strict value is not equal to itself.")
132132 }
133133 else N
134134 }
135135
136136 let ad = {
137137 let ae = o
138138 let af = size(ae)
139139 let ag = $Tuple3(0, 0, base58'')
140140 if ((af == 0))
141141 then ag
142142 else {
143143 let ah = M(ag, ae[0])
144144 if ((af == 1))
145145 then ah
146146 else {
147147 let ai = M(ah, ae[1])
148148 if ((af == 2))
149149 then ai
150150 else {
151151 let aj = M(ai, ae[2])
152152 if ((af == 3))
153153 then aj
154154 else {
155155 let ak = M(aj, ae[3])
156156 throw("List size exceed 3")
157157 }
158158 }
159159 }
160160 }
161161 }
162162 let Q = ad._1
163163 let R = ad._2
164164 let S = ad._3
165165 let al = assetBalance(this, I)
166166 if (if ((Q == L))
167167 then (al >= n)
168168 else false)
169169 then [ScriptTransfer(H.caller, al, I)]
170170 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
171171 }
172172 }
173173
174174

github/deemru/w8io/026f985 
33.88 ms