tx · FY5V8rz5rLaMr94r5G68yKVrdwpwiE5sYjHMP9c1Jf6W

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.09.09 23:56 [1696020] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "FY5V8rz5rLaMr94r5G68yKVrdwpwiE5sYjHMP9c1Jf6W", "fee": 1000000, "feeAssetId": null, "timestamp": 1631220990606, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "WVRh5hdzV9joAsV132Zy2uVNN4kRi8BruYtvrckFcvcrpqrJC67xoyABWgGJLYesUTn8PnoRo3CDitkovTcjwpH" ], "script": "base64:AAIFAAAAAAAAA+EIAhIICgYYGBEYAgEaFQoCYTESD2NoZWNrUG9zc2liaWx0eRoPCgJhMhIJcG10QW1vdW50GhgKAmEzEhJtaW5BbW91bnRUb1JlY2VpdmUaEAoCYTQSCmV4Y2hhbmdlcnMaFAoCYTUSDmV4Y2hhbmdlcnNUeXBlGhcKAmE2EhFyb3V0aW5nQXNzZXRzS2V5cxoQCgJhNxIKY29tbWlzc2lvbhoeCgJhOBIYY29tbWlzc2lvblNjYWxlRGVsaW1pdGVyGhMKAmE5Eg1kQXBwMVRva2VuUGF5GhMKAmIxEg1kQXBwMVRva2VuR2V0GhMKAmIyEg1kQXBwMlRva2VuUGF5GhMKAmIzEg1kQXBwMlRva2VuR2V0GhMKAmI0Eg1nZXRGcm9tMVRyYWRlGhoKAmI1EhRnZXRGcm9tMVRyYWRlV2l0aEZlZRoTCgJiNhINZ2V0RnJvbTJUcmFkZRoaCgJiNxIUZ2V0RnJvbTJUcmFkZVdpdGhGZWUaBwoCYjgSAWkaCgoCYjkSBGFyZ3MaFAoCYzESDnJlY2VpdmVBc3NldElkGhEKAm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QABkQAAAAIFAAAAAmU1AAAAAAAAAAACAwkAAAAAAAACBQAAAAJlNgAAAAAAAAAAAwUAAAACZjEEAAAAAmYyCQEAAAACYzUAAAACBQAAAAJmMQkAAZEAAAACBQAAAAJlNQAAAAAAAAAAAwkAAAIAAAABAgAAABJMaXN0IHNpemUgZXhjZWVkIDMEAAAAAmM5CAUAAAACZTQAAAACXzEEAAAAAmQxCAUAAAACZTQAAAACXzIEAAAAAmQyCAUAAAACZTQAAAACXzMEAAAAAmYzCQAD8AAAAAIFAAAABHRoaXMFAAAAAmMxAwMJAAAAAAAAAgUAAAACYzkFAAAAAmM0CQAAZwAAAAIFAAAAAmYzBQAAAAJhMwcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAmI4AAAABmNhbGxlcgUAAAACZjMFAAAAAmMxBQAAAANuaWwJAAACAAAAAQIAAAA+cm91dGluZyAhPSByb3V0aW5nU2l6ZSBvciBhbW91bnRUb1JlY2lldmUgPCBtaW5BbW91bnRUb1JlY2VpdmUAAAAAO/ywIQ==", "height": 1696020, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8vLJDmwemBYi1bSduvX2PWf37yBFJShX9PyPb3tSvbar Next: CdZYon4JJbf1r9uhhso9PRSwSiUCNPGZ4aFQtib4u91i Diff:
OldNewDifferences
1212 let n = fraction(m, (h - g), h)
1313 let o = fraction(l, n, (n + k))
1414 let p = fraction(o, (h - g), h)
15- if (true)
16- then throw(toString(n))
17- else if ((p >= c))
18- then true
19- else false
15+ if ((p >= c))
16+ then true
17+ else false
2018 }
2119
2220
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)
15- if (true)
16- then throw(toString(n))
17- else if ((p >= c))
18- then true
19- else false
15+ if ((p >= c))
16+ then true
17+ else false
2018 }
2119
2220
2321 @Callable(q)
2422 func routingTrade (d,e,r,f,s,c) = {
2523 let t = $Tuple2(q.payments[0].amount, q.payments[0].assetId)
2624 let b = t._1
2725 let u = t._2
2826 if (!(a(b, c, d, e, f)))
2927 then throw("Check transaction possibilty: declined")
3028 else {
3129 let v = size(d)
3230 func w (x,y) = {
3331 let z = x
3432 let A = z._1
3533 let B = z._2
3634 let C = z._3
3735 if ((A == 0))
3836 then {
3937 let D = addressFromStringValue(y)
4038 let E = invoke(D, "exchange", [r[A]], [AttachedPayment(u, b)])
4139 if ((E == E))
4240 then {
4341 let F = E
4442 if ($isInstanceOf(F, "(Int, ByteVector)"))
4543 then {
4644 let E = F
4745 let G = E
4846 let H = G._1
4947 let I = G._2
5048 $Tuple3((A + 1), H, I)
5149 }
5250 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
5351 }
5452 else throw("Strict value is not equal to itself.")
5553 }
5654 else if (if ((A > 0))
5755 then (v > A)
5856 else false)
5957 then {
6058 let D = addressFromStringValue(y)
6159 let J = $Tuple2(C, B)
6260 let K = J._1
6361 let L = J._2
6462 let E = invoke(D, "exchange", [r[A]], [AttachedPayment(K, L)])
6563 if ((E == E))
6664 then {
6765 let F = E
6866 if ($isInstanceOf(F, "(Int, ByteVector)"))
6967 then {
7068 let E = F
7169 let M = E
7270 let H = M._1
7371 let I = M._2
7472 $Tuple3((A + 1), H, I)
7573 }
7674 else throw("Incorrect invoke result: expected amountWithFee and assetsIdSend")
7775 }
7876 else throw("Strict value is not equal to itself.")
7977 }
8078 else x
8179 }
8280
8381 let N = {
8482 let O = d
8583 let P = size(O)
8684 let Q = $Tuple3(0, 0, base58'')
8785 if ((P == 0))
8886 then Q
8987 else {
9088 let R = w(Q, O[0])
9189 if ((P == 1))
9290 then R
9391 else {
9492 let S = w(R, O[1])
9593 if ((P == 2))
9694 then S
9795 else {
9896 let T = w(S, O[2])
9997 if ((P == 3))
10098 then T
10199 else {
102100 let U = w(T, O[3])
103101 throw("List size exceed 3")
104102 }
105103 }
106104 }
107105 }
108106 }
109107 let A = N._1
110108 let B = N._2
111109 let C = N._3
112110 let V = assetBalance(this, s)
113111 if (if ((A == v))
114112 then (V >= c)
115113 else false)
116114 then [ScriptTransfer(q.caller, V, s)]
117115 else throw("routing != routingSize or amountToRecieve < minAmountToReceive")
118116 }
119117 }
120118
121119

github/deemru/w8io/026f985 
24.81 ms