tx · 4ypGAEhcaZeUnbdPi9qe93M8NZgczVYr4xAsPuAEycR3

3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d:  -0.01000000 Waves

2023.10.12 11:38 [2795154] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves

{ "type": 13, "id": "4ypGAEhcaZeUnbdPi9qe93M8NZgczVYr4xAsPuAEycR3", "fee": 1000000, "feeAssetId": null, "timestamp": 1697099972808, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "4Yk7MfgoyhKQFmRB5LLq6bBLdedm3uvkziFAE5VQvqt7iq1qyN9nG6UaRwBB2aYtbJMRtLnWgLAAcrXDWiJAWaDw" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBAwARbHBfYWRkcmVzc19wdWJrZXkBIHy+XBhI/rhv/LQUflYon8e8q0PT8nBDeExH6jeAesBrACBtYXNzdHJhbnNmZXJfd2hpdGVsaXN0ZWRfYWRkcmVzcwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQERdmFsaWRhdGVBcmd1bWVudHMECnJlY2lwaWVudHMHYW1vdW50cwpwYXltZW50SWR4CHBheW1lbnRzBA5yZWNpcGllbnRzU2l6ZQkAkAMBBQpyZWNpcGllbnRzBAthbW91bnRzU2l6ZQkAkAMBBQdhbW91bnRzBA5wYXltZW50SWR4U2l6ZQkAkAMBBQpwYXltZW50SWR4BAxwYXltZW50c1NpemUJAJADAQUIcGF5bWVudHMECW1pbkFtb3VudAkAlwMBBQdhbW91bnRzBA1taW5QYXltZW50SWR4CQCXAwEFCnBheW1lbnRJZHgEDW1heFBheW1lbnRJZHgJAJYDAQUKcGF5bWVudElkeAoBEXBheW1lbnRzVmFsaWRhdG9yAgxwYXltZW50QWNjdW0LbmV4dFBheW1lbnQECSR0MDc0MDc3NwUMcGF5b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udGVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCAhhUb3RhbF9NYXNzX1RyYW5zZmVyX1NlbmQFFVRvdGFsTWFzc1RyYW5zZmVyU2VuZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCkAwEFGFRvdGFsTWFzc1RyYW5zZmVyQ291bnRlcgITX01hc3NfVHJhbnNmZXJfU2VuZAUWUGFpZE1hc3NUcmFuc2ZlckFtb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQCnCAEFEWxwX2FkZHJlc3NfcHVia2V5BRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50BQR1bml0BQNuaWwAI6Xcog==", "height": 2795154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tE6nPEivm9YfBgF12c2mRHKRtR54QqjLSimYRgNHKg2 Next: DHWMjwPMfQHyW7eVe6TJReKP7bMv5HRkr3LR3yxUDLAz Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b,c,d,e) = {
5- let f = size(b)
6- let g = size(c)
4+let a = base58'9Pwum3va2xrkVwsGRNiTeGxBBBNFEDaS9sfkZiSpSvdQ'
5+
6+let b = addressFromPublicKey(a)
7+
8+func c (d,e,f,g) = {
79 let h = size(d)
810 let i = size(e)
9- let j = min(c)
10- let k = min(d)
11- let l = max(d)
12- func m (n,o) = {
13- let p = n
14- let q = p._1
15- let r = p._2
16- if ((r >= i))
17- then $Tuple2(q, (r + 1))
11+ let j = size(f)
12+ let k = size(g)
13+ let l = min(e)
14+ let m = min(f)
15+ let n = max(f)
16+ func o (p,q) = {
17+ let r = p
18+ let s = r._1
19+ let t = r._2
20+ if ((t >= k))
21+ then $Tuple2(s, (t + 1))
1822 else {
19- func s (t,u) = {
20- let v = t
21- let w = v._1
22- let x = v._2
23- if (if ((x >= f))
23+ func u (v,w) = {
24+ let x = v
25+ let y = x._1
26+ let z = x._2
27+ if (if ((z >= h))
2428 then true
25- else (d[x] != r))
26- then $Tuple2(w, (x + 1))
27- else $Tuple2((w + u), (x + 1))
29+ else (f[z] != t))
30+ then $Tuple2(y, (z + 1))
31+ else $Tuple2((y + w), (z + 1))
2832 }
2933
30- let y = {
31- let z = c
32- let A = size(z)
33- let B = $Tuple2(0, 0)
34- func C (D,E) = if ((E >= A))
35- then D
36- else s(D, z[E])
34+ let A = {
35+ let B = e
36+ let C = size(B)
37+ let D = $Tuple2(0, 0)
38+ func E (F,G) = if ((G >= C))
39+ then F
40+ else u(F, B[G])
3741
38- func F (D,E) = if ((E >= A))
39- then D
42+ func H (F,G) = if ((G >= C))
43+ then F
4044 else throw("List size exceeds 100")
4145
42- F(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(B, 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)
46+ H(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(D, 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)
4347 }
44- if ((y._1 == o.amount))
45- then $Tuple2((q + 1), (r + 1))
46- else $Tuple2(q, (r + 1))
48+ if ((A._1 == q.amount))
49+ then $Tuple2((s + 1), (t + 1))
50+ else $Tuple2(s, (t + 1))
4751 }
4852 }
4953
50- let G = {
51- let z = e
52- let A = size(z)
53- let B = $Tuple2(0, 0)
54- func C (D,E) = if ((E >= A))
55- then D
56- else m(D, z[E])
54+ let I = {
55+ let B = g
56+ let C = size(B)
57+ let D = $Tuple2(0, 0)
58+ func E (F,G) = if ((G >= C))
59+ then F
60+ else o(F, B[G])
5761
58- func F (D,E) = if ((E >= A))
59- then D
62+ func H (F,G) = if ((G >= C))
63+ then F
6064 else throw("List size exceeds 10")
6165
62- F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
66+ H(E(E(E(E(E(E(E(E(E(E(D, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
6367 }
64- if (if (if (if (if (if (if (if ((f == g))
65- then (f == h)
68+ if (if (if (if (if (if (if (if ((h == i))
69+ then (h == j)
6670 else false)
67- then (f > 0)
71+ then (h > 0)
6872 else false)
69- then (100 >= f)
73+ then (100 >= h)
7074 else false)
71- then (i > 0)
75+ then (k > 0)
7276 else false)
73- then (j > 0)
77+ then (l > 0)
7478 else false)
75- then (k == 0)
79+ then (m == 0)
7680 else false)
77- then (l == (i - 1))
81+ then (n == (k - 1))
7882 else false)
79- then (G._1 == i)
83+ then (I._1 == k)
8084 else false
8185 }
8286
8387
84-@Callable(H)
85-func massTransfer (b,c,d,I) = {
86- let J = value(H.payments[0])
87- let K = base58'9Pwum3va2xrkVwsGRNiTeGxBBBNFEDaS9sfkZiSpSvdQ'
88- let L = addressFromPublicKey(K)
89- if ((H.caller != L))
90- then throw((("Not an Admin only" + toString(L)) + " can sign it."))
91- else if (isDefined(J.assetId))
88+@Callable(J)
89+func massTransfer (d,e,f,K) = {
90+ let L = value(J.payments[0])
91+ if ((J.caller != b))
92+ then throw((("Not an Admin only " + toString(b)) + " can sign it."))
93+ else if (isDefined(L.assetId))
9294 then throw("Only Waves is allowed to Attach as payment.")
93- else if (!(a(b, c, d, H.payments)))
95+ else if (!(c(d, e, f, J.payments)))
9496 then throw("Invalid arguments")
9597 else {
96- let f = size(b)
98+ let h = size(d)
9799 func M (N,O) = {
98100 let P = N
99101 let Q = P._1
100- let r = P._2
101- if ((r >= f))
102- then $Tuple2(Q, (r + 1))
103- else $Tuple2((Q :+ ScriptTransfer(addressFromStringValue(b[r]), O, H.payments[d[r]].assetId)), (r + 1))
102+ let t = P._2
103+ if ((t >= h))
104+ then $Tuple2(Q, (t + 1))
105+ else $Tuple2((Q :+ ScriptTransfer(addressFromStringValue(d[t]), O, J.payments[f[t]].assetId)), (t + 1))
104106 }
105107
106108 let R = {
107- let z = c
108- let A = size(z)
109- let B = $Tuple2(nil, 0)
110- func C (D,E) = if ((E >= A))
111- then D
112- else M(D, z[E])
109+ let B = e
110+ let C = size(B)
111+ let D = $Tuple2(nil, 0)
112+ func E (F,G) = if ((G >= C))
113+ then F
114+ else M(F, B[G])
113115
114- func F (D,E) = if ((E >= A))
115- then D
116+ func H (F,G) = if ((G >= C))
117+ then F
116118 else throw("List size exceeds 100")
117119
118- F(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(B, 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)
120+ H(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(D, 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)
119121 }
120122 $Tuple2(R._1, unit)
121123 }
124+ }
125+
126+
127+
128+@Callable(J)
129+func UpdateLPBalance (S) = {
130+ let T = wavesBalance(this).regular
131+ let U = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
132+ let V = (T - U)
133+ let W = ((U - S) + V)
134+ let X = {
135+ let Y = getInteger(this, "Mass_Transfer_Counter")
136+ if ($isInstanceOf(Y, "Int"))
137+ then {
138+ let Z = Y
139+ Z
140+ }
141+ else 0
142+ }
143+ let aa = (X + 1)
144+ let ab = {
145+ let Y = getInteger(this, "Total_Mass_Transfer_Send")
146+ if ($isInstanceOf(Y, "Int"))
147+ then {
148+ let Z = Y
149+ Z
150+ }
151+ else 0
152+ }
153+ let ac = (ab + S)
154+ if ((J.caller != b))
155+ then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it."))
156+ else if ((S > U))
157+ then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
158+ else [IntegerEntry("Total_Pool_Liquidity", W), IntegerEntry("Mass_Transfer_Counter", aa), IntegerEntry("Total_Mass_Transfer_Send", ac), IntegerEntry((toString(aa) + "_Mass_Transfer_Send"), S), ScriptTransfer(addressFromPublicKey(a), S, unit)]
122159 }
123160
124161

github/deemru/w8io/026f985 
245.45 ms