tx · 245Zgqi48EM9x3hhYngypJJcLpkb8cYBDKYsnNGjVHmB

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.09 23:39 [1696003] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "245Zgqi48EM9x3hhYngypJJcLpkb8cYBDKYsnNGjVHmB", "fee": 1000000, "feeAssetId": null, "timestamp": 1631220032965, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "4fT8JagLtS5GQRJcDocARjJnF9p6uMZxmTRuLpcS45txPXByYXuLGbFQjS6wr62yY55zbFqi4SQZXXbTimPjAKWm" ], "script": "base64:AAIFAAAAAAAAA+EIAhIICgYYGBEYAgEaFQoCYTESD2NoZWNrUG9zc2liaWx0eRoPCgJhMhIJcG10QW1vdW50GhgKAmEzEhJtaW5BbW91bnRUb1JlY2VpdmUaEAoCYTQSCmV4Y2hhbmdlcnMaFAoCYTUSDmV4Y2hhbmdlcnNUeXBlGhcKAmE2EhFyb3V0aW5nQXNzZXRzS2V5cxoQCgJhNxIKY29tbWlzc2lvbhoeCgJhOBIYY29tbWlzc2lvblNjYWxlRGVsaW1pdGVyGhMKAmE5Eg1kQXBwMVRva2VuUGF5GhMKAmIxEg1kQXBwMVRva2VuR2V0GhMKAmIyEg1kQXBwMlRva2VuUGF5GhMKAmIzEg1kQXBwMlRva2VuR2V0GhMKAmI0Eg1nZXRGcm9tMVRyYWRlGhoKAmI1EhRnZXRGcm9tMVRyYWRlV2l0aEZlZRoTCgJiNhINZ2V0RnJvbTJUcmFkZRoaCgJiNxIUZ2V0RnJvbTJUcmFkZVdpdGhGZWUaBwoCYjgSAWkaCgoCYjkSBGFyZ3MaFAoCYzESDnJlY2VpdmVBc3NldElkGhEKAmMyEg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2AAAAAAAAAAABBQAAAAJlOAQAAAACZTkJAQAAAAJjNQAAAAIFAAAAAmU4CQABkQAAAAIFAAAAAmU1AAAAAAAAAAABAwkAAAAAAAACBQAAAAJlNgAAAAAAAAAAAgUAAAACZTkEAAAAAmYxCQEAAAACYzUAAAACBQAAAAJlOQkAAZEAAAACBQAAAAJlNQAAAAAAAAAAAgMJAAAAAAAAAgUAAAACZTYAAAAAAAAAAAMFAAAAAmYxBAAAAAJmMgkBAAAAAmM1AAAAAgUAAAACZjEJAAGRAAAAAgUAAAACZTUAAAAAAAAAAAMJAAACAAAAAQIAAAASTGlzdCBzaXplIGV4Y2VlZCAzBAAAAAJjOQgFAAAAAmU0AAAAAl8xBAAAAAJkMQgFAAAAAmU0AAAAAl8yBAAAAAJkMggFAAAAAmU0AAAAAl8zBAAAAAJmMwkAA/AAAAACBQAAAAR0aGlzBQAAAAJjMQMDCQAAAAAAAAIFAAAAAmM5BQAAAAJjNAkAAGcAAAACBQAAAAJmMwUAAAACYTMHCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJiOAAAAAZjYWxsZXIFAAAAAmYzBQAAAAJjMQUAAAADbmlsCQAAAgAAAAECAAAAPnJvdXRpbmcgIT0gcm91dGluZ1NpemUgb3IgYW1vdW50VG9SZWNpZXZlIDwgbWluQW1vdW50VG9SZWNlaXZlAAAAANZhrTU=", "height": 1696003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AFgjdJ8KPYJ1GxHUBzDr46QjQDmadxvV29n1ncVtt4eq Next: 9nRz3prEFDzBQh5ucKzU9hKDdxb8cFGJsRjtacjsum3 Diff:
OldNewDifferences
1313 let o = fraction(l, n, (n + k))
1414 let p = fraction(o, (h - g), h)
1515 if (true)
16- then throw(toString(p))
16+ then throw(((((((toString(i) + " ") + toString(j)) + " ") + toString(k)) + " ") + toString(l)))
1717 else if ((p >= c))
1818 then true
1919 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d,e,f) = {
55 let g = 3000
66 let h = 1000000
77 let i = getIntegerValue(addressFromStringValue(d[0]), f[0])
88 let j = getIntegerValue(addressFromStringValue(d[0]), f[1])
99 let k = getIntegerValue(addressFromStringValue(d[1]), f[2])
1010 let l = getIntegerValue(addressFromStringValue(d[1]), f[3])
1111 let m = fraction(j, b, (b + i))
1212 let n = fraction(m, (h - g), h)
1313 let o = fraction(l, n, (n + k))
1414 let p = fraction(o, (h - g), h)
1515 if (true)
16- then throw(toString(p))
16+ then throw(((((((toString(i) + " ") + toString(j)) + " ") + toString(k)) + " ") + toString(l)))
1717 else if ((p >= c))
1818 then true
1919 else false
2020 }
2121
2222
2323 @Callable(q)
2424 func routingTrade (d,e,r,f,s,c) = {
2525 let t = $Tuple2(q.payments[0].amount, q.payments[0].assetId)
2626 let b = t._1
2727 let u = t._2
2828 if (!(a(b, c, d, e, f)))
2929 then throw("Check transaction possibilty: declined")
3030 else {
3131 let v = size(d)
3232 func w (x,y) = {
3333 let z = x
3434 let A = z._1
3535 let B = z._2
3636 let C = z._3
3737 if ((A == 0))
3838 then {
3939 let D = addressFromStringValue(y)
4040 let E = invoke(D, "exchange", [r[A]], [AttachedPayment(u, b)])
4141 if ((E == E))
4242 then {
4343 let F = E
4444 if ($isInstanceOf(F, "(Int, ByteVector)"))
4545 then {
4646 let E = F
4747 let G = E
4848 let H = G._1
4949 let I = G._2
5050 $Tuple3((A + 1), H, I)
5151 }
5252 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
5353 }
5454 else throw("Strict value is not equal to itself.")
5555 }
5656 else if (if ((A > 0))
5757 then (v > A)
5858 else false)
5959 then {
6060 let D = addressFromStringValue(y)
6161 let J = $Tuple2(C, B)
6262 let K = J._1
6363 let L = J._2
6464 let E = invoke(D, "exchange", [r[A]], [AttachedPayment(K, L)])
6565 if ((E == E))
6666 then {
6767 let F = E
6868 if ($isInstanceOf(F, "(Int, ByteVector)"))
6969 then {
7070 let E = F
7171 let M = E
7272 let H = M._1
7373 let I = M._2
7474 $Tuple3((A + 1), H, I)
7575 }
7676 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
7777 }
7878 else throw("Strict value is not equal to itself.")
7979 }
8080 else x
8181 }
8282
8383 let N = {
8484 let O = d
8585 let P = size(O)
8686 let Q = $Tuple3(0, 0, base58'')
8787 if ((P == 0))
8888 then Q
8989 else {
9090 let R = w(Q, O[0])
9191 if ((P == 1))
9292 then R
9393 else {
9494 let S = w(R, O[1])
9595 if ((P == 2))
9696 then S
9797 else {
9898 let T = w(S, O[2])
9999 if ((P == 3))
100100 then T
101101 else {
102102 let U = w(T, O[3])
103103 throw("List size exceed 3")
104104 }
105105 }
106106 }
107107 }
108108 }
109109 let A = N._1
110110 let B = N._2
111111 let C = N._3
112112 let V = assetBalance(this, s)
113113 if (if ((A == v))
114114 then (V >= c)
115115 else false)
116116 then [ScriptTransfer(q.caller, V, s)]
117117 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
118118 }
119119 }
120120
121121

github/deemru/w8io/026f985 
31.85 ms