tx · 8o4NQ8MWDyveFRZsNmLRUxw9bNW1Rern8itkrqhPSxUZ

3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d:  -0.01000000 Waves

2023.10.20 16:28 [2806968] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves

{ "type": 13, "id": "8o4NQ8MWDyveFRZsNmLRUxw9bNW1Rern8itkrqhPSxUZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1697808516120, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "6z6eJv95aEyijHSKUb7K3mSmUThBA6HgcdKTLZh6WuyWrMZovPhfp6Vb3U12NxFRofBfgZNk2pGqHfuGWBMz6mn" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBBAARbHBfYWRkcmVzc19wdWJrZXkBIHy+XBhI/rhv/LQUflYon8e8q0PT8nBDeExH6jeAesBrACBtYXNzdHJhbnNmZXJfd2hpdGVsaXN0ZWRfYWRkcmVzcwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQALbmV0d29ya19mZWUAoMIeARF2YWxpZGF0ZUFyZ3VtZW50cwQKcmVjaXBpZW50cwdhbW91bnRzCnBheW1lbnRJZHgIcGF5bWVudHMEDnJlY2lwaWVudHNTaXplCQCQAwEFCnJlY2lwaWVudHMEC2Ftb3VudHNTaXplCQCQAwEFB2Ftb3VudHMEDnBheW1lbnRJZHhTaXplCQCQAwEFCnBheW1lbnRJZHgEDHBheW1lbnRzU2l6ZQkAkAMBBQhwYXltZW50cwQJbWluQW1vdW50CQCXAwEFB2Ftb3VudHMEDW1pblBheW1lbnRJZHgJAJcDAQUKcGF5bWVudElkeAQNbWF4UGF5bWVudElkeAkAlgMBBQpwYXltZW50SWR4CgERcGF5bWVudHNWYWxpZGF0b3ICDHBheW1lbnRBY2N1bQtuZXh0UGF5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biBpdC4DCQBmAgUWUGFpZE1hc3NUcmFuc2ZlckFtb3VudAUZcmVhZF90b3RhbF9wb29sX2xpcXVpZGl0eQkAAgECQ1BsYWNlZCBNYXNzIFRyYW5zZmVyIEFtb3VudCBTaXplIGlzIG1vcmUgdGhhbiBUb3RhbCBQb29sIExpcXVpZGl0eS4JAMwIAgkBDEludGVnZXJFbnRyeQICFFRvdGFsX1Bvb2xfTGlxdWlkaXR5BRR1cGRhdGVkX3Bvb2xfYmFsYW5jZQkAzAgCCQEMSW50ZWdlckVudHJ5AgIVTWFzc19UcmFuc2Zlcl9Db3VudGVyBRhUb3RhbE1hc3NUcmFuc2ZlckNvdW50ZXIJAMwIAgkBDEludGVnZXJFbnRyeQICGFRvdGFsX01hc3NfVHJhbnNmZXJfU2VuZAUVVG90YWxNYXNzVHJhbnNmZXJTZW5kCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKQDAQUYVG90YWxNYXNzVHJhbnNmZXJDb3VudGVyAhNfTWFzc19UcmFuc2Zlcl9TZW5kBRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAKcIAQURbHBfYWRkcmVzc19wdWJrZXkFFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFBHVuaXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQULbmV0d29ya19mZWUFBHVuaXQFA25pbADd1EUr", "height": 2806968, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 72A2VWvGek1uW2ATgWm1dgpJbp7fQ2MToAFVmgJBYft5 Next: 9hPVYppJRBftVpoCq9u1SqBQ6dTy1spivqNd1ruYuL4X Diff:
OldNewDifferences
8787 }
8888
8989
90-func K (L,e) = {
91- let M = split(L, "_")[0]
92- let N = [StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
93- N
94- }
95-
96-
97-@Callable(O)
90+@Callable(K)
9891 func massTransfer (e,f,g,L) = {
99- let P = value(O.payments[0])
100- if ((O.caller != b))
92+ let M = value(K.payments[0])
93+ if ((K.caller != b))
10194 then throw((("Not an Admin only " + toString(b)) + " can sign it."))
102- else if (isDefined(P.assetId))
95+ else if (isDefined(M.assetId))
10396 then throw("Only Waves is allowed to Attach as payment.")
104- else if (!(d(e, f, g, O.payments)))
97+ else if (!(d(e, f, g, K.payments)))
10598 then throw("Invalid arguments")
10699 else {
107100 let i = size(e)
108- func Q (R,S) = {
109- let T = R
110- let U = T._1
111- let u = T._2
101+ func N (O,P) = {
102+ let Q = O
103+ let R = Q._1
104+ let u = Q._2
112105 if ((u >= i))
113- then $Tuple2(U, (u + 1))
114- else $Tuple2((U :+ ScriptTransfer(addressFromStringValue(e[u]), S, O.payments[g[u]].assetId)), (u + 1))
106+ then $Tuple2(R, (u + 1))
107+ else $Tuple2((R :+ ScriptTransfer(addressFromStringValue(e[u]), P, K.payments[g[u]].assetId)), (u + 1))
115108 }
116109
117- let V = {
110+ let S = split(L, "_")[0]
111+ let T = {
118112 let C = f
119113 let D = size(C)
120114 let E = $Tuple2(nil, 0)
121115 func F (G,H) = if ((H >= D))
122116 then G
123- else Q(G, C[H])
117+ else N(G, C[H])
124118
125119 func I (G,H) = if ((H >= D))
126120 then G
128122
129123 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)
130124 }
131- let W = K(L, e)
132- $Tuple2(V._1, unit)
125+ $Tuple2((T._1 ++ [StringEntry((S + "Winners_Status"), "Paid"), IntegerEntry((S + "_Total_Winners"), i)]), unit)
133126 }
134127 }
135128
136129
137130
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"))
131+@Callable(K)
132+func UpdateLPBalance (U) = {
133+ let V = wavesBalance(this).regular
134+ let W = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
135+ let X = ((V - W) - c)
136+ let Y = ((W - U) + X)
137+ let Z = {
138+ let aa = getInteger(this, "Mass_Transfer_Counter")
139+ if ($isInstanceOf(aa, "Int"))
147140 then {
148- let ae = ad
149- ae
141+ let ab = aa
142+ ab
150143 }
151144 else 0
152145 }
153- let af = (ac + 1)
154- let ag = {
155- let ad = getInteger(this, "Total_Mass_Transfer_Send")
156- if ($isInstanceOf(ad, "Int"))
146+ let ac = (Z + 1)
147+ let ad = {
148+ let aa = getInteger(this, "Total_Mass_Transfer_Send")
149+ if ($isInstanceOf(aa, "Int"))
157150 then {
158- let ae = ad
159- ae
151+ let ab = aa
152+ ab
160153 }
161154 else 0
162155 }
163- let ah = (ag + X)
164- if ((O.caller != b))
156+ let ae = (ad + U)
157+ if ((K.caller != b))
165158 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
166- else if ((X > Z))
159+ else if ((U > W))
167160 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
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)]
161+ else [IntegerEntry("Total_Pool_Liquidity", Y), IntegerEntry("Mass_Transfer_Counter", ac), IntegerEntry("Total_Mass_Transfer_Send", ae), IntegerEntry((toString(ac) + "_Mass_Transfer_Send"), U), ScriptTransfer(addressFromPublicKey(a), U, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
169162 }
170163
171164
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
90-func K (L,e) = {
91- let M = split(L, "_")[0]
92- let N = [StringEntry((M + "_Winners_Status"), "Paid"), IntegerEntry((M + "_Total_Winners"), size(e))]
93- N
94- }
95-
96-
97-@Callable(O)
90+@Callable(K)
9891 func massTransfer (e,f,g,L) = {
99- let P = value(O.payments[0])
100- if ((O.caller != b))
92+ let M = value(K.payments[0])
93+ if ((K.caller != b))
10194 then throw((("Not an Admin only " + toString(b)) + " can sign it."))
102- else if (isDefined(P.assetId))
95+ else if (isDefined(M.assetId))
10396 then throw("Only Waves is allowed to Attach as payment.")
104- else if (!(d(e, f, g, O.payments)))
97+ else if (!(d(e, f, g, K.payments)))
10598 then throw("Invalid arguments")
10699 else {
107100 let i = size(e)
108- func Q (R,S) = {
109- let T = R
110- let U = T._1
111- let u = T._2
101+ func N (O,P) = {
102+ let Q = O
103+ let R = Q._1
104+ let u = Q._2
112105 if ((u >= i))
113- then $Tuple2(U, (u + 1))
114- else $Tuple2((U :+ ScriptTransfer(addressFromStringValue(e[u]), S, O.payments[g[u]].assetId)), (u + 1))
106+ then $Tuple2(R, (u + 1))
107+ else $Tuple2((R :+ ScriptTransfer(addressFromStringValue(e[u]), P, K.payments[g[u]].assetId)), (u + 1))
115108 }
116109
117- let V = {
110+ let S = split(L, "_")[0]
111+ let T = {
118112 let C = f
119113 let D = size(C)
120114 let E = $Tuple2(nil, 0)
121115 func F (G,H) = if ((H >= D))
122116 then G
123- else Q(G, C[H])
117+ else N(G, C[H])
124118
125119 func I (G,H) = if ((H >= D))
126120 then G
127121 else throw("List size exceeds 100")
128122
129123 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)
130124 }
131- let W = K(L, e)
132- $Tuple2(V._1, unit)
125+ $Tuple2((T._1 ++ [StringEntry((S + "Winners_Status"), "Paid"), IntegerEntry((S + "_Total_Winners"), i)]), unit)
133126 }
134127 }
135128
136129
137130
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"))
131+@Callable(K)
132+func UpdateLPBalance (U) = {
133+ let V = wavesBalance(this).regular
134+ let W = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
135+ let X = ((V - W) - c)
136+ let Y = ((W - U) + X)
137+ let Z = {
138+ let aa = getInteger(this, "Mass_Transfer_Counter")
139+ if ($isInstanceOf(aa, "Int"))
147140 then {
148- let ae = ad
149- ae
141+ let ab = aa
142+ ab
150143 }
151144 else 0
152145 }
153- let af = (ac + 1)
154- let ag = {
155- let ad = getInteger(this, "Total_Mass_Transfer_Send")
156- if ($isInstanceOf(ad, "Int"))
146+ let ac = (Z + 1)
147+ let ad = {
148+ let aa = getInteger(this, "Total_Mass_Transfer_Send")
149+ if ($isInstanceOf(aa, "Int"))
157150 then {
158- let ae = ad
159- ae
151+ let ab = aa
152+ ab
160153 }
161154 else 0
162155 }
163- let ah = (ag + X)
164- if ((O.caller != b))
156+ let ae = (ad + U)
157+ if ((K.caller != b))
165158 then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
166- else if ((X > Z))
159+ else if ((U > W))
167160 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
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)]
161+ else [IntegerEntry("Total_Pool_Liquidity", Y), IntegerEntry("Mass_Transfer_Counter", ac), IntegerEntry("Total_Mass_Transfer_Send", ae), IntegerEntry((toString(ac) + "_Mass_Transfer_Send"), U), ScriptTransfer(addressFromPublicKey(a), U, unit), ScriptTransfer(addressFromPublicKey(a), c, unit)]
169162 }
170163
171164

github/deemru/w8io/169f3d6 
60.19 ms