tx · 8Wt8G9Y4s7vAsviL4koNi23THBRxGVaCoFQLc7cAHubF 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.01.15 13:26 [1879956] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "8Wt8G9Y4s7vAsviL4koNi23THBRxGVaCoFQLc7cAHubF", "fee": 1400000, "feeAssetId": null, "timestamp": 1642242523037, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "2czujt9RezUoRhpw9aEZMnMsGjuV7jGyUwReHgBT5Yn3By6dTjPRmg6qoYR2ZLyRqgG7uxswRSBpkXVZNi9s9PUk", "5X5so2aGtLPPBEUhrmLMhNF6NbMNAdC8HN6LmButvLj4x7uqyqVRUTYpz7X68DchKPcmF8xGGh9KRmbfR6oVc3cM", "45mNMSYjqAYZy9zmXmejxtTEMZJkEkzJYMD1bTeCn1tJYBoVKnc9RoH3MEm7kW5oRqF1JuKRXiV31VpYXZ9C4HjT" ], "script": "base64:AAIFAAAAAAAAB9IIAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIECgIYFBoTCgFBEg50cmFuc2ZlclRvVXNlchoLCgFCEgZhbW91bnQaDAoBQxIHYXNzZXRJZBoJCgFEEgR0eXBlGhUKAUUSEGRBcHBTdGFrZWRUb2tlbnMaFAoBRhIPYXNzZXRJZFF1YW50aXR5GgoKAUcSBWFzc2V0GhkKAUgSFHRyYW5zZmVyVG9Vc2VyQW1vdW50GgYKAUkSAWkaCgoBShIFcG9vbHMaFAoBSxIPbGlxdWlkaXR5VG9rZW5zGhIKAUwSDXNlcnZpY2VUb2tlbnMaGwoBTRIWbGlxdWlkaXR5VG9rZW5EZWNpbWFscxoVCgFOEhBnZW5lcmF0ZVBvb2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entComplexity": 0 } View: original | compacted Prev: 9geSeobvSjdTMtjczoKTUS2UWBcNiv6GjXEqDY5HPqq6 Next: 7JGivjj9bn4Snc1ZcCjCHw2xVgVY8vRwf1eHoPqicUd Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | let h = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL') | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "deposit" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = "withdraw" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
25 | 25 | ||
26 | - | func l (m) = { | |
27 | - | let n = (m + "_active") | |
28 | - | let o = { | |
29 | - | let p = getBoolean(this, n) | |
30 | - | if ($isInstanceOf(p, "Boolean")) | |
26 | + | let l = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
27 | + | ||
28 | + | let m = ["replenishWithTwoTokens", "exchange"] | |
29 | + | ||
30 | + | func n (o) = { | |
31 | + | let p = (o + "_active") | |
32 | + | let q = { | |
33 | + | let r = getBoolean(this, p) | |
34 | + | if ($isInstanceOf(r, "Boolean")) | |
31 | 35 | then { | |
32 | - | let | |
33 | - | | |
36 | + | let s = r | |
37 | + | s | |
34 | 38 | } | |
35 | 39 | else throw("Pool is not active!") | |
36 | 40 | } | |
37 | - | | |
41 | + | q | |
38 | 42 | } | |
39 | 43 | ||
40 | 44 | ||
41 | - | func | |
42 | - | let | |
43 | - | if ($isInstanceOf( | |
45 | + | func t (o) = { | |
46 | + | let r = getString((o + "_service_token")) | |
47 | + | if ($isInstanceOf(r, "String")) | |
44 | 48 | then { | |
45 | - | let | |
46 | - | | |
49 | + | let u = r | |
50 | + | u | |
47 | 51 | } | |
48 | 52 | else { | |
49 | - | let | |
53 | + | let v = r | |
50 | 54 | throw("You try to deposit on unsupported pool") | |
51 | 55 | } | |
52 | 56 | } | |
53 | 57 | ||
54 | 58 | ||
55 | - | func | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
59 | + | func w (o) = { | |
60 | + | let r = getString((o + "_liquidity_token")) | |
61 | + | if ($isInstanceOf(r, "String")) | |
58 | 62 | then { | |
59 | - | let | |
60 | - | | |
63 | + | let u = r | |
64 | + | u | |
61 | 65 | } | |
62 | 66 | else { | |
63 | - | let | |
67 | + | let v = r | |
64 | 68 | throw("You try to withdraw from unsupported pool") | |
65 | 69 | } | |
66 | 70 | } | |
67 | 71 | ||
68 | 72 | ||
69 | - | func | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
73 | + | func x (y) = { | |
74 | + | let r = getInteger(k, (((y + "_") + toString(this)) + "_share_tokens_locked")) | |
75 | + | if ($isInstanceOf(r, "Int")) | |
72 | 76 | then { | |
73 | - | let | |
74 | - | | |
77 | + | let z = r | |
78 | + | z | |
75 | 79 | } | |
76 | - | else if ($isInstanceOf( | |
80 | + | else if ($isInstanceOf(r, "Unit")) | |
77 | 81 | then { | |
78 | - | let | |
82 | + | let v = r | |
79 | 83 | 0 | |
80 | 84 | } | |
81 | 85 | else throw("Match error") | |
82 | 86 | } | |
83 | 87 | ||
84 | 88 | ||
85 | - | func | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | if ($isInstanceOf( | |
89 | + | func A (B,C,y,D) = { | |
90 | + | let E = x(y) | |
91 | + | let F = { | |
92 | + | let r = assetInfo(C) | |
93 | + | if ($isInstanceOf(r, "Asset")) | |
90 | 94 | then { | |
91 | - | let | |
92 | - | | |
95 | + | let G = r | |
96 | + | G.quantity | |
93 | 97 | } | |
94 | 98 | else throw("Can't find asset") | |
95 | 99 | } | |
96 | - | if ((B == 0)) | |
97 | - | then z | |
98 | - | else { | |
99 | - | let E = fraction(z, C, B) | |
100 | - | E | |
101 | - | } | |
100 | + | if ((E == 0)) | |
101 | + | then B | |
102 | + | else if ((D == i)) | |
103 | + | then { | |
104 | + | let H = fraction(B, F, E) | |
105 | + | H | |
106 | + | } | |
107 | + | else { | |
108 | + | let H = fraction(B, E, F) | |
109 | + | H | |
110 | + | } | |
102 | 111 | } | |
103 | 112 | ||
104 | 113 | ||
105 | - | @Callable( | |
106 | - | func addPools ( | |
114 | + | @Callable(I) | |
115 | + | func addPools (J,K,L,M) = if (containsElement([d, e, f], I.callerPublicKey)) | |
107 | 116 | then { | |
108 | - | func | |
117 | + | func N (O,o) = IntegerEntry((o + "_asset_balance"), 0) :: O | |
109 | 118 | ||
110 | - | func | |
111 | - | let | |
112 | - | let | |
113 | - | StringEntry(( | |
119 | + | func P (O,o) = { | |
120 | + | let Q = value(indexOf(J, o)) | |
121 | + | let R = K[Q] | |
122 | + | StringEntry((o + "_liquidity_token"), R) :: O | |
114 | 123 | } | |
115 | 124 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | StringEntry(( | |
125 | + | func S (O,o) = { | |
126 | + | let Q = value(indexOf(J, o)) | |
127 | + | let R = L[Q] | |
128 | + | StringEntry((o + "_service_token"), R) :: O | |
120 | 129 | } | |
121 | 130 | ||
122 | - | func | |
123 | - | let | |
124 | - | let | |
125 | - | IntegerEntry(( | |
131 | + | func T (O,o) = { | |
132 | + | let Q = value(indexOf(J, o)) | |
133 | + | let R = M[Q] | |
134 | + | IntegerEntry((o + "_service_token_decimal"), R) :: O | |
126 | 135 | } | |
127 | 136 | ||
128 | - | func | |
137 | + | func U (O,o) = BooleanEntry((o + "_active"), true) :: O | |
129 | 138 | ||
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | func | |
135 | - | then | |
136 | - | else | |
139 | + | let V = { | |
140 | + | let W = J | |
141 | + | let X = size(W) | |
142 | + | let Y = nil | |
143 | + | func Z (aa,ab) = if ((ab >= X)) | |
144 | + | then aa | |
145 | + | else N(aa, W[ab]) | |
137 | 146 | ||
138 | - | func | |
139 | - | then | |
147 | + | func ac (aa,ab) = if ((ab >= X)) | |
148 | + | then aa | |
140 | 149 | else throw("List size exceeds 20") | |
141 | 150 | ||
142 | - | Z( | |
151 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
143 | 152 | } | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | func | |
149 | - | then | |
150 | - | else | |
153 | + | let ad = { | |
154 | + | let W = J | |
155 | + | let X = size(W) | |
156 | + | let Y = nil | |
157 | + | func ae (aa,ab) = if ((ab >= X)) | |
158 | + | then aa | |
159 | + | else P(aa, W[ab]) | |
151 | 160 | ||
152 | - | func | |
153 | - | then | |
161 | + | func af (aa,ab) = if ((ab >= X)) | |
162 | + | then aa | |
154 | 163 | else throw("List size exceeds 20") | |
155 | 164 | ||
156 | - | | |
165 | + | af(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
157 | 166 | } | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | func | |
163 | - | then | |
164 | - | else | |
167 | + | let ag = { | |
168 | + | let W = J | |
169 | + | let X = size(W) | |
170 | + | let Y = nil | |
171 | + | func ah (aa,ab) = if ((ab >= X)) | |
172 | + | then aa | |
173 | + | else S(aa, W[ab]) | |
165 | 174 | ||
166 | - | func | |
167 | - | then | |
175 | + | func ai (aa,ab) = if ((ab >= X)) | |
176 | + | then aa | |
168 | 177 | else throw("List size exceeds 20") | |
169 | 178 | ||
170 | - | | |
179 | + | ai(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
171 | 180 | } | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | func | |
177 | - | then | |
178 | - | else | |
181 | + | let aj = { | |
182 | + | let W = J | |
183 | + | let X = size(W) | |
184 | + | let Y = nil | |
185 | + | func ak (aa,ab) = if ((ab >= X)) | |
186 | + | then aa | |
187 | + | else T(aa, W[ab]) | |
179 | 188 | ||
180 | - | func | |
181 | - | then | |
189 | + | func al (aa,ab) = if ((ab >= X)) | |
190 | + | then aa | |
182 | 191 | else throw("List size exceeds 20") | |
183 | 192 | ||
184 | - | | |
193 | + | al(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
185 | 194 | } | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | func | |
191 | - | then | |
192 | - | else | |
195 | + | let am = { | |
196 | + | let W = J | |
197 | + | let X = size(W) | |
198 | + | let Y = nil | |
199 | + | func an (aa,ab) = if ((ab >= X)) | |
200 | + | then aa | |
201 | + | else U(aa, W[ab]) | |
193 | 202 | ||
194 | - | func | |
195 | - | then | |
203 | + | func ao (aa,ab) = if ((ab >= X)) | |
204 | + | then aa | |
196 | 205 | else throw("List size exceeds 20") | |
197 | 206 | ||
198 | - | | |
207 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
199 | 208 | } | |
200 | - | (((( | |
209 | + | ((((V ++ ad) ++ ag) ++ aj) ++ am) | |
201 | 210 | } | |
202 | 211 | else throw("Only admin can call this function") | |
203 | 212 | ||
204 | 213 | ||
205 | 214 | ||
206 | - | @Callable( | |
207 | - | func deleteDepositLockRecords ( | |
215 | + | @Callable(I) | |
216 | + | func deleteDepositLockRecords (ap) = if (containsElement([d, e, f], I.callerPublicKey)) | |
208 | 217 | then { | |
209 | - | func | |
218 | + | func aq (O,ar) = DeleteEntry((ar + "_locked")) :: O | |
210 | 219 | ||
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | func | |
216 | - | then | |
217 | - | else | |
220 | + | let as = { | |
221 | + | let W = ap | |
222 | + | let X = size(W) | |
223 | + | let Y = nil | |
224 | + | func Z (aa,ab) = if ((ab >= X)) | |
225 | + | then aa | |
226 | + | else aq(aa, W[ab]) | |
218 | 227 | ||
219 | - | func | |
220 | - | then | |
228 | + | func ac (aa,ab) = if ((ab >= X)) | |
229 | + | then aa | |
221 | 230 | else throw("List size exceeds 100") | |
222 | 231 | ||
223 | - | Z( | |
232 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 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) | |
224 | 233 | } | |
225 | - | | |
234 | + | as | |
226 | 235 | } | |
227 | 236 | else throw("Only admin can call this function") | |
228 | 237 | ||
229 | 238 | ||
230 | 239 | ||
231 | - | @Callable( | |
232 | - | func issueToken ( | |
233 | - | then [Issue( | |
240 | + | @Callable(I) | |
241 | + | func issueToken (at,au,av,aw) = if (containsElement([d, e, f], I.callerPublicKey)) | |
242 | + | then [Issue(at, au, av, aw, true, unit, 0)] | |
234 | 243 | else throw("Only admin can call this function") | |
235 | 244 | ||
236 | 245 | ||
237 | 246 | ||
238 | - | @Callable( | |
247 | + | @Callable(ax) | |
239 | 248 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
240 | 249 | ||
241 | 250 | ||
242 | 251 | ||
243 | - | @Callable( | |
244 | - | func deposit ( | |
252 | + | @Callable(I) | |
253 | + | func deposit (o) = if ((size(I.payments) != 1)) | |
245 | 254 | then throw("One attached payment expected") | |
246 | 255 | else { | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if ($isInstanceOf( | |
256 | + | let B = I.payments[0].amount | |
257 | + | let C = I.payments[0].assetId | |
258 | + | let ay = { | |
259 | + | let r = C | |
260 | + | if ($isInstanceOf(r, "ByteVector")) | |
252 | 261 | then { | |
253 | - | let | |
254 | - | toBase58String( | |
262 | + | let az = r | |
263 | + | toBase58String(az) | |
255 | 264 | } | |
256 | 265 | else throw("Match error") | |
257 | 266 | } | |
258 | - | if ((0 >= | |
259 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
267 | + | if ((0 >= B)) | |
268 | + | then throw(("Deposit amount must be positive. Actual: " + toString(B))) | |
260 | 269 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
270 | + | let aA = (o + "_asset_balance") | |
271 | + | let aB = toString(I.caller) | |
272 | + | let aC = (((o + "_") + aB) + "_asset_balance") | |
273 | + | let aD = t(o) | |
274 | + | let aE = { | |
275 | + | let r = getString((o + "_liquidity_token")) | |
276 | + | if ($isInstanceOf(r, "String")) | |
268 | 277 | then { | |
269 | - | let | |
270 | - | | |
278 | + | let u = r | |
279 | + | u | |
271 | 280 | } | |
272 | 281 | else { | |
273 | - | let | |
282 | + | let v = r | |
274 | 283 | throw("You try to deposit on unsupported pool") | |
275 | 284 | } | |
276 | 285 | } | |
277 | - | if ( | |
286 | + | if (n(o)) | |
278 | 287 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
288 | + | let aF = { | |
289 | + | let r = assetInfo(fromBase58String(aE)) | |
290 | + | if ($isInstanceOf(r, "Asset")) | |
282 | 291 | then { | |
283 | - | let | |
284 | - | | |
292 | + | let G = r | |
293 | + | G.decimals | |
285 | 294 | } | |
286 | 295 | else throw("Can't find asset") | |
287 | 296 | } | |
288 | - | if (( | |
297 | + | if ((aE != ay)) | |
289 | 298 | then throw("You attached wrong liquidity token from Swop.fi") | |
290 | 299 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
300 | + | let aG = getIntegerValue(this, aA) | |
301 | + | let aH = { | |
302 | + | let r = getInteger(aC) | |
303 | + | if ($isInstanceOf(r, "Int")) | |
295 | 304 | then { | |
296 | - | let | |
297 | - | | |
305 | + | let aI = r | |
306 | + | aI | |
298 | 307 | } | |
299 | 308 | else { | |
300 | - | let | |
309 | + | let v = r | |
301 | 310 | 0 | |
302 | 311 | } | |
303 | 312 | } | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | [Reissue(fromBase58String( | |
313 | + | let aJ = ((B - fraction(B, 1, a, HALFUP)) - fraction(B, 1, b, HALFUP)) | |
314 | + | let H = A(aJ, fromBase58String(aD), o, i) | |
315 | + | let aK = (B - aJ) | |
316 | + | let aL = ((aG + B) - aK) | |
317 | + | let aM = (aH + H) | |
318 | + | let aN = (((((o + "_") + aB) + "_") + toBase58String(I.transactionId)) + "_locked") | |
319 | + | [Reissue(fromBase58String(aD), H, true), ScriptTransfer(I.caller, H, fromBase58String(aD)), ScriptTransfer(h, aK, fromBase58String(aE)), IntegerEntry(aN, aJ), IntegerEntry(aA, aL), IntegerEntry(aC, aM)] | |
311 | 320 | } | |
312 | 321 | } | |
313 | 322 | else throw("Pool is not active!") | |
316 | 325 | ||
317 | 326 | ||
318 | 327 | ||
319 | - | @Callable( | |
320 | - | func withdraw ( | |
328 | + | @Callable(I) | |
329 | + | func withdraw (o) = if ((size(I.payments) != 1)) | |
321 | 330 | then throw("One attached payment expected") | |
322 | 331 | else { | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | if ($isInstanceOf( | |
332 | + | let B = I.payments[0].amount | |
333 | + | let C = I.payments[0].assetId | |
334 | + | let ay = { | |
335 | + | let r = C | |
336 | + | if ($isInstanceOf(r, "ByteVector")) | |
328 | 337 | then { | |
329 | - | let | |
330 | - | toBase58String( | |
338 | + | let az = r | |
339 | + | toBase58String(az) | |
331 | 340 | } | |
332 | 341 | else throw("Match error") | |
333 | 342 | } | |
334 | - | if ((0 >= | |
335 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
336 | - | else if ( | |
343 | + | if ((0 >= B)) | |
344 | + | then throw(("Deposit amount must be positive. Actual: " + toString(B))) | |
345 | + | else if (n(o)) | |
337 | 346 | then { | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
347 | + | let aA = (o + "_asset_balance") | |
348 | + | let aB = toString(I.caller) | |
349 | + | let aC = (((o + "_") + aB) + "_asset_balance") | |
350 | + | let aH = { | |
351 | + | let r = getInteger(aC) | |
352 | + | if ($isInstanceOf(r, "Int")) | |
344 | 353 | then { | |
345 | - | let | |
346 | - | | |
354 | + | let aI = r | |
355 | + | aI | |
347 | 356 | } | |
348 | 357 | else { | |
349 | - | let | |
358 | + | let v = r | |
350 | 359 | 0 | |
351 | 360 | } | |
352 | 361 | } | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | [Burn(fromBase58String( | |
362 | + | let aD = t(o) | |
363 | + | let aE = w(o) | |
364 | + | let aG = getIntegerValue(this, aA) | |
365 | + | let aJ = ((B - fraction(B, 1, c, HALFUP)) - fraction(B, 1, b, HALFUP)) | |
366 | + | let H = A(aJ, fromBase58String(ay), o, j) | |
367 | + | let aL = (aG - aJ) | |
368 | + | let aK = (B - aJ) | |
369 | + | let aM = (aH - B) | |
370 | + | [Burn(fromBase58String(aD), H), ScriptTransfer(I.caller, H, fromBase58String(aE)), ScriptTransfer(h, aK, fromBase58String(aE)), IntegerEntry(aA, aL), IntegerEntry(aC, aM)] | |
362 | 371 | } | |
363 | 372 | else throw("Pool is not active!") | |
364 | 373 | } | |
365 | 374 | ||
366 | 375 | ||
367 | 376 | ||
368 | - | @Callable( | |
369 | - | func poolActivating ( | |
377 | + | @Callable(I) | |
378 | + | func poolActivating (J,aO) = if (containsElement([d, e, f], I.callerPublicKey)) | |
370 | 379 | then { | |
371 | - | func | |
372 | - | let | |
373 | - | let | |
374 | - | BooleanEntry(( | |
380 | + | func U (O,o) = { | |
381 | + | let Q = value(indexOf(J, o)) | |
382 | + | let aP = aO[Q] | |
383 | + | BooleanEntry((o + "_active"), aP) :: O | |
375 | 384 | } | |
376 | 385 | ||
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | func | |
382 | - | then | |
383 | - | else | |
386 | + | let am = { | |
387 | + | let W = J | |
388 | + | let X = size(W) | |
389 | + | let Y = nil | |
390 | + | func Z (aa,ab) = if ((ab >= X)) | |
391 | + | then aa | |
392 | + | else U(aa, W[ab]) | |
384 | 393 | ||
385 | - | func | |
386 | - | then | |
394 | + | func ac (aa,ab) = if ((ab >= X)) | |
395 | + | then aa | |
387 | 396 | else throw("List size exceeds 100") | |
388 | 397 | ||
389 | - | Z( | |
398 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 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) | |
390 | 399 | } | |
391 | - | | |
400 | + | am | |
392 | 401 | } | |
393 | 402 | else throw("Only admin can call this function") | |
394 | 403 | ||
395 | 404 | ||
396 | - | @Verifier( | |
397 | - | func | |
398 | - | let | |
399 | - | if ($isInstanceOf( | |
405 | + | @Verifier(aQ) | |
406 | + | func aR () = { | |
407 | + | let r = aQ | |
408 | + | if ($isInstanceOf(r, "InvokeScriptTransaction")) | |
400 | 409 | then { | |
401 | - | let | |
402 | - | let | |
403 | - | then if (if (( | |
410 | + | let aS = r | |
411 | + | let aT = if ((aS.dApp == k)) | |
412 | + | then if (if ((aS.function == "lockShareTokens")) | |
404 | 413 | then true | |
405 | - | else ( | |
414 | + | else (aS.function == "claim")) | |
406 | 415 | then true | |
407 | - | else ( | |
416 | + | else (aS.function == "withdrawShareTokens") | |
408 | 417 | else false | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
418 | + | let aU = { | |
419 | + | let aV = aS.dApp | |
420 | + | if ($isInstanceOf(aV, "Address")) | |
412 | 421 | then { | |
413 | - | let | |
414 | - | toString( | |
422 | + | let aW = aV | |
423 | + | toString(aW) | |
415 | 424 | } | |
416 | 425 | else throw("Transaction must have only address") | |
417 | 426 | } | |
418 | - | let | |
419 | - | then containsElement( | |
427 | + | let aX = if (containsElement(l, aU)) | |
428 | + | then containsElement(m, aS.function) | |
420 | 429 | else false | |
421 | - | let | |
430 | + | let aY = if (if (if (sigVerify(aQ.bodyBytes, aQ.proofs[0], d)) | |
422 | 431 | then true | |
423 | - | else sigVerify( | |
432 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], e)) | |
424 | 433 | then true | |
425 | - | else sigVerify( | |
434 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], g)) | |
426 | 435 | then true | |
427 | - | else sigVerify( | |
428 | - | if (if ( | |
436 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
437 | + | if (if (aT) | |
429 | 438 | then true | |
430 | - | else | |
431 | - | then | |
439 | + | else aX) | |
440 | + | then aY | |
432 | 441 | else false | |
433 | 442 | } | |
434 | 443 | else { | |
435 | - | let | |
444 | + | let aZ = if (sigVerify(aQ.bodyBytes, aQ.proofs[0], d)) | |
436 | 445 | then 1 | |
437 | 446 | else 0 | |
438 | - | let | |
447 | + | let ba = if (sigVerify(aQ.bodyBytes, aQ.proofs[1], e)) | |
439 | 448 | then 1 | |
440 | 449 | else 0 | |
441 | - | let | |
450 | + | let bb = if (sigVerify(aQ.bodyBytes, aQ.proofs[2], f)) | |
442 | 451 | then 1 | |
443 | 452 | else 0 | |
444 | - | ((( | |
453 | + | (((aZ + ba) + bb) >= 2) | |
445 | 454 | } | |
446 | 455 | } | |
447 | 456 |
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 | 16 | let g = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL') | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "deposit" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = "withdraw" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
25 | 25 | ||
26 | - | func l (m) = { | |
27 | - | let n = (m + "_active") | |
28 | - | let o = { | |
29 | - | let p = getBoolean(this, n) | |
30 | - | if ($isInstanceOf(p, "Boolean")) | |
26 | + | let l = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
27 | + | ||
28 | + | let m = ["replenishWithTwoTokens", "exchange"] | |
29 | + | ||
30 | + | func n (o) = { | |
31 | + | let p = (o + "_active") | |
32 | + | let q = { | |
33 | + | let r = getBoolean(this, p) | |
34 | + | if ($isInstanceOf(r, "Boolean")) | |
31 | 35 | then { | |
32 | - | let | |
33 | - | | |
36 | + | let s = r | |
37 | + | s | |
34 | 38 | } | |
35 | 39 | else throw("Pool is not active!") | |
36 | 40 | } | |
37 | - | | |
41 | + | q | |
38 | 42 | } | |
39 | 43 | ||
40 | 44 | ||
41 | - | func | |
42 | - | let | |
43 | - | if ($isInstanceOf( | |
45 | + | func t (o) = { | |
46 | + | let r = getString((o + "_service_token")) | |
47 | + | if ($isInstanceOf(r, "String")) | |
44 | 48 | then { | |
45 | - | let | |
46 | - | | |
49 | + | let u = r | |
50 | + | u | |
47 | 51 | } | |
48 | 52 | else { | |
49 | - | let | |
53 | + | let v = r | |
50 | 54 | throw("You try to deposit on unsupported pool") | |
51 | 55 | } | |
52 | 56 | } | |
53 | 57 | ||
54 | 58 | ||
55 | - | func | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
59 | + | func w (o) = { | |
60 | + | let r = getString((o + "_liquidity_token")) | |
61 | + | if ($isInstanceOf(r, "String")) | |
58 | 62 | then { | |
59 | - | let | |
60 | - | | |
63 | + | let u = r | |
64 | + | u | |
61 | 65 | } | |
62 | 66 | else { | |
63 | - | let | |
67 | + | let v = r | |
64 | 68 | throw("You try to withdraw from unsupported pool") | |
65 | 69 | } | |
66 | 70 | } | |
67 | 71 | ||
68 | 72 | ||
69 | - | func | |
70 | - | let | |
71 | - | if ($isInstanceOf( | |
73 | + | func x (y) = { | |
74 | + | let r = getInteger(k, (((y + "_") + toString(this)) + "_share_tokens_locked")) | |
75 | + | if ($isInstanceOf(r, "Int")) | |
72 | 76 | then { | |
73 | - | let | |
74 | - | | |
77 | + | let z = r | |
78 | + | z | |
75 | 79 | } | |
76 | - | else if ($isInstanceOf( | |
80 | + | else if ($isInstanceOf(r, "Unit")) | |
77 | 81 | then { | |
78 | - | let | |
82 | + | let v = r | |
79 | 83 | 0 | |
80 | 84 | } | |
81 | 85 | else throw("Match error") | |
82 | 86 | } | |
83 | 87 | ||
84 | 88 | ||
85 | - | func | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | if ($isInstanceOf( | |
89 | + | func A (B,C,y,D) = { | |
90 | + | let E = x(y) | |
91 | + | let F = { | |
92 | + | let r = assetInfo(C) | |
93 | + | if ($isInstanceOf(r, "Asset")) | |
90 | 94 | then { | |
91 | - | let | |
92 | - | | |
95 | + | let G = r | |
96 | + | G.quantity | |
93 | 97 | } | |
94 | 98 | else throw("Can't find asset") | |
95 | 99 | } | |
96 | - | if ((B == 0)) | |
97 | - | then z | |
98 | - | else { | |
99 | - | let E = fraction(z, C, B) | |
100 | - | E | |
101 | - | } | |
100 | + | if ((E == 0)) | |
101 | + | then B | |
102 | + | else if ((D == i)) | |
103 | + | then { | |
104 | + | let H = fraction(B, F, E) | |
105 | + | H | |
106 | + | } | |
107 | + | else { | |
108 | + | let H = fraction(B, E, F) | |
109 | + | H | |
110 | + | } | |
102 | 111 | } | |
103 | 112 | ||
104 | 113 | ||
105 | - | @Callable( | |
106 | - | func addPools ( | |
114 | + | @Callable(I) | |
115 | + | func addPools (J,K,L,M) = if (containsElement([d, e, f], I.callerPublicKey)) | |
107 | 116 | then { | |
108 | - | func | |
117 | + | func N (O,o) = IntegerEntry((o + "_asset_balance"), 0) :: O | |
109 | 118 | ||
110 | - | func | |
111 | - | let | |
112 | - | let | |
113 | - | StringEntry(( | |
119 | + | func P (O,o) = { | |
120 | + | let Q = value(indexOf(J, o)) | |
121 | + | let R = K[Q] | |
122 | + | StringEntry((o + "_liquidity_token"), R) :: O | |
114 | 123 | } | |
115 | 124 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | StringEntry(( | |
125 | + | func S (O,o) = { | |
126 | + | let Q = value(indexOf(J, o)) | |
127 | + | let R = L[Q] | |
128 | + | StringEntry((o + "_service_token"), R) :: O | |
120 | 129 | } | |
121 | 130 | ||
122 | - | func | |
123 | - | let | |
124 | - | let | |
125 | - | IntegerEntry(( | |
131 | + | func T (O,o) = { | |
132 | + | let Q = value(indexOf(J, o)) | |
133 | + | let R = M[Q] | |
134 | + | IntegerEntry((o + "_service_token_decimal"), R) :: O | |
126 | 135 | } | |
127 | 136 | ||
128 | - | func | |
137 | + | func U (O,o) = BooleanEntry((o + "_active"), true) :: O | |
129 | 138 | ||
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | func | |
135 | - | then | |
136 | - | else | |
139 | + | let V = { | |
140 | + | let W = J | |
141 | + | let X = size(W) | |
142 | + | let Y = nil | |
143 | + | func Z (aa,ab) = if ((ab >= X)) | |
144 | + | then aa | |
145 | + | else N(aa, W[ab]) | |
137 | 146 | ||
138 | - | func | |
139 | - | then | |
147 | + | func ac (aa,ab) = if ((ab >= X)) | |
148 | + | then aa | |
140 | 149 | else throw("List size exceeds 20") | |
141 | 150 | ||
142 | - | Z( | |
151 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
143 | 152 | } | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | func | |
149 | - | then | |
150 | - | else | |
153 | + | let ad = { | |
154 | + | let W = J | |
155 | + | let X = size(W) | |
156 | + | let Y = nil | |
157 | + | func ae (aa,ab) = if ((ab >= X)) | |
158 | + | then aa | |
159 | + | else P(aa, W[ab]) | |
151 | 160 | ||
152 | - | func | |
153 | - | then | |
161 | + | func af (aa,ab) = if ((ab >= X)) | |
162 | + | then aa | |
154 | 163 | else throw("List size exceeds 20") | |
155 | 164 | ||
156 | - | | |
165 | + | af(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
157 | 166 | } | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | func | |
163 | - | then | |
164 | - | else | |
167 | + | let ag = { | |
168 | + | let W = J | |
169 | + | let X = size(W) | |
170 | + | let Y = nil | |
171 | + | func ah (aa,ab) = if ((ab >= X)) | |
172 | + | then aa | |
173 | + | else S(aa, W[ab]) | |
165 | 174 | ||
166 | - | func | |
167 | - | then | |
175 | + | func ai (aa,ab) = if ((ab >= X)) | |
176 | + | then aa | |
168 | 177 | else throw("List size exceeds 20") | |
169 | 178 | ||
170 | - | | |
179 | + | ai(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
171 | 180 | } | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | func | |
177 | - | then | |
178 | - | else | |
181 | + | let aj = { | |
182 | + | let W = J | |
183 | + | let X = size(W) | |
184 | + | let Y = nil | |
185 | + | func ak (aa,ab) = if ((ab >= X)) | |
186 | + | then aa | |
187 | + | else T(aa, W[ab]) | |
179 | 188 | ||
180 | - | func | |
181 | - | then | |
189 | + | func al (aa,ab) = if ((ab >= X)) | |
190 | + | then aa | |
182 | 191 | else throw("List size exceeds 20") | |
183 | 192 | ||
184 | - | | |
193 | + | al(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
185 | 194 | } | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | func | |
191 | - | then | |
192 | - | else | |
195 | + | let am = { | |
196 | + | let W = J | |
197 | + | let X = size(W) | |
198 | + | let Y = nil | |
199 | + | func an (aa,ab) = if ((ab >= X)) | |
200 | + | then aa | |
201 | + | else U(aa, W[ab]) | |
193 | 202 | ||
194 | - | func | |
195 | - | then | |
203 | + | func ao (aa,ab) = if ((ab >= X)) | |
204 | + | then aa | |
196 | 205 | else throw("List size exceeds 20") | |
197 | 206 | ||
198 | - | | |
207 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(Y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
199 | 208 | } | |
200 | - | (((( | |
209 | + | ((((V ++ ad) ++ ag) ++ aj) ++ am) | |
201 | 210 | } | |
202 | 211 | else throw("Only admin can call this function") | |
203 | 212 | ||
204 | 213 | ||
205 | 214 | ||
206 | - | @Callable( | |
207 | - | func deleteDepositLockRecords ( | |
215 | + | @Callable(I) | |
216 | + | func deleteDepositLockRecords (ap) = if (containsElement([d, e, f], I.callerPublicKey)) | |
208 | 217 | then { | |
209 | - | func | |
218 | + | func aq (O,ar) = DeleteEntry((ar + "_locked")) :: O | |
210 | 219 | ||
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | func | |
216 | - | then | |
217 | - | else | |
220 | + | let as = { | |
221 | + | let W = ap | |
222 | + | let X = size(W) | |
223 | + | let Y = nil | |
224 | + | func Z (aa,ab) = if ((ab >= X)) | |
225 | + | then aa | |
226 | + | else aq(aa, W[ab]) | |
218 | 227 | ||
219 | - | func | |
220 | - | then | |
228 | + | func ac (aa,ab) = if ((ab >= X)) | |
229 | + | then aa | |
221 | 230 | else throw("List size exceeds 100") | |
222 | 231 | ||
223 | - | Z( | |
232 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 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) | |
224 | 233 | } | |
225 | - | | |
234 | + | as | |
226 | 235 | } | |
227 | 236 | else throw("Only admin can call this function") | |
228 | 237 | ||
229 | 238 | ||
230 | 239 | ||
231 | - | @Callable( | |
232 | - | func issueToken ( | |
233 | - | then [Issue( | |
240 | + | @Callable(I) | |
241 | + | func issueToken (at,au,av,aw) = if (containsElement([d, e, f], I.callerPublicKey)) | |
242 | + | then [Issue(at, au, av, aw, true, unit, 0)] | |
234 | 243 | else throw("Only admin can call this function") | |
235 | 244 | ||
236 | 245 | ||
237 | 246 | ||
238 | - | @Callable( | |
247 | + | @Callable(ax) | |
239 | 248 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
240 | 249 | ||
241 | 250 | ||
242 | 251 | ||
243 | - | @Callable( | |
244 | - | func deposit ( | |
252 | + | @Callable(I) | |
253 | + | func deposit (o) = if ((size(I.payments) != 1)) | |
245 | 254 | then throw("One attached payment expected") | |
246 | 255 | else { | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if ($isInstanceOf( | |
256 | + | let B = I.payments[0].amount | |
257 | + | let C = I.payments[0].assetId | |
258 | + | let ay = { | |
259 | + | let r = C | |
260 | + | if ($isInstanceOf(r, "ByteVector")) | |
252 | 261 | then { | |
253 | - | let | |
254 | - | toBase58String( | |
262 | + | let az = r | |
263 | + | toBase58String(az) | |
255 | 264 | } | |
256 | 265 | else throw("Match error") | |
257 | 266 | } | |
258 | - | if ((0 >= | |
259 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
267 | + | if ((0 >= B)) | |
268 | + | then throw(("Deposit amount must be positive. Actual: " + toString(B))) | |
260 | 269 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
270 | + | let aA = (o + "_asset_balance") | |
271 | + | let aB = toString(I.caller) | |
272 | + | let aC = (((o + "_") + aB) + "_asset_balance") | |
273 | + | let aD = t(o) | |
274 | + | let aE = { | |
275 | + | let r = getString((o + "_liquidity_token")) | |
276 | + | if ($isInstanceOf(r, "String")) | |
268 | 277 | then { | |
269 | - | let | |
270 | - | | |
278 | + | let u = r | |
279 | + | u | |
271 | 280 | } | |
272 | 281 | else { | |
273 | - | let | |
282 | + | let v = r | |
274 | 283 | throw("You try to deposit on unsupported pool") | |
275 | 284 | } | |
276 | 285 | } | |
277 | - | if ( | |
286 | + | if (n(o)) | |
278 | 287 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
288 | + | let aF = { | |
289 | + | let r = assetInfo(fromBase58String(aE)) | |
290 | + | if ($isInstanceOf(r, "Asset")) | |
282 | 291 | then { | |
283 | - | let | |
284 | - | | |
292 | + | let G = r | |
293 | + | G.decimals | |
285 | 294 | } | |
286 | 295 | else throw("Can't find asset") | |
287 | 296 | } | |
288 | - | if (( | |
297 | + | if ((aE != ay)) | |
289 | 298 | then throw("You attached wrong liquidity token from Swop.fi") | |
290 | 299 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
300 | + | let aG = getIntegerValue(this, aA) | |
301 | + | let aH = { | |
302 | + | let r = getInteger(aC) | |
303 | + | if ($isInstanceOf(r, "Int")) | |
295 | 304 | then { | |
296 | - | let | |
297 | - | | |
305 | + | let aI = r | |
306 | + | aI | |
298 | 307 | } | |
299 | 308 | else { | |
300 | - | let | |
309 | + | let v = r | |
301 | 310 | 0 | |
302 | 311 | } | |
303 | 312 | } | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | [Reissue(fromBase58String( | |
313 | + | let aJ = ((B - fraction(B, 1, a, HALFUP)) - fraction(B, 1, b, HALFUP)) | |
314 | + | let H = A(aJ, fromBase58String(aD), o, i) | |
315 | + | let aK = (B - aJ) | |
316 | + | let aL = ((aG + B) - aK) | |
317 | + | let aM = (aH + H) | |
318 | + | let aN = (((((o + "_") + aB) + "_") + toBase58String(I.transactionId)) + "_locked") | |
319 | + | [Reissue(fromBase58String(aD), H, true), ScriptTransfer(I.caller, H, fromBase58String(aD)), ScriptTransfer(h, aK, fromBase58String(aE)), IntegerEntry(aN, aJ), IntegerEntry(aA, aL), IntegerEntry(aC, aM)] | |
311 | 320 | } | |
312 | 321 | } | |
313 | 322 | else throw("Pool is not active!") | |
314 | 323 | } | |
315 | 324 | } | |
316 | 325 | ||
317 | 326 | ||
318 | 327 | ||
319 | - | @Callable( | |
320 | - | func withdraw ( | |
328 | + | @Callable(I) | |
329 | + | func withdraw (o) = if ((size(I.payments) != 1)) | |
321 | 330 | then throw("One attached payment expected") | |
322 | 331 | else { | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | if ($isInstanceOf( | |
332 | + | let B = I.payments[0].amount | |
333 | + | let C = I.payments[0].assetId | |
334 | + | let ay = { | |
335 | + | let r = C | |
336 | + | if ($isInstanceOf(r, "ByteVector")) | |
328 | 337 | then { | |
329 | - | let | |
330 | - | toBase58String( | |
338 | + | let az = r | |
339 | + | toBase58String(az) | |
331 | 340 | } | |
332 | 341 | else throw("Match error") | |
333 | 342 | } | |
334 | - | if ((0 >= | |
335 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
336 | - | else if ( | |
343 | + | if ((0 >= B)) | |
344 | + | then throw(("Deposit amount must be positive. Actual: " + toString(B))) | |
345 | + | else if (n(o)) | |
337 | 346 | then { | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
347 | + | let aA = (o + "_asset_balance") | |
348 | + | let aB = toString(I.caller) | |
349 | + | let aC = (((o + "_") + aB) + "_asset_balance") | |
350 | + | let aH = { | |
351 | + | let r = getInteger(aC) | |
352 | + | if ($isInstanceOf(r, "Int")) | |
344 | 353 | then { | |
345 | - | let | |
346 | - | | |
354 | + | let aI = r | |
355 | + | aI | |
347 | 356 | } | |
348 | 357 | else { | |
349 | - | let | |
358 | + | let v = r | |
350 | 359 | 0 | |
351 | 360 | } | |
352 | 361 | } | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | [Burn(fromBase58String( | |
362 | + | let aD = t(o) | |
363 | + | let aE = w(o) | |
364 | + | let aG = getIntegerValue(this, aA) | |
365 | + | let aJ = ((B - fraction(B, 1, c, HALFUP)) - fraction(B, 1, b, HALFUP)) | |
366 | + | let H = A(aJ, fromBase58String(ay), o, j) | |
367 | + | let aL = (aG - aJ) | |
368 | + | let aK = (B - aJ) | |
369 | + | let aM = (aH - B) | |
370 | + | [Burn(fromBase58String(aD), H), ScriptTransfer(I.caller, H, fromBase58String(aE)), ScriptTransfer(h, aK, fromBase58String(aE)), IntegerEntry(aA, aL), IntegerEntry(aC, aM)] | |
362 | 371 | } | |
363 | 372 | else throw("Pool is not active!") | |
364 | 373 | } | |
365 | 374 | ||
366 | 375 | ||
367 | 376 | ||
368 | - | @Callable( | |
369 | - | func poolActivating ( | |
377 | + | @Callable(I) | |
378 | + | func poolActivating (J,aO) = if (containsElement([d, e, f], I.callerPublicKey)) | |
370 | 379 | then { | |
371 | - | func | |
372 | - | let | |
373 | - | let | |
374 | - | BooleanEntry(( | |
380 | + | func U (O,o) = { | |
381 | + | let Q = value(indexOf(J, o)) | |
382 | + | let aP = aO[Q] | |
383 | + | BooleanEntry((o + "_active"), aP) :: O | |
375 | 384 | } | |
376 | 385 | ||
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | func | |
382 | - | then | |
383 | - | else | |
386 | + | let am = { | |
387 | + | let W = J | |
388 | + | let X = size(W) | |
389 | + | let Y = nil | |
390 | + | func Z (aa,ab) = if ((ab >= X)) | |
391 | + | then aa | |
392 | + | else U(aa, W[ab]) | |
384 | 393 | ||
385 | - | func | |
386 | - | then | |
394 | + | func ac (aa,ab) = if ((ab >= X)) | |
395 | + | then aa | |
387 | 396 | else throw("List size exceeds 100") | |
388 | 397 | ||
389 | - | Z( | |
398 | + | ac(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Y, 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) | |
390 | 399 | } | |
391 | - | | |
400 | + | am | |
392 | 401 | } | |
393 | 402 | else throw("Only admin can call this function") | |
394 | 403 | ||
395 | 404 | ||
396 | - | @Verifier( | |
397 | - | func | |
398 | - | let | |
399 | - | if ($isInstanceOf( | |
405 | + | @Verifier(aQ) | |
406 | + | func aR () = { | |
407 | + | let r = aQ | |
408 | + | if ($isInstanceOf(r, "InvokeScriptTransaction")) | |
400 | 409 | then { | |
401 | - | let | |
402 | - | let | |
403 | - | then if (if (( | |
410 | + | let aS = r | |
411 | + | let aT = if ((aS.dApp == k)) | |
412 | + | then if (if ((aS.function == "lockShareTokens")) | |
404 | 413 | then true | |
405 | - | else ( | |
414 | + | else (aS.function == "claim")) | |
406 | 415 | then true | |
407 | - | else ( | |
416 | + | else (aS.function == "withdrawShareTokens") | |
408 | 417 | else false | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
418 | + | let aU = { | |
419 | + | let aV = aS.dApp | |
420 | + | if ($isInstanceOf(aV, "Address")) | |
412 | 421 | then { | |
413 | - | let | |
414 | - | toString( | |
422 | + | let aW = aV | |
423 | + | toString(aW) | |
415 | 424 | } | |
416 | 425 | else throw("Transaction must have only address") | |
417 | 426 | } | |
418 | - | let | |
419 | - | then containsElement( | |
427 | + | let aX = if (containsElement(l, aU)) | |
428 | + | then containsElement(m, aS.function) | |
420 | 429 | else false | |
421 | - | let | |
430 | + | let aY = if (if (if (sigVerify(aQ.bodyBytes, aQ.proofs[0], d)) | |
422 | 431 | then true | |
423 | - | else sigVerify( | |
432 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], e)) | |
424 | 433 | then true | |
425 | - | else sigVerify( | |
434 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], g)) | |
426 | 435 | then true | |
427 | - | else sigVerify( | |
428 | - | if (if ( | |
436 | + | else sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
437 | + | if (if (aT) | |
429 | 438 | then true | |
430 | - | else | |
431 | - | then | |
439 | + | else aX) | |
440 | + | then aY | |
432 | 441 | else false | |
433 | 442 | } | |
434 | 443 | else { | |
435 | - | let | |
444 | + | let aZ = if (sigVerify(aQ.bodyBytes, aQ.proofs[0], d)) | |
436 | 445 | then 1 | |
437 | 446 | else 0 | |
438 | - | let | |
447 | + | let ba = if (sigVerify(aQ.bodyBytes, aQ.proofs[1], e)) | |
439 | 448 | then 1 | |
440 | 449 | else 0 | |
441 | - | let | |
450 | + | let bb = if (sigVerify(aQ.bodyBytes, aQ.proofs[2], f)) | |
442 | 451 | then 1 | |
443 | 452 | else 0 | |
444 | - | ((( | |
453 | + | (((aZ + ba) + bb) >= 2) | |
445 | 454 | } | |
446 | 455 | } | |
447 | 456 |
github/deemru/w8io/169f3d6 361.28 ms ◑