tx · C24uVMYefwR9q7c1M1kKeH13Pk6eb9KHHMyEdkNAfBtC 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.02.19 15:00 [1930487] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "C24uVMYefwR9q7c1M1kKeH13Pk6eb9KHHMyEdkNAfBtC", "fee": 1400000, "feeAssetId": null, "timestamp": 1645272045852, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "4hU4296Z2xGgtknhVQfHErbznAU5mqUytgSC2uh6dQJYC5bxssCzr2kQvv94YyfUW5n9LuLyRYXh77dMQs6kHCak", "txxxicVM8cePAvWnKWqB2wroWScJ46YSbeEymmZbKUQjKQQnkMjeU5F3qM8F4TiHcGWeyUK6uoFHRb2mRj8SVEL", "25BcV9wqZwKAynqpAiaMqNyoygFdYzcamRimcnpag359cYdYQTkXUdniUK8GLDsNBoeyeVi3GmTTGLSnZyiAT4LL" ], "script": "base64:AAIFAAAAAAAAADQIAhIGCgQYGBgREgUKAxgYERIGCgQICAEBEgASAwoBCBIDCgEIEgUKAwgICBIECgIYFBIAAAAAGgAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAADGFkbWluUHViS2V5MQEAAAAgTC9F1XzqFGGdLucFXlrRY8ZeleddBPtyCBFVfBI5UHgAAAAADGFkbWluUHViS2V5MgEAAAAgo1jhnK8LndnZN54kO2lFL7fWRlVIuOuttap+d1LEBD0AAAAADGFkbWluUHViS2V5MwEAAAAgitC0+TBLGvFUtXZrOXd2PwDRrAhjEzCY3dTlamSkHykAAAAADGFkbWluUHViS2V5NAEAAAAgTC9F1X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RAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAAAphZG0zU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAKYWRtMVNpZ25lZAUAAAAKYWRtMlNpZ25lZAUAAAAKYWRtM1NpZ25lZAAAAAAAAAAAAsLdBgc=", "height": 1930487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9KVeFANAXYa27dKUgiifNrrxGQTusU9TwQuXeh6C3uUU Next: 7y1p2vnMQqd39nr8JYm3FWwCC8zoR2T5KbnBeTRXT6K4 Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | - | let g = base58' | |
16 | + | let g = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
17 | 17 | ||
18 | - | let h = Address(base58' | |
18 | + | let h = Address(base58'3PKoJ7GHwmidFPX6NiqKZdq8Zj2auPMNPnE') | |
19 | 19 | ||
20 | 20 | let i = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let j = Address(base58' | |
22 | + | let j = Address(base58'3P73HDkPqG15nLXevjCbmXtazHYTZbpPoPw') | |
23 | 23 | ||
24 | 24 | let k = "SWOP_id" | |
25 | 25 | ||
33 | 33 | ||
34 | 34 | let p = "_service_token_total_locked" | |
35 | 35 | ||
36 | - | let q = [" | |
36 | + | let q = ["replenishWithTwoTokens", "exchange", "replenishWithOneToken"] | |
37 | 37 | ||
38 | - | let r = ["replenishWithTwoTokens", "exchange"] | |
39 | - | ||
40 | - | func s (t) = { | |
41 | - | let u = (t + "_active") | |
42 | - | let v = { | |
43 | - | let w = getBoolean(this, u) | |
44 | - | if ($isInstanceOf(w, "Boolean")) | |
38 | + | func r (s) = { | |
39 | + | let t = (s + "_active") | |
40 | + | let u = { | |
41 | + | let v = getBoolean(this, t) | |
42 | + | if ($isInstanceOf(v, "Boolean")) | |
45 | 43 | then { | |
46 | - | let | |
47 | - | | |
44 | + | let w = v | |
45 | + | w | |
48 | 46 | } | |
49 | 47 | else throw("Pool is not active!") | |
50 | 48 | } | |
51 | - | | |
49 | + | u | |
52 | 50 | } | |
53 | 51 | ||
54 | 52 | ||
55 | - | func | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
53 | + | func x (s) = { | |
54 | + | let v = getString((s + "_service_token")) | |
55 | + | if ($isInstanceOf(v, "String")) | |
58 | 56 | then { | |
59 | - | let | |
60 | - | | |
57 | + | let y = v | |
58 | + | y | |
61 | 59 | } | |
62 | 60 | else { | |
63 | - | let | |
61 | + | let z = v | |
64 | 62 | throw("You try to deposit on unsupported pool") | |
65 | 63 | } | |
66 | 64 | } | |
67 | 65 | ||
68 | 66 | ||
69 | - | func | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
67 | + | func A (s) = { | |
68 | + | let v = getString((s + "_liquidity_token")) | |
69 | + | if ($isInstanceOf(v, "String")) | |
72 | 70 | then { | |
73 | - | let | |
74 | - | | |
71 | + | let y = v | |
72 | + | y | |
75 | 73 | } | |
76 | 74 | else { | |
77 | - | let | |
75 | + | let z = v | |
78 | 76 | throw("You try to withdraw from unsupported pool") | |
79 | 77 | } | |
80 | 78 | } | |
81 | 79 | ||
82 | 80 | ||
83 | - | func | |
81 | + | func B (C) = if ((C == toBase58String(l))) | |
84 | 82 | then { | |
85 | - | let | |
86 | - | if ($isInstanceOf( | |
83 | + | let v = getInteger(i, (toString(this) + "_SWOP_amount")) | |
84 | + | if ($isInstanceOf(v, "Int")) | |
87 | 85 | then { | |
88 | - | let | |
89 | - | | |
86 | + | let D = v | |
87 | + | D | |
90 | 88 | } | |
91 | - | else if ($isInstanceOf( | |
89 | + | else if ($isInstanceOf(v, "Unit")) | |
92 | 90 | then { | |
93 | - | let | |
91 | + | let z = v | |
94 | 92 | 0 | |
95 | 93 | } | |
96 | 94 | else throw("Match error") | |
97 | 95 | } | |
98 | 96 | else { | |
99 | - | let | |
100 | - | if ($isInstanceOf( | |
97 | + | let v = getInteger(j, (((C + "_") + toString(this)) + "_share_tokens_locked")) | |
98 | + | if ($isInstanceOf(v, "Int")) | |
101 | 99 | then { | |
102 | - | let | |
103 | - | | |
100 | + | let D = v | |
101 | + | D | |
104 | 102 | } | |
105 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(v, "Unit")) | |
106 | 104 | then { | |
107 | - | let | |
105 | + | let z = v | |
108 | 106 | 0 | |
109 | 107 | } | |
110 | 108 | else throw("Match error") | |
111 | 109 | } | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | if ($isInstanceOf( | |
112 | + | func E (F,G,C,H) = { | |
113 | + | let I = B(C) | |
114 | + | let J = { | |
115 | + | let v = assetInfo(G) | |
116 | + | if ($isInstanceOf(v, "Asset")) | |
119 | 117 | then { | |
120 | - | let | |
121 | - | | |
118 | + | let K = v | |
119 | + | K.quantity | |
122 | 120 | } | |
123 | 121 | else throw("Can't find asset") | |
124 | 122 | } | |
125 | - | if (( | |
126 | - | then | |
127 | - | else if (( | |
123 | + | if ((I == 0)) | |
124 | + | then F | |
125 | + | else if ((H == n)) | |
128 | 126 | then { | |
129 | - | let | |
130 | - | | |
127 | + | let L = fraction(F, J, I) | |
128 | + | L | |
131 | 129 | } | |
132 | 130 | else { | |
133 | - | let | |
134 | - | | |
131 | + | let L = fraction(F, I, J) | |
132 | + | L | |
135 | 133 | } | |
136 | 134 | } | |
137 | 135 | ||
138 | 136 | ||
139 | - | func | |
137 | + | func M (s,N,O) = (((((s + "_") + N) + "_") + O) + "_withdraw") | |
140 | 138 | ||
141 | 139 | ||
142 | - | func | |
140 | + | func P (s,N,O) = (((((s + "_") + N) + "_") + O) + "_withdraw_burn_token") | |
143 | 141 | ||
144 | 142 | ||
145 | - | func | |
143 | + | func Q (s,N) = (((s + "_") + N) + p) | |
146 | 144 | ||
147 | 145 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ($isInstanceOf( | |
146 | + | func R (S) = { | |
147 | + | let v = getInteger(S) | |
148 | + | if ($isInstanceOf(v, "Int")) | |
151 | 149 | then { | |
152 | - | let | |
153 | - | | |
150 | + | let T = v | |
151 | + | T | |
154 | 152 | } | |
155 | 153 | else { | |
156 | - | let | |
154 | + | let z = v | |
157 | 155 | 0 | |
158 | 156 | } | |
159 | 157 | } | |
160 | 158 | ||
161 | 159 | ||
162 | - | @Callable( | |
163 | - | func addPools (W,X,Y | |
160 | + | @Callable(U) | |
161 | + | func addPools (V,W,X,Y) = if (containsElement([d, e, f], U.callerPublicKey)) | |
164 | 162 | then { | |
165 | - | func | |
163 | + | func Z (aa,s) = IntegerEntry((s + "_asset_balance"), 0) :: aa | |
166 | 164 | ||
167 | - | func | |
168 | - | let | |
169 | - | let | |
170 | - | StringEntry(( | |
165 | + | func ab (aa,s) = { | |
166 | + | let ac = value(indexOf(V, s)) | |
167 | + | let ad = W[ac] | |
168 | + | StringEntry((s + "_liquidity_token"), ad) :: aa | |
171 | 169 | } | |
172 | 170 | ||
173 | - | func | |
174 | - | let | |
175 | - | let | |
176 | - | StringEntry(( | |
171 | + | func ae (aa,s) = { | |
172 | + | let ac = value(indexOf(V, s)) | |
173 | + | let ad = X[ac] | |
174 | + | StringEntry((s + "_service_token"), ad) :: aa | |
177 | 175 | } | |
178 | 176 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | IntegerEntry(( | |
177 | + | func af (aa,s) = { | |
178 | + | let ac = value(indexOf(V, s)) | |
179 | + | let ad = Y[ac] | |
180 | + | IntegerEntry((s + "_service_token_decimal"), ad) :: aa | |
183 | 181 | } | |
184 | 182 | ||
185 | - | func | |
183 | + | func ag (aa,s) = BooleanEntry((s + "_active"), true) :: aa | |
186 | 184 | ||
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | func | |
192 | - | then | |
193 | - | else | |
185 | + | let ah = { | |
186 | + | let ai = V | |
187 | + | let aj = size(ai) | |
188 | + | let ak = nil | |
189 | + | func al (am,an) = if ((an >= aj)) | |
190 | + | then am | |
191 | + | else Z(am, ai[an]) | |
194 | 192 | ||
195 | - | func | |
196 | - | then | |
193 | + | func ao (am,an) = if ((an >= aj)) | |
194 | + | then am | |
197 | 195 | else throw("List size exceeds 20") | |
198 | 196 | ||
199 | - | | |
197 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
200 | 198 | } | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | func | |
206 | - | then | |
207 | - | else | |
199 | + | let ap = { | |
200 | + | let ai = V | |
201 | + | let aj = size(ai) | |
202 | + | let ak = nil | |
203 | + | func aq (am,an) = if ((an >= aj)) | |
204 | + | then am | |
205 | + | else ab(am, ai[an]) | |
208 | 206 | ||
209 | - | func | |
210 | - | then | |
207 | + | func ar (am,an) = if ((an >= aj)) | |
208 | + | then am | |
211 | 209 | else throw("List size exceeds 20") | |
212 | 210 | ||
213 | - | | |
211 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
214 | 212 | } | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | func | |
220 | - | then | |
221 | - | else | |
213 | + | let as = { | |
214 | + | let ai = V | |
215 | + | let aj = size(ai) | |
216 | + | let ak = nil | |
217 | + | func at (am,an) = if ((an >= aj)) | |
218 | + | then am | |
219 | + | else ae(am, ai[an]) | |
222 | 220 | ||
223 | - | func | |
224 | - | then | |
221 | + | func au (am,an) = if ((an >= aj)) | |
222 | + | then am | |
225 | 223 | else throw("List size exceeds 20") | |
226 | 224 | ||
227 | - | | |
225 | + | au(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
228 | 226 | } | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | func | |
234 | - | then | |
235 | - | else | |
227 | + | let av = { | |
228 | + | let ai = V | |
229 | + | let aj = size(ai) | |
230 | + | let ak = nil | |
231 | + | func aw (am,an) = if ((an >= aj)) | |
232 | + | then am | |
233 | + | else af(am, ai[an]) | |
236 | 234 | ||
237 | - | func | |
238 | - | then | |
235 | + | func ax (am,an) = if ((an >= aj)) | |
236 | + | then am | |
239 | 237 | else throw("List size exceeds 20") | |
240 | 238 | ||
241 | - | | |
239 | + | ax(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
242 | 240 | } | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | func | |
248 | - | then | |
249 | - | else | |
241 | + | let ay = { | |
242 | + | let ai = V | |
243 | + | let aj = size(ai) | |
244 | + | let ak = nil | |
245 | + | func az (am,an) = if ((an >= aj)) | |
246 | + | then am | |
247 | + | else ag(am, ai[an]) | |
250 | 248 | ||
251 | - | func | |
252 | - | then | |
249 | + | func aA (am,an) = if ((an >= aj)) | |
250 | + | then am | |
253 | 251 | else throw("List size exceeds 20") | |
254 | 252 | ||
255 | - | | |
253 | + | aA(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
256 | 254 | } | |
257 | - | (((( | |
255 | + | ((((ah ++ ap) ++ as) ++ av) ++ ay) | |
258 | 256 | } | |
259 | 257 | else throw("Only admin can call this function") | |
260 | 258 | ||
261 | 259 | ||
262 | 260 | ||
263 | - | @Callable( | |
264 | - | func deleteDepositLockRecords (aC,aD | |
261 | + | @Callable(U) | |
262 | + | func deleteDepositLockRecords (aB,aC,aD) = if (containsElement([d, e, f], U.callerPublicKey)) | |
265 | 263 | then { | |
266 | - | func | |
264 | + | func aE (aa,aF) = DeleteEntry((aF + "_locked")) :: aa | |
267 | 265 | ||
268 | - | func | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | IntegerEntry(( | |
266 | + | func aG (aa,aH) = { | |
267 | + | let aI = value(indexOf(aC, aH)) | |
268 | + | let aJ = aD[aI] | |
269 | + | let aK = R((aH + p)) | |
270 | + | let aL = (aK - aJ) | |
271 | + | IntegerEntry((aH + p), aL) :: aa | |
274 | 272 | } | |
275 | 273 | ||
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | then | |
282 | - | else | |
274 | + | let aM = { | |
275 | + | let ai = aB | |
276 | + | let aj = size(ai) | |
277 | + | let ak = nil | |
278 | + | func al (am,an) = if ((an >= aj)) | |
279 | + | then am | |
280 | + | else aE(am, ai[an]) | |
283 | 281 | ||
284 | - | func | |
285 | - | then | |
282 | + | func ao (am,an) = if ((an >= aj)) | |
283 | + | then am | |
286 | 284 | else throw("List size exceeds 50") | |
287 | 285 | ||
288 | - | | |
286 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 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) | |
289 | 287 | } | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | func | |
295 | - | then | |
296 | - | else | |
288 | + | let aN = { | |
289 | + | let ai = aC | |
290 | + | let aj = size(ai) | |
291 | + | let ak = nil | |
292 | + | func aq (am,an) = if ((an >= aj)) | |
293 | + | then am | |
294 | + | else aG(am, ai[an]) | |
297 | 295 | ||
298 | - | func | |
299 | - | then | |
296 | + | func ar (am,an) = if ((an >= aj)) | |
297 | + | then am | |
300 | 298 | else throw("List size exceeds 50") | |
301 | 299 | ||
302 | - | | |
300 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ak, 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) | |
303 | 301 | } | |
304 | - | ( | |
302 | + | (aM ++ aN) | |
305 | 303 | } | |
306 | 304 | else throw("Only admin can call this function") | |
307 | 305 | ||
308 | 306 | ||
309 | 307 | ||
310 | - | @Callable( | |
311 | - | func issueToken (aP,aQ,aR | |
312 | - | then [Issue(aP, aQ, aR | |
308 | + | @Callable(U) | |
309 | + | func issueToken (aO,aP,aQ,aR) = if (containsElement([d, e, f], U.callerPublicKey)) | |
310 | + | then [Issue(aO, aP, aQ, aR, true, unit, 0)] | |
313 | 311 | else throw("Only admin can call this function") | |
314 | 312 | ||
315 | 313 | ||
316 | 314 | ||
317 | - | @Callable( | |
315 | + | @Callable(aS) | |
318 | 316 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
319 | 317 | ||
320 | 318 | ||
321 | 319 | ||
322 | - | @Callable( | |
323 | - | func deposit ( | |
320 | + | @Callable(U) | |
321 | + | func deposit (s) = if ((size(U.payments) != 1)) | |
324 | 322 | then throw("One attached payment expected") | |
325 | 323 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
324 | + | let F = U.payments[0].amount | |
325 | + | let G = U.payments[0].assetId | |
326 | + | let aT = { | |
327 | + | let v = G | |
328 | + | if ($isInstanceOf(v, "ByteVector")) | |
331 | 329 | then { | |
332 | - | let | |
333 | - | toBase58String( | |
330 | + | let aU = v | |
331 | + | toBase58String(aU) | |
334 | 332 | } | |
335 | 333 | else throw("Match error") | |
336 | 334 | } | |
337 | - | if ((0 >= | |
338 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
335 | + | if ((0 >= F)) | |
336 | + | then throw(("Deposit amount must be positive. Actual: " + toString(F))) | |
339 | 337 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
338 | + | let N = toString(U.caller) | |
339 | + | let aV = x(s) | |
340 | + | let aW = { | |
341 | + | let v = getString((s + "_liquidity_token")) | |
342 | + | if ($isInstanceOf(v, "String")) | |
345 | 343 | then { | |
346 | - | let | |
347 | - | | |
344 | + | let y = v | |
345 | + | y | |
348 | 346 | } | |
349 | 347 | else { | |
350 | - | let | |
348 | + | let z = v | |
351 | 349 | throw("You try to deposit on unsupported pool") | |
352 | 350 | } | |
353 | 351 | } | |
354 | - | if (s | |
352 | + | if (r(s)) | |
355 | 353 | then { | |
356 | - | let | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
354 | + | let aX = { | |
355 | + | let v = assetInfo(fromBase58String(aW)) | |
356 | + | if ($isInstanceOf(v, "Asset")) | |
359 | 357 | then { | |
360 | - | let | |
361 | - | | |
358 | + | let K = v | |
359 | + | K.decimals | |
362 | 360 | } | |
363 | 361 | else throw("Can't find asset") | |
364 | 362 | } | |
365 | - | if (( | |
363 | + | if ((aW != aT)) | |
366 | 364 | then throw("You attached wrong liquidity token from Swop.fi") | |
367 | 365 | else { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | [Reissue(fromBase58String( | |
366 | + | let aY = Q(s, N) | |
367 | + | let aZ = R(aY) | |
368 | + | let ba = ((F - fraction(F, 1, a, HALFUP)) - fraction(F, 1, b, HALFUP)) | |
369 | + | let L = E(ba, fromBase58String(aV), s, n) | |
370 | + | let bb = (F - ba) | |
371 | + | let bc = (aZ + ba) | |
372 | + | let bd = (((((s + "_") + N) + "_") + toBase58String(U.transactionId)) + "_locked") | |
373 | + | [Reissue(fromBase58String(aV), L, true), ScriptTransfer(U.caller, L, fromBase58String(aV)), ScriptTransfer(h, bb, fromBase58String(aW)), IntegerEntry(bd, ba), IntegerEntry(aY, bc)] | |
376 | 374 | } | |
377 | 375 | } | |
378 | 376 | else throw("Pool is not active!") | |
381 | 379 | ||
382 | 380 | ||
383 | 381 | ||
384 | - | @Callable( | |
385 | - | func initWithdraw ( | |
382 | + | @Callable(U) | |
383 | + | func initWithdraw (s) = if ((size(U.payments) != 2)) | |
386 | 384 | then throw("Two attached payment expected") | |
387 | 385 | else { | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | if (( | |
392 | - | then throw("You | |
386 | + | let F = U.payments[0].amount | |
387 | + | let G = U.payments[0].assetId | |
388 | + | let be = U.payments[1].amount | |
389 | + | if ((be != m)) | |
390 | + | then throw("You added wrong commission") | |
393 | 391 | else { | |
394 | - | let | |
395 | - | let | |
396 | - | if ($isInstanceOf( | |
392 | + | let aT = { | |
393 | + | let v = G | |
394 | + | if ($isInstanceOf(v, "ByteVector")) | |
397 | 395 | then { | |
398 | - | let | |
399 | - | toBase58String( | |
396 | + | let aU = v | |
397 | + | toBase58String(aU) | |
400 | 398 | } | |
401 | 399 | else throw("Match error") | |
402 | 400 | } | |
403 | - | let | |
404 | - | let | |
405 | - | if ($isInstanceOf( | |
401 | + | let bf = { | |
402 | + | let v = G | |
403 | + | if ($isInstanceOf(v, "ByteVector")) | |
406 | 404 | then { | |
407 | - | let | |
408 | - | | |
405 | + | let aU = v | |
406 | + | aU | |
409 | 407 | } | |
410 | 408 | else throw("Match error") | |
411 | 409 | } | |
412 | - | if ((0 >= | |
413 | - | then throw(("Withraw amount must be positive. Actual: " + toString( | |
414 | - | else if (s | |
410 | + | if ((0 >= F)) | |
411 | + | then throw(("Withraw amount must be positive. Actual: " + toString(F))) | |
412 | + | else if (r(s)) | |
415 | 413 | then { | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (!(( | |
414 | + | let N = toString(U.caller) | |
415 | + | let aY = Q(s, N) | |
416 | + | let aZ = R(aY) | |
417 | + | let bg = assetBalance(U.caller, bf) | |
418 | + | let bh = (bg + F) | |
419 | + | let bi = E(bh, fromBase58String(aT), s, o) | |
420 | + | let L = E(F, fromBase58String(aT), s, o) | |
421 | + | let bj = (bi - aZ) | |
422 | + | if (!((bj >= L))) | |
425 | 423 | then throw("You have a locked tokens. Wait a time for unlock or try to withdrraw less") | |
426 | 424 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | [IntegerEntry(bl, | |
425 | + | let bk = M(s, N, toBase58String(U.transactionId)) | |
426 | + | let bl = P(s, N, toBase58String(U.transactionId)) | |
427 | + | [IntegerEntry(bk, L), IntegerEntry(bl, F), ScriptTransfer(addressFromPublicKey(g), 500000, unit)] | |
430 | 428 | } | |
431 | 429 | } | |
432 | 430 | else throw("Pool is not active!") | |
435 | 433 | ||
436 | 434 | ||
437 | 435 | ||
438 | - | @Callable( | |
439 | - | func withdraw ( | |
436 | + | @Callable(U) | |
437 | + | func withdraw (s,N,O) = if (containsElement([d, e, f], U.callerPublicKey)) | |
440 | 438 | then { | |
441 | - | let bl = N(t, O, P) | |
442 | - | let bm = Q(t, O, P) | |
439 | + | let bk = M(s, N, O) | |
440 | + | let bl = P(s, N, O) | |
441 | + | let bm = getIntegerValue(this, bk) | |
443 | 442 | let bn = getIntegerValue(this, bl) | |
444 | - | let bo = getIntegerValue(this, bm) | |
445 | - | let aW = y(t) | |
446 | - | let aX = B(t) | |
447 | - | [Burn(fromBase58String(aW), bo), ScriptTransfer(V.caller, bn, fromBase58String(aX)), DeleteEntry(bl), DeleteEntry(bm)] | |
443 | + | let aV = x(s) | |
444 | + | let aW = A(s) | |
445 | + | [Burn(fromBase58String(aV), bn), ScriptTransfer(Address(base58'userAddress'), bm, fromBase58String(aW)), DeleteEntry(bk), DeleteEntry(bl)] | |
448 | 446 | } | |
449 | 447 | else throw("Only admin can call this function") | |
450 | 448 | ||
451 | 449 | ||
452 | 450 | ||
453 | - | @Callable( | |
454 | - | func poolActivating ( | |
451 | + | @Callable(U) | |
452 | + | func poolActivating (V,bo) = if (containsElement([d, e, f], U.callerPublicKey)) | |
455 | 453 | then { | |
456 | - | func | |
457 | - | let | |
458 | - | let | |
459 | - | BooleanEntry(( | |
454 | + | func ag (aa,s) = { | |
455 | + | let ac = value(indexOf(V, s)) | |
456 | + | let bp = bo[ac] | |
457 | + | BooleanEntry((s + "_active"), bp) :: aa | |
460 | 458 | } | |
461 | 459 | ||
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | func | |
467 | - | then | |
468 | - | else | |
460 | + | let ay = { | |
461 | + | let ai = V | |
462 | + | let aj = size(ai) | |
463 | + | let ak = nil | |
464 | + | func al (am,an) = if ((an >= aj)) | |
465 | + | then am | |
466 | + | else ag(am, ai[an]) | |
469 | 467 | ||
470 | - | func | |
471 | - | then | |
468 | + | func ao (am,an) = if ((an >= aj)) | |
469 | + | then am | |
472 | 470 | else throw("List size exceeds 100") | |
473 | 471 | ||
474 | - | | |
472 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 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) | |
475 | 473 | } | |
476 | - | | |
474 | + | ay | |
477 | 475 | } | |
478 | 476 | else throw("Only admin can call this function") | |
479 | 477 | ||
480 | 478 | ||
481 | 479 | ||
482 | - | @Callable( | |
483 | - | func deleteUnsedData () = if (containsElement([d, e, f], | |
484 | - | then [IntegerEntry(" | |
480 | + | @Callable(U) | |
481 | + | func deleteUnsedData () = if (containsElement([d, e, f], U.callerPublicKey)) | |
482 | + | then [DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_2iUVKCy4zUvgBgg7AccyqKfBCYhpoVEV7ECm9NXLZBP4_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_4nXGTM9Zb3oH2fmZoz3S4moW9Lr2YXawD78BSEvCHCaN_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_At3WGKCiCDn9Kb78PK9tJ9EStbcwGSFLCPXBvFvoGboo_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Cb1mTLJAZmEWirA5FE8UW7eWkrMWGgjTGRdHA2f9d27U_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_FeDsjtZLp74u6G6CptoipdRtQxzwjM1WRufYJUw34tcF_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_HArfuQBZMynxzdeBg4wqsM72yspQBhHq7DiDqEuakJ3j_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_SWOP_last_claimed_amount"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_available_SWOP"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest_height"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Avgjf7CwPhnbAZXG8eDmCsVa8339VfRALRJgsSbJtskc_locked"), IntegerEntry("3PNVFWopwCD9CgGXkpYWEY94oQ5XCAEXBmQ_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_G8AxdbSPvKwsxvwEFVFxE1wAW2CrGsAQwy5diyiSJQc1_locked"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), IntegerEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0)] | |
485 | 483 | else throw("Only admin can call this function") | |
486 | 484 | ||
487 | 485 | ||
488 | - | @Verifier( | |
489 | - | func | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
486 | + | @Verifier(bq) | |
487 | + | func br () = { | |
488 | + | let v = bq | |
489 | + | if ($isInstanceOf(v, "InvokeScriptTransaction")) | |
492 | 490 | then { | |
493 | - | let | |
494 | - | let | |
495 | - | then if (if (( | |
491 | + | let bs = v | |
492 | + | let bt = if ((bs.dApp == j)) | |
493 | + | then if (if ((bs.function == "lockShareTokens")) | |
496 | 494 | then true | |
497 | - | else ( | |
495 | + | else (bs.function == "claim")) | |
498 | 496 | then true | |
499 | - | else ( | |
497 | + | else (bs.function == "withdrawShareTokens") | |
500 | 498 | else false | |
501 | - | let | |
502 | - | then if (( | |
499 | + | let bu = if ((bs.dApp == i)) | |
500 | + | then if (if ((bs.function == "lockSWOP")) | |
503 | 501 | then true | |
504 | - | else (bt.function == "withdrawSWOP") | |
502 | + | else (bs.function == "withdrawSWOP")) | |
503 | + | then true | |
504 | + | else (bs.function == "claimAndStakeSWOP") | |
505 | 505 | else false | |
506 | - | let | |
507 | - | let | |
508 | - | if ($isInstanceOf( | |
506 | + | let bv = { | |
507 | + | let bw = bs.dApp | |
508 | + | if ($isInstanceOf(bw, "Address")) | |
509 | 509 | then { | |
510 | - | let | |
511 | - | toString( | |
510 | + | let bx = bw | |
511 | + | toString(bx) | |
512 | 512 | } | |
513 | 513 | else throw("Transaction must have only address") | |
514 | 514 | } | |
515 | - | let | |
516 | - | then containsElement( | |
515 | + | let by = if (r(bv)) | |
516 | + | then containsElement(q, bs.function) | |
517 | 517 | else false | |
518 | - | let | |
518 | + | let bz = if (if (if (sigVerify(bq.bodyBytes, bq.proofs[0], d)) | |
519 | 519 | then true | |
520 | - | else sigVerify( | |
520 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], e)) | |
521 | 521 | then true | |
522 | - | else sigVerify( | |
522 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], g)) | |
523 | 523 | then true | |
524 | - | else sigVerify( | |
525 | - | if (if (if ( | |
524 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], bq.senderPublicKey) | |
525 | + | if (if (if (bt) | |
526 | 526 | then true | |
527 | - | else | |
527 | + | else by) | |
528 | 528 | then true | |
529 | - | else | |
530 | - | then | |
529 | + | else bu) | |
530 | + | then bz | |
531 | 531 | else false | |
532 | 532 | } | |
533 | 533 | else { | |
534 | - | let | |
534 | + | let bA = if (sigVerify(bq.bodyBytes, bq.proofs[0], d)) | |
535 | 535 | then 1 | |
536 | 536 | else 0 | |
537 | - | let | |
537 | + | let bB = if (sigVerify(bq.bodyBytes, bq.proofs[1], e)) | |
538 | 538 | then 1 | |
539 | 539 | else 0 | |
540 | - | let | |
540 | + | let bC = if (sigVerify(bq.bodyBytes, bq.proofs[2], f)) | |
541 | 541 | then 1 | |
542 | 542 | else 0 | |
543 | - | (((bB + bC | |
543 | + | (((bA + bB) + bC) >= 2) | |
544 | 544 | } | |
545 | 545 | } | |
546 | 546 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | let c = 10000 | |
9 | 9 | ||
10 | 10 | let d = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
11 | 11 | ||
12 | 12 | let e = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt' | |
13 | 13 | ||
14 | 14 | let f = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | - | let g = base58' | |
16 | + | let g = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
17 | 17 | ||
18 | - | let h = Address(base58' | |
18 | + | let h = Address(base58'3PKoJ7GHwmidFPX6NiqKZdq8Zj2auPMNPnE') | |
19 | 19 | ||
20 | 20 | let i = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let j = Address(base58' | |
22 | + | let j = Address(base58'3P73HDkPqG15nLXevjCbmXtazHYTZbpPoPw') | |
23 | 23 | ||
24 | 24 | let k = "SWOP_id" | |
25 | 25 | ||
26 | 26 | let l = fromBase58String(getStringValue(j, k)) | |
27 | 27 | ||
28 | 28 | let m = 1400000 | |
29 | 29 | ||
30 | 30 | let n = "deposit" | |
31 | 31 | ||
32 | 32 | let o = "withdraw" | |
33 | 33 | ||
34 | 34 | let p = "_service_token_total_locked" | |
35 | 35 | ||
36 | - | let q = [" | |
36 | + | let q = ["replenishWithTwoTokens", "exchange", "replenishWithOneToken"] | |
37 | 37 | ||
38 | - | let r = ["replenishWithTwoTokens", "exchange"] | |
39 | - | ||
40 | - | func s (t) = { | |
41 | - | let u = (t + "_active") | |
42 | - | let v = { | |
43 | - | let w = getBoolean(this, u) | |
44 | - | if ($isInstanceOf(w, "Boolean")) | |
38 | + | func r (s) = { | |
39 | + | let t = (s + "_active") | |
40 | + | let u = { | |
41 | + | let v = getBoolean(this, t) | |
42 | + | if ($isInstanceOf(v, "Boolean")) | |
45 | 43 | then { | |
46 | - | let | |
47 | - | | |
44 | + | let w = v | |
45 | + | w | |
48 | 46 | } | |
49 | 47 | else throw("Pool is not active!") | |
50 | 48 | } | |
51 | - | | |
49 | + | u | |
52 | 50 | } | |
53 | 51 | ||
54 | 52 | ||
55 | - | func | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
53 | + | func x (s) = { | |
54 | + | let v = getString((s + "_service_token")) | |
55 | + | if ($isInstanceOf(v, "String")) | |
58 | 56 | then { | |
59 | - | let | |
60 | - | | |
57 | + | let y = v | |
58 | + | y | |
61 | 59 | } | |
62 | 60 | else { | |
63 | - | let | |
61 | + | let z = v | |
64 | 62 | throw("You try to deposit on unsupported pool") | |
65 | 63 | } | |
66 | 64 | } | |
67 | 65 | ||
68 | 66 | ||
69 | - | func | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
67 | + | func A (s) = { | |
68 | + | let v = getString((s + "_liquidity_token")) | |
69 | + | if ($isInstanceOf(v, "String")) | |
72 | 70 | then { | |
73 | - | let | |
74 | - | | |
71 | + | let y = v | |
72 | + | y | |
75 | 73 | } | |
76 | 74 | else { | |
77 | - | let | |
75 | + | let z = v | |
78 | 76 | throw("You try to withdraw from unsupported pool") | |
79 | 77 | } | |
80 | 78 | } | |
81 | 79 | ||
82 | 80 | ||
83 | - | func | |
81 | + | func B (C) = if ((C == toBase58String(l))) | |
84 | 82 | then { | |
85 | - | let | |
86 | - | if ($isInstanceOf( | |
83 | + | let v = getInteger(i, (toString(this) + "_SWOP_amount")) | |
84 | + | if ($isInstanceOf(v, "Int")) | |
87 | 85 | then { | |
88 | - | let | |
89 | - | | |
86 | + | let D = v | |
87 | + | D | |
90 | 88 | } | |
91 | - | else if ($isInstanceOf( | |
89 | + | else if ($isInstanceOf(v, "Unit")) | |
92 | 90 | then { | |
93 | - | let | |
91 | + | let z = v | |
94 | 92 | 0 | |
95 | 93 | } | |
96 | 94 | else throw("Match error") | |
97 | 95 | } | |
98 | 96 | else { | |
99 | - | let | |
100 | - | if ($isInstanceOf( | |
97 | + | let v = getInteger(j, (((C + "_") + toString(this)) + "_share_tokens_locked")) | |
98 | + | if ($isInstanceOf(v, "Int")) | |
101 | 99 | then { | |
102 | - | let | |
103 | - | | |
100 | + | let D = v | |
101 | + | D | |
104 | 102 | } | |
105 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(v, "Unit")) | |
106 | 104 | then { | |
107 | - | let | |
105 | + | let z = v | |
108 | 106 | 0 | |
109 | 107 | } | |
110 | 108 | else throw("Match error") | |
111 | 109 | } | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | if ($isInstanceOf( | |
112 | + | func E (F,G,C,H) = { | |
113 | + | let I = B(C) | |
114 | + | let J = { | |
115 | + | let v = assetInfo(G) | |
116 | + | if ($isInstanceOf(v, "Asset")) | |
119 | 117 | then { | |
120 | - | let | |
121 | - | | |
118 | + | let K = v | |
119 | + | K.quantity | |
122 | 120 | } | |
123 | 121 | else throw("Can't find asset") | |
124 | 122 | } | |
125 | - | if (( | |
126 | - | then | |
127 | - | else if (( | |
123 | + | if ((I == 0)) | |
124 | + | then F | |
125 | + | else if ((H == n)) | |
128 | 126 | then { | |
129 | - | let | |
130 | - | | |
127 | + | let L = fraction(F, J, I) | |
128 | + | L | |
131 | 129 | } | |
132 | 130 | else { | |
133 | - | let | |
134 | - | | |
131 | + | let L = fraction(F, I, J) | |
132 | + | L | |
135 | 133 | } | |
136 | 134 | } | |
137 | 135 | ||
138 | 136 | ||
139 | - | func | |
137 | + | func M (s,N,O) = (((((s + "_") + N) + "_") + O) + "_withdraw") | |
140 | 138 | ||
141 | 139 | ||
142 | - | func | |
140 | + | func P (s,N,O) = (((((s + "_") + N) + "_") + O) + "_withdraw_burn_token") | |
143 | 141 | ||
144 | 142 | ||
145 | - | func | |
143 | + | func Q (s,N) = (((s + "_") + N) + p) | |
146 | 144 | ||
147 | 145 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ($isInstanceOf( | |
146 | + | func R (S) = { | |
147 | + | let v = getInteger(S) | |
148 | + | if ($isInstanceOf(v, "Int")) | |
151 | 149 | then { | |
152 | - | let | |
153 | - | | |
150 | + | let T = v | |
151 | + | T | |
154 | 152 | } | |
155 | 153 | else { | |
156 | - | let | |
154 | + | let z = v | |
157 | 155 | 0 | |
158 | 156 | } | |
159 | 157 | } | |
160 | 158 | ||
161 | 159 | ||
162 | - | @Callable( | |
163 | - | func addPools (W,X,Y | |
160 | + | @Callable(U) | |
161 | + | func addPools (V,W,X,Y) = if (containsElement([d, e, f], U.callerPublicKey)) | |
164 | 162 | then { | |
165 | - | func | |
163 | + | func Z (aa,s) = IntegerEntry((s + "_asset_balance"), 0) :: aa | |
166 | 164 | ||
167 | - | func | |
168 | - | let | |
169 | - | let | |
170 | - | StringEntry(( | |
165 | + | func ab (aa,s) = { | |
166 | + | let ac = value(indexOf(V, s)) | |
167 | + | let ad = W[ac] | |
168 | + | StringEntry((s + "_liquidity_token"), ad) :: aa | |
171 | 169 | } | |
172 | 170 | ||
173 | - | func | |
174 | - | let | |
175 | - | let | |
176 | - | StringEntry(( | |
171 | + | func ae (aa,s) = { | |
172 | + | let ac = value(indexOf(V, s)) | |
173 | + | let ad = X[ac] | |
174 | + | StringEntry((s + "_service_token"), ad) :: aa | |
177 | 175 | } | |
178 | 176 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | IntegerEntry(( | |
177 | + | func af (aa,s) = { | |
178 | + | let ac = value(indexOf(V, s)) | |
179 | + | let ad = Y[ac] | |
180 | + | IntegerEntry((s + "_service_token_decimal"), ad) :: aa | |
183 | 181 | } | |
184 | 182 | ||
185 | - | func | |
183 | + | func ag (aa,s) = BooleanEntry((s + "_active"), true) :: aa | |
186 | 184 | ||
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | func | |
192 | - | then | |
193 | - | else | |
185 | + | let ah = { | |
186 | + | let ai = V | |
187 | + | let aj = size(ai) | |
188 | + | let ak = nil | |
189 | + | func al (am,an) = if ((an >= aj)) | |
190 | + | then am | |
191 | + | else Z(am, ai[an]) | |
194 | 192 | ||
195 | - | func | |
196 | - | then | |
193 | + | func ao (am,an) = if ((an >= aj)) | |
194 | + | then am | |
197 | 195 | else throw("List size exceeds 20") | |
198 | 196 | ||
199 | - | | |
197 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
200 | 198 | } | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | func | |
206 | - | then | |
207 | - | else | |
199 | + | let ap = { | |
200 | + | let ai = V | |
201 | + | let aj = size(ai) | |
202 | + | let ak = nil | |
203 | + | func aq (am,an) = if ((an >= aj)) | |
204 | + | then am | |
205 | + | else ab(am, ai[an]) | |
208 | 206 | ||
209 | - | func | |
210 | - | then | |
207 | + | func ar (am,an) = if ((an >= aj)) | |
208 | + | then am | |
211 | 209 | else throw("List size exceeds 20") | |
212 | 210 | ||
213 | - | | |
211 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
214 | 212 | } | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | func | |
220 | - | then | |
221 | - | else | |
213 | + | let as = { | |
214 | + | let ai = V | |
215 | + | let aj = size(ai) | |
216 | + | let ak = nil | |
217 | + | func at (am,an) = if ((an >= aj)) | |
218 | + | then am | |
219 | + | else ae(am, ai[an]) | |
222 | 220 | ||
223 | - | func | |
224 | - | then | |
221 | + | func au (am,an) = if ((an >= aj)) | |
222 | + | then am | |
225 | 223 | else throw("List size exceeds 20") | |
226 | 224 | ||
227 | - | | |
225 | + | au(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
228 | 226 | } | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | func | |
234 | - | then | |
235 | - | else | |
227 | + | let av = { | |
228 | + | let ai = V | |
229 | + | let aj = size(ai) | |
230 | + | let ak = nil | |
231 | + | func aw (am,an) = if ((an >= aj)) | |
232 | + | then am | |
233 | + | else af(am, ai[an]) | |
236 | 234 | ||
237 | - | func | |
238 | - | then | |
235 | + | func ax (am,an) = if ((an >= aj)) | |
236 | + | then am | |
239 | 237 | else throw("List size exceeds 20") | |
240 | 238 | ||
241 | - | | |
239 | + | ax(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
242 | 240 | } | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | func | |
248 | - | then | |
249 | - | else | |
241 | + | let ay = { | |
242 | + | let ai = V | |
243 | + | let aj = size(ai) | |
244 | + | let ak = nil | |
245 | + | func az (am,an) = if ((an >= aj)) | |
246 | + | then am | |
247 | + | else ag(am, ai[an]) | |
250 | 248 | ||
251 | - | func | |
252 | - | then | |
249 | + | func aA (am,an) = if ((an >= aj)) | |
250 | + | then am | |
253 | 251 | else throw("List size exceeds 20") | |
254 | 252 | ||
255 | - | | |
253 | + | aA(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(az(ak, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
256 | 254 | } | |
257 | - | (((( | |
255 | + | ((((ah ++ ap) ++ as) ++ av) ++ ay) | |
258 | 256 | } | |
259 | 257 | else throw("Only admin can call this function") | |
260 | 258 | ||
261 | 259 | ||
262 | 260 | ||
263 | - | @Callable( | |
264 | - | func deleteDepositLockRecords (aC,aD | |
261 | + | @Callable(U) | |
262 | + | func deleteDepositLockRecords (aB,aC,aD) = if (containsElement([d, e, f], U.callerPublicKey)) | |
265 | 263 | then { | |
266 | - | func | |
264 | + | func aE (aa,aF) = DeleteEntry((aF + "_locked")) :: aa | |
267 | 265 | ||
268 | - | func | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | IntegerEntry(( | |
266 | + | func aG (aa,aH) = { | |
267 | + | let aI = value(indexOf(aC, aH)) | |
268 | + | let aJ = aD[aI] | |
269 | + | let aK = R((aH + p)) | |
270 | + | let aL = (aK - aJ) | |
271 | + | IntegerEntry((aH + p), aL) :: aa | |
274 | 272 | } | |
275 | 273 | ||
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | then | |
282 | - | else | |
274 | + | let aM = { | |
275 | + | let ai = aB | |
276 | + | let aj = size(ai) | |
277 | + | let ak = nil | |
278 | + | func al (am,an) = if ((an >= aj)) | |
279 | + | then am | |
280 | + | else aE(am, ai[an]) | |
283 | 281 | ||
284 | - | func | |
285 | - | then | |
282 | + | func ao (am,an) = if ((an >= aj)) | |
283 | + | then am | |
286 | 284 | else throw("List size exceeds 50") | |
287 | 285 | ||
288 | - | | |
286 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 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) | |
289 | 287 | } | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | func | |
295 | - | then | |
296 | - | else | |
288 | + | let aN = { | |
289 | + | let ai = aC | |
290 | + | let aj = size(ai) | |
291 | + | let ak = nil | |
292 | + | func aq (am,an) = if ((an >= aj)) | |
293 | + | then am | |
294 | + | else aG(am, ai[an]) | |
297 | 295 | ||
298 | - | func | |
299 | - | then | |
296 | + | func ar (am,an) = if ((an >= aj)) | |
297 | + | then am | |
300 | 298 | else throw("List size exceeds 50") | |
301 | 299 | ||
302 | - | | |
300 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ak, 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) | |
303 | 301 | } | |
304 | - | ( | |
302 | + | (aM ++ aN) | |
305 | 303 | } | |
306 | 304 | else throw("Only admin can call this function") | |
307 | 305 | ||
308 | 306 | ||
309 | 307 | ||
310 | - | @Callable( | |
311 | - | func issueToken (aP,aQ,aR | |
312 | - | then [Issue(aP, aQ, aR | |
308 | + | @Callable(U) | |
309 | + | func issueToken (aO,aP,aQ,aR) = if (containsElement([d, e, f], U.callerPublicKey)) | |
310 | + | then [Issue(aO, aP, aQ, aR, true, unit, 0)] | |
313 | 311 | else throw("Only admin can call this function") | |
314 | 312 | ||
315 | 313 | ||
316 | 314 | ||
317 | - | @Callable( | |
315 | + | @Callable(aS) | |
318 | 316 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
319 | 317 | ||
320 | 318 | ||
321 | 319 | ||
322 | - | @Callable( | |
323 | - | func deposit ( | |
320 | + | @Callable(U) | |
321 | + | func deposit (s) = if ((size(U.payments) != 1)) | |
324 | 322 | then throw("One attached payment expected") | |
325 | 323 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
324 | + | let F = U.payments[0].amount | |
325 | + | let G = U.payments[0].assetId | |
326 | + | let aT = { | |
327 | + | let v = G | |
328 | + | if ($isInstanceOf(v, "ByteVector")) | |
331 | 329 | then { | |
332 | - | let | |
333 | - | toBase58String( | |
330 | + | let aU = v | |
331 | + | toBase58String(aU) | |
334 | 332 | } | |
335 | 333 | else throw("Match error") | |
336 | 334 | } | |
337 | - | if ((0 >= | |
338 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
335 | + | if ((0 >= F)) | |
336 | + | then throw(("Deposit amount must be positive. Actual: " + toString(F))) | |
339 | 337 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
338 | + | let N = toString(U.caller) | |
339 | + | let aV = x(s) | |
340 | + | let aW = { | |
341 | + | let v = getString((s + "_liquidity_token")) | |
342 | + | if ($isInstanceOf(v, "String")) | |
345 | 343 | then { | |
346 | - | let | |
347 | - | | |
344 | + | let y = v | |
345 | + | y | |
348 | 346 | } | |
349 | 347 | else { | |
350 | - | let | |
348 | + | let z = v | |
351 | 349 | throw("You try to deposit on unsupported pool") | |
352 | 350 | } | |
353 | 351 | } | |
354 | - | if (s | |
352 | + | if (r(s)) | |
355 | 353 | then { | |
356 | - | let | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
354 | + | let aX = { | |
355 | + | let v = assetInfo(fromBase58String(aW)) | |
356 | + | if ($isInstanceOf(v, "Asset")) | |
359 | 357 | then { | |
360 | - | let | |
361 | - | | |
358 | + | let K = v | |
359 | + | K.decimals | |
362 | 360 | } | |
363 | 361 | else throw("Can't find asset") | |
364 | 362 | } | |
365 | - | if (( | |
363 | + | if ((aW != aT)) | |
366 | 364 | then throw("You attached wrong liquidity token from Swop.fi") | |
367 | 365 | else { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | [Reissue(fromBase58String( | |
366 | + | let aY = Q(s, N) | |
367 | + | let aZ = R(aY) | |
368 | + | let ba = ((F - fraction(F, 1, a, HALFUP)) - fraction(F, 1, b, HALFUP)) | |
369 | + | let L = E(ba, fromBase58String(aV), s, n) | |
370 | + | let bb = (F - ba) | |
371 | + | let bc = (aZ + ba) | |
372 | + | let bd = (((((s + "_") + N) + "_") + toBase58String(U.transactionId)) + "_locked") | |
373 | + | [Reissue(fromBase58String(aV), L, true), ScriptTransfer(U.caller, L, fromBase58String(aV)), ScriptTransfer(h, bb, fromBase58String(aW)), IntegerEntry(bd, ba), IntegerEntry(aY, bc)] | |
376 | 374 | } | |
377 | 375 | } | |
378 | 376 | else throw("Pool is not active!") | |
379 | 377 | } | |
380 | 378 | } | |
381 | 379 | ||
382 | 380 | ||
383 | 381 | ||
384 | - | @Callable( | |
385 | - | func initWithdraw ( | |
382 | + | @Callable(U) | |
383 | + | func initWithdraw (s) = if ((size(U.payments) != 2)) | |
386 | 384 | then throw("Two attached payment expected") | |
387 | 385 | else { | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | if (( | |
392 | - | then throw("You | |
386 | + | let F = U.payments[0].amount | |
387 | + | let G = U.payments[0].assetId | |
388 | + | let be = U.payments[1].amount | |
389 | + | if ((be != m)) | |
390 | + | then throw("You added wrong commission") | |
393 | 391 | else { | |
394 | - | let | |
395 | - | let | |
396 | - | if ($isInstanceOf( | |
392 | + | let aT = { | |
393 | + | let v = G | |
394 | + | if ($isInstanceOf(v, "ByteVector")) | |
397 | 395 | then { | |
398 | - | let | |
399 | - | toBase58String( | |
396 | + | let aU = v | |
397 | + | toBase58String(aU) | |
400 | 398 | } | |
401 | 399 | else throw("Match error") | |
402 | 400 | } | |
403 | - | let | |
404 | - | let | |
405 | - | if ($isInstanceOf( | |
401 | + | let bf = { | |
402 | + | let v = G | |
403 | + | if ($isInstanceOf(v, "ByteVector")) | |
406 | 404 | then { | |
407 | - | let | |
408 | - | | |
405 | + | let aU = v | |
406 | + | aU | |
409 | 407 | } | |
410 | 408 | else throw("Match error") | |
411 | 409 | } | |
412 | - | if ((0 >= | |
413 | - | then throw(("Withraw amount must be positive. Actual: " + toString( | |
414 | - | else if (s | |
410 | + | if ((0 >= F)) | |
411 | + | then throw(("Withraw amount must be positive. Actual: " + toString(F))) | |
412 | + | else if (r(s)) | |
415 | 413 | then { | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (!(( | |
414 | + | let N = toString(U.caller) | |
415 | + | let aY = Q(s, N) | |
416 | + | let aZ = R(aY) | |
417 | + | let bg = assetBalance(U.caller, bf) | |
418 | + | let bh = (bg + F) | |
419 | + | let bi = E(bh, fromBase58String(aT), s, o) | |
420 | + | let L = E(F, fromBase58String(aT), s, o) | |
421 | + | let bj = (bi - aZ) | |
422 | + | if (!((bj >= L))) | |
425 | 423 | then throw("You have a locked tokens. Wait a time for unlock or try to withdrraw less") | |
426 | 424 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | [IntegerEntry(bl, | |
425 | + | let bk = M(s, N, toBase58String(U.transactionId)) | |
426 | + | let bl = P(s, N, toBase58String(U.transactionId)) | |
427 | + | [IntegerEntry(bk, L), IntegerEntry(bl, F), ScriptTransfer(addressFromPublicKey(g), 500000, unit)] | |
430 | 428 | } | |
431 | 429 | } | |
432 | 430 | else throw("Pool is not active!") | |
433 | 431 | } | |
434 | 432 | } | |
435 | 433 | ||
436 | 434 | ||
437 | 435 | ||
438 | - | @Callable( | |
439 | - | func withdraw ( | |
436 | + | @Callable(U) | |
437 | + | func withdraw (s,N,O) = if (containsElement([d, e, f], U.callerPublicKey)) | |
440 | 438 | then { | |
441 | - | let bl = N(t, O, P) | |
442 | - | let bm = Q(t, O, P) | |
439 | + | let bk = M(s, N, O) | |
440 | + | let bl = P(s, N, O) | |
441 | + | let bm = getIntegerValue(this, bk) | |
443 | 442 | let bn = getIntegerValue(this, bl) | |
444 | - | let bo = getIntegerValue(this, bm) | |
445 | - | let aW = y(t) | |
446 | - | let aX = B(t) | |
447 | - | [Burn(fromBase58String(aW), bo), ScriptTransfer(V.caller, bn, fromBase58String(aX)), DeleteEntry(bl), DeleteEntry(bm)] | |
443 | + | let aV = x(s) | |
444 | + | let aW = A(s) | |
445 | + | [Burn(fromBase58String(aV), bn), ScriptTransfer(Address(base58'userAddress'), bm, fromBase58String(aW)), DeleteEntry(bk), DeleteEntry(bl)] | |
448 | 446 | } | |
449 | 447 | else throw("Only admin can call this function") | |
450 | 448 | ||
451 | 449 | ||
452 | 450 | ||
453 | - | @Callable( | |
454 | - | func poolActivating ( | |
451 | + | @Callable(U) | |
452 | + | func poolActivating (V,bo) = if (containsElement([d, e, f], U.callerPublicKey)) | |
455 | 453 | then { | |
456 | - | func | |
457 | - | let | |
458 | - | let | |
459 | - | BooleanEntry(( | |
454 | + | func ag (aa,s) = { | |
455 | + | let ac = value(indexOf(V, s)) | |
456 | + | let bp = bo[ac] | |
457 | + | BooleanEntry((s + "_active"), bp) :: aa | |
460 | 458 | } | |
461 | 459 | ||
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | func | |
467 | - | then | |
468 | - | else | |
460 | + | let ay = { | |
461 | + | let ai = V | |
462 | + | let aj = size(ai) | |
463 | + | let ak = nil | |
464 | + | func al (am,an) = if ((an >= aj)) | |
465 | + | then am | |
466 | + | else ag(am, ai[an]) | |
469 | 467 | ||
470 | - | func | |
471 | - | then | |
468 | + | func ao (am,an) = if ((an >= aj)) | |
469 | + | then am | |
472 | 470 | else throw("List size exceeds 100") | |
473 | 471 | ||
474 | - | | |
472 | + | ao(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(al(ak, 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) | |
475 | 473 | } | |
476 | - | | |
474 | + | ay | |
477 | 475 | } | |
478 | 476 | else throw("Only admin can call this function") | |
479 | 477 | ||
480 | 478 | ||
481 | 479 | ||
482 | - | @Callable( | |
483 | - | func deleteUnsedData () = if (containsElement([d, e, f], | |
484 | - | then [IntegerEntry(" | |
480 | + | @Callable(U) | |
481 | + | func deleteUnsedData () = if (containsElement([d, e, f], U.callerPublicKey)) | |
482 | + | then [DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_2iUVKCy4zUvgBgg7AccyqKfBCYhpoVEV7ECm9NXLZBP4_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_4nXGTM9Zb3oH2fmZoz3S4moW9Lr2YXawD78BSEvCHCaN_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_At3WGKCiCDn9Kb78PK9tJ9EStbcwGSFLCPXBvFvoGboo_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Cb1mTLJAZmEWirA5FE8UW7eWkrMWGgjTGRdHA2f9d27U_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_FeDsjtZLp74u6G6CptoipdRtQxzwjM1WRufYJUw34tcF_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_HArfuQBZMynxzdeBg4wqsM72yspQBhHq7DiDqEuakJ3j_locked"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_SWOP_last_claimed_amount"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_available_SWOP"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_current_reward"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest"), DeleteEntry("3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX_last_interest_height"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_Avgjf7CwPhnbAZXG8eDmCsVa8339VfRALRJgsSbJtskc_locked"), IntegerEntry("3PNVFWopwCD9CgGXkpYWEY94oQ5XCAEXBmQ_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3P5uZuGjRX7kdrCbvm3isWNvSiHQzpvWGPH_asset_balance"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_G8AxdbSPvKwsxvwEFVFxE1wAW2CrGsAQwy5diyiSJQc1_locked"), DeleteEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_asset_balance"), IntegerEntry("Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT_3PDjJPe1PxqwjJKa7uSkX367CFBtVAVypWW_service_token_total_locked", 0)] | |
485 | 483 | else throw("Only admin can call this function") | |
486 | 484 | ||
487 | 485 | ||
488 | - | @Verifier( | |
489 | - | func | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
486 | + | @Verifier(bq) | |
487 | + | func br () = { | |
488 | + | let v = bq | |
489 | + | if ($isInstanceOf(v, "InvokeScriptTransaction")) | |
492 | 490 | then { | |
493 | - | let | |
494 | - | let | |
495 | - | then if (if (( | |
491 | + | let bs = v | |
492 | + | let bt = if ((bs.dApp == j)) | |
493 | + | then if (if ((bs.function == "lockShareTokens")) | |
496 | 494 | then true | |
497 | - | else ( | |
495 | + | else (bs.function == "claim")) | |
498 | 496 | then true | |
499 | - | else ( | |
497 | + | else (bs.function == "withdrawShareTokens") | |
500 | 498 | else false | |
501 | - | let | |
502 | - | then if (( | |
499 | + | let bu = if ((bs.dApp == i)) | |
500 | + | then if (if ((bs.function == "lockSWOP")) | |
503 | 501 | then true | |
504 | - | else (bt.function == "withdrawSWOP") | |
502 | + | else (bs.function == "withdrawSWOP")) | |
503 | + | then true | |
504 | + | else (bs.function == "claimAndStakeSWOP") | |
505 | 505 | else false | |
506 | - | let | |
507 | - | let | |
508 | - | if ($isInstanceOf( | |
506 | + | let bv = { | |
507 | + | let bw = bs.dApp | |
508 | + | if ($isInstanceOf(bw, "Address")) | |
509 | 509 | then { | |
510 | - | let | |
511 | - | toString( | |
510 | + | let bx = bw | |
511 | + | toString(bx) | |
512 | 512 | } | |
513 | 513 | else throw("Transaction must have only address") | |
514 | 514 | } | |
515 | - | let | |
516 | - | then containsElement( | |
515 | + | let by = if (r(bv)) | |
516 | + | then containsElement(q, bs.function) | |
517 | 517 | else false | |
518 | - | let | |
518 | + | let bz = if (if (if (sigVerify(bq.bodyBytes, bq.proofs[0], d)) | |
519 | 519 | then true | |
520 | - | else sigVerify( | |
520 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], e)) | |
521 | 521 | then true | |
522 | - | else sigVerify( | |
522 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], g)) | |
523 | 523 | then true | |
524 | - | else sigVerify( | |
525 | - | if (if (if ( | |
524 | + | else sigVerify(bq.bodyBytes, bq.proofs[0], bq.senderPublicKey) | |
525 | + | if (if (if (bt) | |
526 | 526 | then true | |
527 | - | else | |
527 | + | else by) | |
528 | 528 | then true | |
529 | - | else | |
530 | - | then | |
529 | + | else bu) | |
530 | + | then bz | |
531 | 531 | else false | |
532 | 532 | } | |
533 | 533 | else { | |
534 | - | let | |
534 | + | let bA = if (sigVerify(bq.bodyBytes, bq.proofs[0], d)) | |
535 | 535 | then 1 | |
536 | 536 | else 0 | |
537 | - | let | |
537 | + | let bB = if (sigVerify(bq.bodyBytes, bq.proofs[1], e)) | |
538 | 538 | then 1 | |
539 | 539 | else 0 | |
540 | - | let | |
540 | + | let bC = if (sigVerify(bq.bodyBytes, bq.proofs[2], f)) | |
541 | 541 | then 1 | |
542 | 542 | else 0 | |
543 | - | (((bB + bC | |
543 | + | (((bA + bB) + bC) >= 2) | |
544 | 544 | } | |
545 | 545 | } | |
546 | 546 |
github/deemru/w8io/169f3d6 231.98 ms ◑