tx · 72A2VWvGek1uW2ATgWm1dgpJbp7fQ2MToAFVmgJBYft5

3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d:  -0.01000000 Waves

2023.10.20 15:58 [2806937] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves

{ "type": 13, "id": "72A2VWvGek1uW2ATgWm1dgpJbp7fQ2MToAFVmgJBYft5", "fee": 1000000, "feeAssetId": null, "timestamp": 1697806734739, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "crbh4RfftQayZDSkX8QmPDaGafpkDzJo5vn37gDDGqVixg5UqGJtxgMdCPtfZ5XTfqcLdAaCYHfQEmJDqtw2wEJ" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBBQARbHBfYWRkcmVzc19wdWJrZXkBIHy+XBhI/rhv/LQUflYon8e8q0PT8nBDeExH6jeAesBrACBtYXNzdHJhbnNmZXJfd2hpdGVsaXN0ZWRfYWRkcmVzcwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQALbmV0d29ya19mZWUAoMIeARF2YWxpZGF0ZUFyZ3VtZW50cwQKcmVjaXBpZW50cwdhbW91bnRzCnBheW1lbnRJZHgIcGF5bWVudHMEDnJlY2lwaWVudHNTaXplCQCQAwEFCnJlY2lwaWVudHMEC2Ftb3VudHNTaXplCQCQAwEFB2Ftb3VudHMEDnBheW1lbnRJZHhTaXplCQCQAwEFCnBheW1lbnRJZHgEDHBheW1lbnRzU2l6ZQkAkAMBBQhwYXltZW50cwQJbWluQW1vdW50CQCXAwEFB2Ftb3VudHMEDW1pblBheW1lbnRJZHgJAJcDAQUKcGF5bWVudElkeAQNbWF4UGF5bWVudElkeAkAlgMBBQpwYXltZW50SWR4CgERcGF5bWVudHNWYWxpZGF0b3ICDHBheW1lbnRBY2N1bQtuZXh0UGF5bWV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hZGRyZXNzAiIgaXMgQXV0aG9yaXplZCBBZGRyZXNzIHRvIFNpZ24gaXQuAwkAZgIFFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFGXJlYWRfdG90YWxfcG9vbF9saXF1aWRpdHkJAAIBAkNQbGFjZWQgTWFzcyBUcmFuc2ZlciBBbW91bnQgU2l6ZSBpcyBtb3JlIHRoYW4gVG90YWwgUG9vbCBMaXF1aWRpdHkuCQDMCAIJAQxJbnRlZ2VyRW50cnkCAhRUb3RhbF9Qb29sX0xpcXVpZGl0eQUUdXBkYXRlZF9wb29sX2JhbGFuY2UJAMwIAgkBDEludGVnZXJFbnRyeQICFU1hc3NfVHJhbnNmZXJfQ291bnRlcgUYVG90YWxNYXNzVHJhbnNmZXJDb3VudGVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCAhhUb3RhbF9NYXNzX1RyYW5zZmVyX1NlbmQFFVRvdGFsTWFzc1RyYW5zZmVyU2VuZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCkAwEFGFRvdGFsTWFzc1RyYW5zZmVyQ291bnRlcgITX01hc3NfVHJhbnNmZXJfU2VuZAUWUGFpZE1hc3NUcmFuc2ZlckFtb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQCnCAEFEWxwX2FkZHJlc3NfcHVia2V5BRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAKcIAQURbHBfYWRkcmVzc19wdWJrZXkFC25ldHdvcmtfZmVlBQR1bml0BQNuaWwANOhIpg==", "height": 2806937, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6qLT2jRtCE3ZfRPTWxwyecyepfn12pRqErtFMwmwA9Jh Next: 8o4NQ8MWDyveFRZsNmLRUxw9bNW1Rern8itkrqhPSxUZ Diff:
OldNewDifferences
8989
9090 func K (L,e) = {
9191 let M = split(L, "_")[0]
92-[StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
92+ let N = [StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
93+ N
9394 }
9495
9596
96-@Callable(N)
97+@Callable(O)
9798 func massTransfer (e,f,g,L) = {
98- let O = value(N.payments[0])
99- if ((N.caller != b))
99+ let P = value(O.payments[0])
100+ if ((O.caller != b))
100101 then throw((("Not an Admin only " + toString(b)) + " can sign it."))
101- else if (isDefined(O.assetId))
102+ else if (isDefined(P.assetId))
102103 then throw("Only Waves is allowed to Attach as payment.")
103- else if (!(d(e, f, g, N.payments)))
104+ else if (!(d(e, f, g, O.payments)))
104105 then throw("Invalid arguments")
105106 else {
106107 let i = size(e)
107- func P (Q,R) = {
108- let S = Q
109- let T = S._1
110- let u = S._2
108+ func Q (R,S) = {
109+ let T = R
110+ let U = T._1
111+ let u = T._2
111112 if ((u >= i))
112- then $Tuple2(T, (u + 1))
113- else $Tuple2((T :+ ScriptTransfer(addressFromStringValue(e[u]), R, N.payments[g[u]].assetId)), (u + 1))
113+ then $Tuple2(U, (u + 1))
114+ else $Tuple2((U :+ ScriptTransfer(addressFromStringValue(e[u]), S, O.payments[g[u]].assetId)), (u + 1))
114115 }
115116
116- let U = {
117+ let V = {
117118 let C = f
118119 let D = size(C)
119120 let E = $Tuple2(nil, 0)
120121 func F (G,H) = if ((H >= D))
121122 then G
122- else P(G, C[H])
123+ else Q(G, C[H])
123124
124125 func I (G,H) = if ((H >= D))
125126 then G
127128
128129 I(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(E, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
129130 }
130- let V = K(L, e)
131- $Tuple2(U._1, unit)
131+ let W = K(L, e)
132+ $Tuple2(V._1, unit)
132133 }
133134 }
134135
135136
136137
137-@Callable(N)
138-func UpdateLPBalance (W) = {
139- let X = wavesBalance(this).regular
140- let Y = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
141- let Z = ((X - Y) - c)
142- let aa = ((Y - W) + Z)
143- let ab = {
144- let ac = getInteger(this, "Mass_Transfer_Counter")
145- if ($isInstanceOf(ac, "Int"))
138+@Callable(O)
139+func UpdateLPBalance (X) = {
140+ let Y = wavesBalance(this).regular
141+ let Z = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
142+ let aa = ((Y - Z) - c)
143+ let ab = ((Z - X) + aa)
144+ let ac = {
145+ let ad = getInteger(this, "Mass_Transfer_Counter")
146+ if ($isInstanceOf(ad, "Int"))
146147 then {
147- let ad = ac
148- ad
148+ let ae = ad
149+ ae
149150 }
150151 else 0
151152 }
152- let ae = (ab + 1)
153- let af = {
154- let ac = getInteger(this, "Total_Mass_Transfer_Send")
155- if ($isInstanceOf(ac, "Int"))
153+ let af = (ac + 1)
154+ let ag = {
155+ let ad = getInteger(this, "Total_Mass_Transfer_Send")
156+ if ($isInstanceOf(ad, "Int"))
156157 then {
157- let ad = ac
158- ad
158+ let ae = ad
159+ ae
159160 }
160161 else 0
161162 }
162- let ag = (af + W)
163- if ((N.caller != b))
163+ let ah = (ag + X)
164+ if ((O.caller != b))
164165 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
165- else if ((W > Y))
166+ else if ((X > Z))
166167 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
167- else [IntegerEntry("Total_Pool_Liquidity", aa), IntegerEntry("Mass_Transfer_Counter", ae), IntegerEntry("Total_Mass_Transfer_Send", ag), IntegerEntry((toString(ae) + "_Mass_Transfer_Send"), W), ScriptTransfer(addressFromPublicKey(a), W, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
168+ else [IntegerEntry("Total_Pool_Liquidity", ab), IntegerEntry("Mass_Transfer_Counter", af), IntegerEntry("Total_Mass_Transfer_Send", ah), IntegerEntry((toString(af) + "_Mass_Transfer_Send"), X), ScriptTransfer(addressFromPublicKey(a), X, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
168169 }
169170
170171
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'9Pwum3va2xrkVwsGRNiTeGxBBBNFEDaS9sfkZiSpSvdQ'
55
66 let b = addressFromPublicKey(a)
77
88 let c = 500000
99
1010 func d (e,f,g,h) = {
1111 let i = size(e)
1212 let j = size(f)
1313 let k = size(g)
1414 let l = size(h)
1515 let m = min(f)
1616 let n = min(g)
1717 let o = max(g)
1818 func p (q,r) = {
1919 let s = q
2020 let t = s._1
2121 let u = s._2
2222 if ((u >= l))
2323 then $Tuple2(t, (u + 1))
2424 else {
2525 func v (w,x) = {
2626 let y = w
2727 let z = y._1
2828 let A = y._2
2929 if (if ((A >= i))
3030 then true
3131 else (g[A] != u))
3232 then $Tuple2(z, (A + 1))
3333 else $Tuple2((z + x), (A + 1))
3434 }
3535
3636 let B = {
3737 let C = f
3838 let D = size(C)
3939 let E = $Tuple2(0, 0)
4040 func F (G,H) = if ((H >= D))
4141 then G
4242 else v(G, C[H])
4343
4444 func I (G,H) = if ((H >= D))
4545 then G
4646 else throw("List size exceeds 100")
4747
4848 I(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(E, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
4949 }
5050 if ((B._1 == r.amount))
5151 then $Tuple2((t + 1), (u + 1))
5252 else $Tuple2(t, (u + 1))
5353 }
5454 }
5555
5656 let J = {
5757 let C = h
5858 let D = size(C)
5959 let E = $Tuple2(0, 0)
6060 func F (G,H) = if ((H >= D))
6161 then G
6262 else p(G, C[H])
6363
6464 func I (G,H) = if ((H >= D))
6565 then G
6666 else throw("List size exceeds 10")
6767
6868 I(F(F(F(F(F(F(F(F(F(F(E, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
6969 }
7070 if (if (if (if (if (if (if (if ((i == j))
7171 then (i == k)
7272 else false)
7373 then (i > 0)
7474 else false)
7575 then (100 >= i)
7676 else false)
7777 then (l > 0)
7878 else false)
7979 then (m > 0)
8080 else false)
8181 then (n == 0)
8282 else false)
8383 then (o == (l - 1))
8484 else false)
8585 then (J._1 == l)
8686 else false
8787 }
8888
8989
9090 func K (L,e) = {
9191 let M = split(L, "_")[0]
92-[StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
92+ let N = [StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
93+ N
9394 }
9495
9596
96-@Callable(N)
97+@Callable(O)
9798 func massTransfer (e,f,g,L) = {
98- let O = value(N.payments[0])
99- if ((N.caller != b))
99+ let P = value(O.payments[0])
100+ if ((O.caller != b))
100101 then throw((("Not an Admin only " + toString(b)) + " can sign it."))
101- else if (isDefined(O.assetId))
102+ else if (isDefined(P.assetId))
102103 then throw("Only Waves is allowed to Attach as payment.")
103- else if (!(d(e, f, g, N.payments)))
104+ else if (!(d(e, f, g, O.payments)))
104105 then throw("Invalid arguments")
105106 else {
106107 let i = size(e)
107- func P (Q,R) = {
108- let S = Q
109- let T = S._1
110- let u = S._2
108+ func Q (R,S) = {
109+ let T = R
110+ let U = T._1
111+ let u = T._2
111112 if ((u >= i))
112- then $Tuple2(T, (u + 1))
113- else $Tuple2((T :+ ScriptTransfer(addressFromStringValue(e[u]), R, N.payments[g[u]].assetId)), (u + 1))
113+ then $Tuple2(U, (u + 1))
114+ else $Tuple2((U :+ ScriptTransfer(addressFromStringValue(e[u]), S, O.payments[g[u]].assetId)), (u + 1))
114115 }
115116
116- let U = {
117+ let V = {
117118 let C = f
118119 let D = size(C)
119120 let E = $Tuple2(nil, 0)
120121 func F (G,H) = if ((H >= D))
121122 then G
122- else P(G, C[H])
123+ else Q(G, C[H])
123124
124125 func I (G,H) = if ((H >= D))
125126 then G
126127 else throw("List size exceeds 100")
127128
128129 I(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(E, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
129130 }
130- let V = K(L, e)
131- $Tuple2(U._1, unit)
131+ let W = K(L, e)
132+ $Tuple2(V._1, unit)
132133 }
133134 }
134135
135136
136137
137-@Callable(N)
138-func UpdateLPBalance (W) = {
139- let X = wavesBalance(this).regular
140- let Y = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
141- let Z = ((X - Y) - c)
142- let aa = ((Y - W) + Z)
143- let ab = {
144- let ac = getInteger(this, "Mass_Transfer_Counter")
145- if ($isInstanceOf(ac, "Int"))
138+@Callable(O)
139+func UpdateLPBalance (X) = {
140+ let Y = wavesBalance(this).regular
141+ let Z = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
142+ let aa = ((Y - Z) - c)
143+ let ab = ((Z - X) + aa)
144+ let ac = {
145+ let ad = getInteger(this, "Mass_Transfer_Counter")
146+ if ($isInstanceOf(ad, "Int"))
146147 then {
147- let ad = ac
148- ad
148+ let ae = ad
149+ ae
149150 }
150151 else 0
151152 }
152- let ae = (ab + 1)
153- let af = {
154- let ac = getInteger(this, "Total_Mass_Transfer_Send")
155- if ($isInstanceOf(ac, "Int"))
153+ let af = (ac + 1)
154+ let ag = {
155+ let ad = getInteger(this, "Total_Mass_Transfer_Send")
156+ if ($isInstanceOf(ad, "Int"))
156157 then {
157- let ad = ac
158- ad
158+ let ae = ad
159+ ae
159160 }
160161 else 0
161162 }
162- let ag = (af + W)
163- if ((N.caller != b))
163+ let ah = (ag + X)
164+ if ((O.caller != b))
164165 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
165- else if ((W > Y))
166+ else if ((X > Z))
166167 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
167- else [IntegerEntry("Total_Pool_Liquidity", aa), IntegerEntry("Mass_Transfer_Counter", ae), IntegerEntry("Total_Mass_Transfer_Send", ag), IntegerEntry((toString(ae) + "_Mass_Transfer_Send"), W), ScriptTransfer(addressFromPublicKey(a), W, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
168+ else [IntegerEntry("Total_Pool_Liquidity", ab), IntegerEntry("Mass_Transfer_Counter", af), IntegerEntry("Total_Mass_Transfer_Send", ah), IntegerEntry((toString(af) + "_Mass_Transfer_Send"), X), ScriptTransfer(addressFromPublicKey(a), X, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
168169 }
169170
170171

github/deemru/w8io/169f3d6 
49.69 ms