tx · ESzgE7yL3nybnf1GAzSvHms6NbfPVGzjLLxZYnvFVMwW 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d: -0.01000000 Waves 2023.10.21 09:05 [2807970] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves
{ "type": 13, "id": "ESzgE7yL3nybnf1GAzSvHms6NbfPVGzjLLxZYnvFVMwW", "fee": 1000000, "feeAssetId": null, "timestamp": 1697868427327, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "49abTf7rhhChzV9j7XkWFsmYYANneXDUdzmQqw2xKB6PuyZhjD1ioppR1sYWSrLTkgWStQ7yAdqErr1thghjPm9u" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBBQAUdXNlcl9iYWxhbmNlX2FkZHJlc3MCIzNOMXMydzROSGdiclh4TlpYSDlSdGFWVDlwdEhSSmNnU3AyABFscF9hZGRyZXNzX3B1YmtleQEgfL5cGEj+uG/8tBR+Viifx7yrQ9PycEN4TEfqN4B6wGsAIG1hc3N0cmFuc2Zlcl93aGl0ZWxpc3RlZF9hZGRyZXNzCQCnCAEFEWxwX2FkZHJlc3NfcHVia2V5AAtuZXR3b3JrX2ZlZQCgwh4BHXZhbGlkYXRlTWFzc1RyYW5zZmVyQXJndW1lbnRzBApyZWNpcGllbnRzB2Ftb3VudHMKcGF5bWVudElkeAhwYXltZW50cwQOcmVjaXBpZW50c1NpemUJAJADAQUKcmVjaXBpZW50cwQLYW1vdW50c1NpemUJAJADAQUHYW1vdW50cwQOcGF5bWVudElkeFNpemUJAJADAQUKcGF5bWVudElkeAQMcGF5bWVudHNTaXplCQCQAwEFCHBheW1lbnRzBAltaW5BbW91bnQJAJcDAQUHYW1vdW50cwQNbWluUGF5bWVudElkeAkAlwMBBQpwYXltZW50SWR4BA1tYXhQYXlt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QUYVG90YWxNYXNzVHJhbnNmZXJDb3VudGVyAhNfTWFzc19UcmFuc2Zlcl9TZW5kBRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAKcIAQURbHBfYWRkcmVzc19wdWJrZXkFFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFBHVuaXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQULbmV0d29ya19mZWUFBHVuaXQFA25pbABHBao+", "height": 2807970, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EW7MRzKHLpYSpH4kxtJVbJM8dNcugi9cUQkto8VeDskY Next: none Diff:
Old | New | Differences | |
---|---|---|---|
103 | 103 | then throw("Only Waves is allowed to Attach as payment.") | |
104 | 104 | else if (!(e(f, g, h, L.payments))) | |
105 | 105 | then throw("Invalid arguments") | |
106 | - | else if (((Q + "_Winners_Status") == "Paid")) | |
107 | - | then throw((("Mass Transfer against Counter ID: " + Q) + " is already released.")) | |
108 | - | else if ((O > R)) | |
109 | - | then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(S)) + " Wavelets.")) | |
110 | - | else { | |
111 | - | let j = size(f) | |
112 | - | func T (U,V) = { | |
113 | - | let W = U | |
114 | - | let X = W._1 | |
115 | - | let v = W._2 | |
116 | - | if ((v >= j)) | |
117 | - | then $Tuple2(X, (v + 1)) | |
118 | - | else $Tuple2((X :+ ScriptTransfer(addressFromStringValue(f[v]), V, L.payments[h[v]].assetId)), (v + 1)) | |
119 | - | } | |
106 | + | else if ((O > S)) | |
107 | + | then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(S)) + " Wavelets.")) | |
108 | + | else { | |
109 | + | let j = size(f) | |
110 | + | func T (U,V) = { | |
111 | + | let W = U | |
112 | + | let X = W._1 | |
113 | + | let v = W._2 | |
114 | + | if ((v >= j)) | |
115 | + | then $Tuple2(X, (v + 1)) | |
116 | + | else $Tuple2((X :+ ScriptTransfer(addressFromStringValue(f[v]), V, L.payments[h[v]].assetId)), (v + 1)) | |
117 | + | } | |
120 | 118 | ||
121 | - | ||
122 | - | ||
123 | - | ||
124 | - | ||
125 | - | ||
126 | - | ||
127 | - | ||
119 | + | let Y = { | |
120 | + | let D = g | |
121 | + | let E = size(D) | |
122 | + | let F = $Tuple2(nil, 0) | |
123 | + | func G (H,I) = if ((I >= E)) | |
124 | + | then H | |
125 | + | else T(H, D[I]) | |
128 | 126 | ||
129 | - | ||
130 | - | ||
131 | - | ||
127 | + | func J (H,I) = if ((I >= E)) | |
128 | + | then H | |
129 | + | else throw("List size exceeds 100") | |
132 | 130 | ||
133 | - | J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 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) | |
134 | - | } | |
135 | - | $Tuple2((Y._1 ++ [StringEntry((Q + "_Winners_Status"), "Paid"), IntegerEntry((Q + "_Eligible_Limits"), S)]), unit) | |
131 | + | J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 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) | |
136 | 132 | } | |
133 | + | $Tuple2((Y._1 ++ [IntegerEntry((Q + "_Total_Winners"), j)]), unit) | |
134 | + | } | |
137 | 135 | } | |
138 | 136 | ||
139 | 137 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2" | |
5 | 5 | ||
6 | 6 | let b = base58'9Pwum3va2xrkVwsGRNiTeGxBBBNFEDaS9sfkZiSpSvdQ' | |
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(b) | |
9 | 9 | ||
10 | 10 | let d = 500000 | |
11 | 11 | ||
12 | 12 | func e (f,g,h,i) = { | |
13 | 13 | let j = size(f) | |
14 | 14 | let k = size(g) | |
15 | 15 | let l = size(h) | |
16 | 16 | let m = size(i) | |
17 | 17 | let n = min(g) | |
18 | 18 | let o = min(h) | |
19 | 19 | let p = max(h) | |
20 | 20 | func q (r,s) = { | |
21 | 21 | let t = r | |
22 | 22 | let u = t._1 | |
23 | 23 | let v = t._2 | |
24 | 24 | if ((v >= m)) | |
25 | 25 | then $Tuple2(u, (v + 1)) | |
26 | 26 | else { | |
27 | 27 | func w (x,y) = { | |
28 | 28 | let z = x | |
29 | 29 | let A = z._1 | |
30 | 30 | let B = z._2 | |
31 | 31 | if (if ((B >= j)) | |
32 | 32 | then true | |
33 | 33 | else (h[B] != v)) | |
34 | 34 | then $Tuple2(A, (B + 1)) | |
35 | 35 | else $Tuple2((A + y), (B + 1)) | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | let C = { | |
39 | 39 | let D = g | |
40 | 40 | let E = size(D) | |
41 | 41 | let F = $Tuple2(0, 0) | |
42 | 42 | func G (H,I) = if ((I >= E)) | |
43 | 43 | then H | |
44 | 44 | else w(H, D[I]) | |
45 | 45 | ||
46 | 46 | func J (H,I) = if ((I >= E)) | |
47 | 47 | then H | |
48 | 48 | else throw("List size exceeds 100") | |
49 | 49 | ||
50 | 50 | J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 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) | |
51 | 51 | } | |
52 | 52 | if ((C._1 == s.amount)) | |
53 | 53 | then $Tuple2((u + 1), (v + 1)) | |
54 | 54 | else $Tuple2(u, (v + 1)) | |
55 | 55 | } | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | let K = { | |
59 | 59 | let D = i | |
60 | 60 | let E = size(D) | |
61 | 61 | let F = $Tuple2(0, 0) | |
62 | 62 | func G (H,I) = if ((I >= E)) | |
63 | 63 | then H | |
64 | 64 | else q(H, D[I]) | |
65 | 65 | ||
66 | 66 | func J (H,I) = if ((I >= E)) | |
67 | 67 | then H | |
68 | 68 | else throw("List size exceeds 10") | |
69 | 69 | ||
70 | 70 | J(G(G(G(G(G(G(G(G(G(G(F, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
71 | 71 | } | |
72 | 72 | if (if (if (if (if (if (if (if ((j == k)) | |
73 | 73 | then (j == l) | |
74 | 74 | else false) | |
75 | 75 | then (j > 0) | |
76 | 76 | else false) | |
77 | 77 | then (100 >= j) | |
78 | 78 | else false) | |
79 | 79 | then (m > 0) | |
80 | 80 | else false) | |
81 | 81 | then (n > 0) | |
82 | 82 | else false) | |
83 | 83 | then (o == 0) | |
84 | 84 | else false) | |
85 | 85 | then (p == (m - 1)) | |
86 | 86 | else false) | |
87 | 87 | then (K._1 == m) | |
88 | 88 | else false | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | @Callable(L) | |
93 | 93 | func massTransfer (f,g,h,M) = { | |
94 | 94 | let N = value(L.payments[0]) | |
95 | 95 | let O = N.amount | |
96 | 96 | let P = 18 | |
97 | 97 | let Q = split(M, "_")[0] | |
98 | 98 | let R = valueOrErrorMessage(getInteger(addressFromStringValue(a), ("Total_Funds_Added_In_Option_Order_" + Q)), (("Counter ID: " + Q) + " Not Found.")) | |
99 | 99 | let S = fraction(R, P, 10) | |
100 | 100 | if ((L.caller != c)) | |
101 | 101 | then throw((("Not an Admin only " + toString(c)) + " can sign it.")) | |
102 | 102 | else if (isDefined(N.assetId)) | |
103 | 103 | then throw("Only Waves is allowed to Attach as payment.") | |
104 | 104 | else if (!(e(f, g, h, L.payments))) | |
105 | 105 | then throw("Invalid arguments") | |
106 | - | else if (((Q + "_Winners_Status") == "Paid")) | |
107 | - | then throw((("Mass Transfer against Counter ID: " + Q) + " is already released.")) | |
108 | - | else if ((O > R)) | |
109 | - | then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(S)) + " Wavelets.")) | |
110 | - | else { | |
111 | - | let j = size(f) | |
112 | - | func T (U,V) = { | |
113 | - | let W = U | |
114 | - | let X = W._1 | |
115 | - | let v = W._2 | |
116 | - | if ((v >= j)) | |
117 | - | then $Tuple2(X, (v + 1)) | |
118 | - | else $Tuple2((X :+ ScriptTransfer(addressFromStringValue(f[v]), V, L.payments[h[v]].assetId)), (v + 1)) | |
119 | - | } | |
106 | + | else if ((O > S)) | |
107 | + | then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(S)) + " Wavelets.")) | |
108 | + | else { | |
109 | + | let j = size(f) | |
110 | + | func T (U,V) = { | |
111 | + | let W = U | |
112 | + | let X = W._1 | |
113 | + | let v = W._2 | |
114 | + | if ((v >= j)) | |
115 | + | then $Tuple2(X, (v + 1)) | |
116 | + | else $Tuple2((X :+ ScriptTransfer(addressFromStringValue(f[v]), V, L.payments[h[v]].assetId)), (v + 1)) | |
117 | + | } | |
120 | 118 | ||
121 | - | ||
122 | - | ||
123 | - | ||
124 | - | ||
125 | - | ||
126 | - | ||
127 | - | ||
119 | + | let Y = { | |
120 | + | let D = g | |
121 | + | let E = size(D) | |
122 | + | let F = $Tuple2(nil, 0) | |
123 | + | func G (H,I) = if ((I >= E)) | |
124 | + | then H | |
125 | + | else T(H, D[I]) | |
128 | 126 | ||
129 | - | ||
130 | - | ||
131 | - | ||
127 | + | func J (H,I) = if ((I >= E)) | |
128 | + | then H | |
129 | + | else throw("List size exceeds 100") | |
132 | 130 | ||
133 | - | J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 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) | |
134 | - | } | |
135 | - | $Tuple2((Y._1 ++ [StringEntry((Q + "_Winners_Status"), "Paid"), IntegerEntry((Q + "_Eligible_Limits"), S)]), unit) | |
131 | + | J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 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) | |
136 | 132 | } | |
133 | + | $Tuple2((Y._1 ++ [IntegerEntry((Q + "_Total_Winners"), j)]), unit) | |
134 | + | } | |
137 | 135 | } | |
138 | 136 | ||
139 | 137 | ||
140 | 138 | ||
141 | 139 | @Callable(L) | |
142 | 140 | func UpdateLPBalance (Z) = { | |
143 | 141 | let aa = wavesBalance(this).regular | |
144 | 142 | let ab = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.") | |
145 | 143 | let ac = ((aa - ab) - d) | |
146 | 144 | let ad = ((ab - Z) + ac) | |
147 | 145 | let ae = { | |
148 | 146 | let af = getInteger(this, "Mass_Transfer_Counter") | |
149 | 147 | if ($isInstanceOf(af, "Int")) | |
150 | 148 | then { | |
151 | 149 | let ag = af | |
152 | 150 | ag | |
153 | 151 | } | |
154 | 152 | else 0 | |
155 | 153 | } | |
156 | 154 | let ah = (ae + 1) | |
157 | 155 | let ai = { | |
158 | 156 | let af = getInteger(this, "Total_Mass_Transfer_Send") | |
159 | 157 | if ($isInstanceOf(af, "Int")) | |
160 | 158 | then { | |
161 | 159 | let ag = af | |
162 | 160 | ag | |
163 | 161 | } | |
164 | 162 | else 0 | |
165 | 163 | } | |
166 | 164 | let aj = (ai + Z) | |
167 | 165 | if ((L.caller != c)) | |
168 | 166 | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
169 | 167 | else if ((Z > ab)) | |
170 | 168 | then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.") | |
171 | 169 | else [IntegerEntry("Total_Pool_Liquidity", ad), IntegerEntry("Mass_Transfer_Counter", ah), IntegerEntry("Total_Mass_Transfer_Send", aj), IntegerEntry((toString(ah) + "_Mass_Transfer_Send"), Z), ScriptTransfer(addressFromPublicKey(b), Z, unit), ScriptTransfer(addressFromPublicKey(b), d, unit)] | |
172 | 170 | } | |
173 | 171 | ||
174 | 172 |
github/deemru/w8io/169f3d6 41.90 ms ◑