tx · 2qRzKZdmurowyBEXEwxVC2au5ZwaH61iEi2Ddcc7neey 3MxZ7YNAqigXR5jrgvpb48Uc6B29ouDzQyN: -0.03700000 Waves 2023.05.23 14:28 [2590562] smart account 3MxZ7YNAqigXR5jrgvpb48Uc6B29ouDzQyN > SELF 0.00000000 Waves
{ "type": 13, "id": "2qRzKZdmurowyBEXEwxVC2au5ZwaH61iEi2Ddcc7neey", "fee": 3700000, "feeAssetId": null, "timestamp": 1684841333903, "version": 2, "chainId": 84, "sender": "3MxZ7YNAqigXR5jrgvpb48Uc6B29ouDzQyN", "senderPublicKey": "HHCdafdi3D2htEYJw8cBoNYC8w76euLWKYENK4kanmGM", "proofs": [ "3SY3pentYxwdRKvQqC8s3iZQv6t51hULXeMj6s68NYThH7TL2ejBMBkRoWpVgtpCrwMTSzmpGUAybwWcQhD2ugbn" ], "script": "base64:BgI1CAISABIFCgMICAESABIDCgEBEgASABIAEgMKAQESAwoBARIAEgASAwoBCBIDCgEIEgMKAQhfAA1rX3RvdGFsU3VwcGx5Ag1rX3RvdGFsU3VwcGx5AA9rX3Jld2FyZEJhbGFuY2UCD2tfcmV3YXJkQmFsYW5jZQAPa19sb2NrZWRCYWxhbmNlAg9rX2xvY2tlZEJhbGFuY2UADWtfZnJlZUJhbGFuY2UCDWtfZnJlZUJhbGFuY2UAD2tfZXhjZXNzQmFsYW5jZQIPa19leGNlc3NCYWxhbmNlAAxrX3ZhdWx0QXNzZXQCDGtfdmF1bHRBc3NldAAUa192YXVsdEFzc2V0RGVjaW1hbHMCFGtfdmF1bHRBc3NldERlY2ltYWxzABRrX21heFNwb3RVdGlsaXphdGlvbgIUa19tYXhTcG90VXRpbGl6YXRpb24ABmtfcmF0ZQIGa19yYXRlABBrX2xhc3RVcGRhdGVUaW1lAhBrX2xhc3RVcGRhdGVUaW1lABZrX3Jld2FyZFBlclRva2VuU3RvcmVkAhZrX3Jld2FyZFBlclRva2VuU3RvcmVkAAxrX3Jld2FyZFJhdGUCDGtfcmV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zCthDYWNRLvfsHSH7W Next: DCzuVn8JPmDJ7YBHy4bXwgg8XT1ndW5FWkzccwFwzhNY Diff:
Old | New | Differences | |
---|---|---|---|
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(bH) | |
332 | - | func initialize (bI,bJ,bK) = if (if (if (if (aD()) | |
332 | + | func migrate () = if ((bH.caller != H())) | |
333 | + | then throw("Invalid migrate parameters") | |
334 | + | else { | |
335 | + | let bI = toBase58String(K()) | |
336 | + | let W = if ((bI == "WAVES")) | |
337 | + | then 8 | |
338 | + | else { | |
339 | + | let bJ = valueOrErrorMessage(assetInfo(fromBase58String(bI)), ("Invalid token id: " + bI)) | |
340 | + | bJ.decimals | |
341 | + | } | |
342 | + | [StringEntry(f, bI), IntegerEntry(g, W), IntegerEntry(h, 0)] | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | ||
347 | + | @Callable(bH) | |
348 | + | func initialize (bK,bI,bL) = if (if (if (if (aD()) | |
333 | 349 | then true | |
334 | 350 | else (bH.caller != this)) | |
335 | 351 | then true | |
336 | - | else (0 > | |
352 | + | else (0 > bL)) | |
337 | 353 | then true | |
338 | - | else ( | |
354 | + | else (bL > Q)) | |
339 | 355 | then throw("Unable to initialize") | |
340 | 356 | else { | |
341 | - | let W = if (( | |
357 | + | let W = if ((bI == "WAVES")) | |
342 | 358 | then 8 | |
343 | 359 | else { | |
344 | - | let | |
345 | - | | |
360 | + | let bJ = valueOrErrorMessage(assetInfo(fromBase58String(bI)), ("Invalid token id: " + bI)) | |
361 | + | bJ.decimals | |
346 | 362 | } | |
347 | - | [StringEntry(v, toString(valueOrErrorMessage(addressFromString( | |
363 | + | [StringEntry(v, toString(valueOrErrorMessage(addressFromString(bK), "Invalid coordinator address"))), StringEntry(f, bI), IntegerEntry(g, W), IntegerEntry(h, bL), BooleanEntry(u, true)] | |
348 | 364 | } | |
349 | 365 | ||
350 | 366 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_totalSupply" | |
5 | 5 | ||
6 | 6 | let b = "k_rewardBalance" | |
7 | 7 | ||
8 | 8 | let c = "k_lockedBalance" | |
9 | 9 | ||
10 | 10 | let d = "k_freeBalance" | |
11 | 11 | ||
12 | 12 | let e = "k_excessBalance" | |
13 | 13 | ||
14 | 14 | let f = "k_vaultAsset" | |
15 | 15 | ||
16 | 16 | let g = "k_vaultAssetDecimals" | |
17 | 17 | ||
18 | 18 | let h = "k_maxSpotUtilization" | |
19 | 19 | ||
20 | 20 | let i = "k_rate" | |
21 | 21 | ||
22 | 22 | let j = "k_lastUpdateTime" | |
23 | 23 | ||
24 | 24 | let k = "k_rewardPerTokenStored" | |
25 | 25 | ||
26 | 26 | let l = "k_rewardRate" | |
27 | 27 | ||
28 | 28 | let m = "k_periodFinish" | |
29 | 29 | ||
30 | 30 | let n = "k_userRewardPerToken" | |
31 | 31 | ||
32 | 32 | let o = "k_userReward" | |
33 | 33 | ||
34 | 34 | let p = "k_balance" | |
35 | 35 | ||
36 | 36 | let q = "k_average_rate" | |
37 | 37 | ||
38 | 38 | let r = "k_withdraw_limit" | |
39 | 39 | ||
40 | 40 | let s = "k_last_withdraw_date" | |
41 | 41 | ||
42 | 42 | let t = "k_withdraw_in_period" | |
43 | 43 | ||
44 | 44 | let u = "k_initialized" | |
45 | 45 | ||
46 | 46 | let v = "k_coordinatorAddress" | |
47 | 47 | ||
48 | 48 | let w = "k_amm" | |
49 | 49 | ||
50 | 50 | let x = "k_gov_asset" | |
51 | 51 | ||
52 | 52 | let y = "k_quote_asset" | |
53 | 53 | ||
54 | 54 | let z = "k_admin_address" | |
55 | 55 | ||
56 | 56 | let A = "k_manager_address" | |
57 | 57 | ||
58 | 58 | let B = "k_spot_address" | |
59 | 59 | ||
60 | 60 | let C = "k_collateral_address" | |
61 | 61 | ||
62 | 62 | func D (E,F) = ((E + "_") + F) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, v), "Coordinator not set")), "Coordinator address invalid") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H () = addressFromString(valueOrErrorMessage(getString(G(), z), "Admin address not set")) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func I (F) = valueOrElse(getBoolean(G(), D(w, F)), false) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func J () = fromBase58String(valueOrErrorMessage(getString(G(), x), "Governance asset not set")) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func K () = fromBase58String(getStringValue(G(), y)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func L () = valueOrErrorMessage(getString(this, f), "Vault asset not set") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func M () = { | |
84 | 84 | let N = L() | |
85 | 85 | if ((N == "WAVES")) | |
86 | 86 | then unit | |
87 | 87 | else fromBase58String(N) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O () = valueOrErrorMessage(getInteger(this, g), "Vault asset decimals not set") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func P () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(G(), A), "Manager address not set")), "Manager address invalid") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | let Q = (1 * (((((((10 * 10) * 10) * 10) * 10) * 10) * 10) * 10)) | |
98 | 98 | ||
99 | 99 | let R = (((7 * 60) * 60) * 24) | |
100 | 100 | ||
101 | 101 | let S = "" | |
102 | 102 | ||
103 | 103 | let T = 0 | |
104 | 104 | ||
105 | 105 | func U (V) = { | |
106 | 106 | let W = O() | |
107 | 107 | if ((W == 6)) | |
108 | 108 | then (V / 100) | |
109 | 109 | else if ((W == 8)) | |
110 | 110 | then V | |
111 | 111 | else throw("Invalid asset decimals") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func X (V) = { | |
116 | 116 | let W = O() | |
117 | 117 | if ((W == 6)) | |
118 | 118 | then (V * 100) | |
119 | 119 | else if ((W == 8)) | |
120 | 120 | then V | |
121 | 121 | else throw("Invalid asset decimals") | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func Y (Z,aa) = fraction(Z, Q, aa, HALFEVEN) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func ab (Z,aa) = fraction(Z, aa, Q, HALFEVEN) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func ac (Z) = if ((Z > 0)) | |
132 | 132 | then Z | |
133 | 133 | else -(Z) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ad (Z,aa) = if ((Z > aa)) | |
137 | 137 | then aa | |
138 | 138 | else Z | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | let ae = (86400 * 1000) | |
142 | 142 | ||
143 | 143 | let af = Y((1 * Q), (4 * Q)) | |
144 | 144 | ||
145 | 145 | func ag (ah) = valueOrErrorMessage(getInteger(this, ah), ("no value for " + ah)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ai (ah) = valueOrElse(getInteger(this, ah), 0) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func aj (ah) = valueOrElse(getInteger(this, ah), Q) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ak () = ai(a) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func al () = aj(i) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func am (an) = ai(D(p, an)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ao (an) = ai(D(q, an)) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ap (an) = ai(D(r, an)) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func aq (an) = ai(D(t, an)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ar (an) = ai(D(s, an)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func as () = ai(d) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func at () = ai(c) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func au () = ai(e) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func av () = ai(k) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aw () = ai(j) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func ax () = ai(l) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func ay () = ai(m) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func az () = ai(b) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aA (an) = ai(D(o, an)) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aB (an) = ai(D(n, an)) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aC () = ai(h) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aD () = valueOrElse(getBoolean(this, u), false) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aE () = lastBlock.timestamp | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aF () = (aE() / 1000) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aG (an) = { | |
218 | 218 | let aH = aE() | |
219 | 219 | let aI = ar(an) | |
220 | 220 | let aJ = if (((aH - aI) > ae)) | |
221 | 221 | then $Tuple3(aH, ap(an), 0) | |
222 | 222 | else $Tuple3(aI, (ap(an) - aq(an)), aq(an)) | |
223 | 223 | let aK = aJ._1 | |
224 | 224 | let aL = aJ._2 | |
225 | 225 | let aM = aJ._3 | |
226 | 226 | $Tuple3(aK, aL, aM) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aN (aO) = { | |
231 | 231 | let aP = if ((ak() > 0)) | |
232 | 232 | then Y((as() + aO), ak()) | |
233 | 233 | else Q | |
234 | 234 | aP | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aQ () = ad(aF(), ay()) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aR (aS) = if (((ak() + aS) == 0)) | |
242 | 242 | then av() | |
243 | 243 | else { | |
244 | 244 | let aT = (aQ() - aw()) | |
245 | 245 | let aU = if ((0 > aT)) | |
246 | 246 | then 0 | |
247 | 247 | else aT | |
248 | 248 | let aV = Y((ax() * aU), (ak() + aS)) | |
249 | 249 | (av() + aV) | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func aW (an,aS) = { | |
254 | 254 | let aX = (aR(aS) - aB(an)) | |
255 | 255 | (ab((am(an) + aS), aX) + aA(an)) | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func aY (an,aS) = { | |
260 | 260 | let aZ = aR(aS) | |
261 | 261 | let ba = aF() | |
262 | 262 | let bb = if ((an != "")) | |
263 | 263 | then $Tuple2(aW(an, aS), aZ) | |
264 | 264 | else $Tuple2(0, 0) | |
265 | 265 | let bc = bb._1 | |
266 | 266 | let bd = bb._2 | |
267 | 267 | $Tuple4(aZ, ba, bc, bd) | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func be (bf,bg) = if (((am(bf) + bg) >= 0)) | |
272 | 272 | then [IntegerEntry(D(p, bf), (am(bf) + bg))] | |
273 | 273 | else throw(((("Vault: can not update user balance. Balance: " + toString(am(bf))) + " change: ") + toString(bg))) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func bh (bf,bi) = [IntegerEntry(D(r, bf), bi)] | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func bj (bf,bi) = [IntegerEntry(D(q, bf), bi)] | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func bk (bg) = { | |
283 | 283 | let bl = as() | |
284 | 284 | if (((bl + bg) >= 0)) | |
285 | 285 | then [IntegerEntry(d, (bl + bg))] | |
286 | 286 | else throw(((("Vault: can not update free balance. Balance: " + toString(bl)) + " change: ") + toString(bg))) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bm (bg) = { | |
291 | 291 | let bl = at() | |
292 | 292 | if (((bl + bg) >= 0)) | |
293 | 293 | then [IntegerEntry(c, (bl + bg))] | |
294 | 294 | else throw(((("Vault: can not update locked balance. Balance: " + toString(bl)) + " change: ") + toString(bg))) | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func bn (bg) = { | |
299 | 299 | let bo = (au() + bg) | |
300 | 300 | let bp = Y(ac(bo), as()) | |
301 | 301 | if ((aC() > bp)) | |
302 | 302 | then [IntegerEntry(e, bo)] | |
303 | 303 | else throw(((((((("Vault: can not update excess balance. Balance: " + toString(au())) + " change: ") + toString(bg)) + " utilization rate: ") + toString(bp)) + " max utilization rate: ") + toString(aC()))) | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bq (bg) = [IntegerEntry(a, (ak() + bg))] | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func br (bi) = [IntegerEntry(i, bi)] | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func bs (bf,bt,bu) = [IntegerEntry(D(s, bf), bt), IntegerEntry(D(t, bf), bu)] | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func bv (bw) = [IntegerEntry(b, (az() + bw))] | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func bx (by) = [IntegerEntry(l, by)] | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func bz (bA,bB) = [IntegerEntry(j, bA), IntegerEntry(m, bB)] | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bC (bD) = [IntegerEntry(k, bD)] | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func bE (an,bF,bG) = [IntegerEntry(D(o, an), bF), IntegerEntry(D(n, an), bG)] | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(bH) | |
332 | - | func initialize (bI,bJ,bK) = if (if (if (if (aD()) | |
332 | + | func migrate () = if ((bH.caller != H())) | |
333 | + | then throw("Invalid migrate parameters") | |
334 | + | else { | |
335 | + | let bI = toBase58String(K()) | |
336 | + | let W = if ((bI == "WAVES")) | |
337 | + | then 8 | |
338 | + | else { | |
339 | + | let bJ = valueOrErrorMessage(assetInfo(fromBase58String(bI)), ("Invalid token id: " + bI)) | |
340 | + | bJ.decimals | |
341 | + | } | |
342 | + | [StringEntry(f, bI), IntegerEntry(g, W), IntegerEntry(h, 0)] | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | ||
347 | + | @Callable(bH) | |
348 | + | func initialize (bK,bI,bL) = if (if (if (if (aD()) | |
333 | 349 | then true | |
334 | 350 | else (bH.caller != this)) | |
335 | 351 | then true | |
336 | - | else (0 > | |
352 | + | else (0 > bL)) | |
337 | 353 | then true | |
338 | - | else ( | |
354 | + | else (bL > Q)) | |
339 | 355 | then throw("Unable to initialize") | |
340 | 356 | else { | |
341 | - | let W = if (( | |
357 | + | let W = if ((bI == "WAVES")) | |
342 | 358 | then 8 | |
343 | 359 | else { | |
344 | - | let | |
345 | - | | |
360 | + | let bJ = valueOrErrorMessage(assetInfo(fromBase58String(bI)), ("Invalid token id: " + bI)) | |
361 | + | bJ.decimals | |
346 | 362 | } | |
347 | - | [StringEntry(v, toString(valueOrErrorMessage(addressFromString( | |
363 | + | [StringEntry(v, toString(valueOrErrorMessage(addressFromString(bK), "Invalid coordinator address"))), StringEntry(f, bI), IntegerEntry(g, W), IntegerEntry(h, bL), BooleanEntry(u, true)] | |
348 | 364 | } | |
349 | 365 | ||
350 | 366 | ||
351 | 367 | ||
352 | 368 | @Callable(bH) | |
353 | 369 | func stake () = { | |
354 | 370 | let an = toString(bH.caller) | |
355 | 371 | let V = X(bH.payments[0].amount) | |
356 | 372 | if (if (if ((bH.payments[0].assetId != M())) | |
357 | 373 | then true | |
358 | 374 | else (size(bH.payments) != 1)) | |
359 | 375 | then true | |
360 | 376 | else !(aD())) | |
361 | 377 | then throw("Invalid call to stake") | |
362 | 378 | else { | |
363 | 379 | let bM = aY(an, 0) | |
364 | 380 | let aZ = bM._1 | |
365 | 381 | let ba = bM._2 | |
366 | 382 | let bc = bM._3 | |
367 | 383 | let bd = bM._4 | |
368 | 384 | let bN = al() | |
369 | 385 | let bO = ao(an) | |
370 | 386 | let bP = Y(V, bN) | |
371 | 387 | let bQ = Y((ab(bP, bN) + ab(am(an), bO)), (bP + am(an))) | |
372 | 388 | let bR = (bP + am(an)) | |
373 | 389 | let bS = ab(bR, af) | |
374 | 390 | let bT = invoke(P(), "deposit", nil, [AttachedPayment(M(), U(V))]) | |
375 | 391 | if ((bT == bT)) | |
376 | 392 | then (((((((bE(an, bc, bd) ++ bC(aZ)) ++ bz(ba, ay())) ++ bk(V)) ++ be(an, bP)) ++ bj(an, bQ)) ++ bh(an, bS)) ++ bq(bP)) | |
377 | 393 | else throw("Strict value is not equal to itself.") | |
378 | 394 | } | |
379 | 395 | } | |
380 | 396 | ||
381 | 397 | ||
382 | 398 | ||
383 | 399 | @Callable(bH) | |
384 | 400 | func unStake (V) = { | |
385 | 401 | let an = toString(bH.caller) | |
386 | 402 | let bU = X(V) | |
387 | 403 | if (if (if ((bH.payments != nil)) | |
388 | 404 | then true | |
389 | 405 | else (0 >= bU)) | |
390 | 406 | then true | |
391 | 407 | else !(aD())) | |
392 | 408 | then throw("Invalid call to unStake") | |
393 | 409 | else { | |
394 | 410 | let bV = aY(an, 0) | |
395 | 411 | let aZ = bV._1 | |
396 | 412 | let ba = bV._2 | |
397 | 413 | let bc = bV._3 | |
398 | 414 | let bd = bV._4 | |
399 | 415 | let bW = aG(an) | |
400 | 416 | let aK = bW._1 | |
401 | 417 | let aL = bW._2 | |
402 | 418 | let aM = bW._3 | |
403 | 419 | let bP = Y(bU, al()) | |
404 | 420 | if ((bP > aL)) | |
405 | 421 | then throw("Invalid call to unStake: withdraw over limit") | |
406 | 422 | else { | |
407 | 423 | let bX = (aM + bP) | |
408 | 424 | if ((bU > as())) | |
409 | 425 | then throw("Invalid call to unStake: balance too low") | |
410 | 426 | else { | |
411 | 427 | let bY = invoke(P(), "withdraw", [L(), U(bU)], nil) | |
412 | 428 | if ((bY == bY)) | |
413 | 429 | then (((((((bE(an, bc, bd) ++ bC(aZ)) ++ bz(ba, ay())) ++ bk(-(bU))) ++ be(an, -(bP))) ++ bq(-(bP))) ++ bs(an, aK, bX)) ++ [ScriptTransfer(bH.caller, U(bU), M())]) | |
414 | 430 | else throw("Strict value is not equal to itself.") | |
415 | 431 | } | |
416 | 432 | } | |
417 | 433 | } | |
418 | 434 | } | |
419 | 435 | ||
420 | 436 | ||
421 | 437 | ||
422 | 438 | @Callable(bH) | |
423 | 439 | func withdrawRewards () = { | |
424 | 440 | let an = toString(bH.caller) | |
425 | 441 | let bZ = aY(an, 0) | |
426 | 442 | let aZ = bZ._1 | |
427 | 443 | let ba = bZ._2 | |
428 | 444 | let bc = bZ._3 | |
429 | 445 | let bd = bZ._4 | |
430 | 446 | if (if ((0 >= bc)) | |
431 | 447 | then true | |
432 | 448 | else !(aD())) | |
433 | 449 | then throw("No reward: Vault") | |
434 | 450 | else ((((bE(an, 0, bd) ++ bC(aZ)) ++ bz(ba, ay())) ++ bv(-(bc))) ++ [ScriptTransfer(bH.caller, bc, J())]) | |
435 | 451 | } | |
436 | 452 | ||
437 | 453 | ||
438 | 454 | ||
439 | 455 | @Callable(bH) | |
440 | 456 | func addFree () = { | |
441 | 457 | let V = X(bH.payments[0].amount) | |
442 | 458 | if (if (if (if ((bH.payments[0].assetId != M())) | |
443 | 459 | then true | |
444 | 460 | else (size(bH.payments) != 1)) | |
445 | 461 | then true | |
446 | 462 | else !(aD())) | |
447 | 463 | then true | |
448 | 464 | else !(if (I(toString(bH.caller))) | |
449 | 465 | then true | |
450 | 466 | else (bH.caller == H()))) | |
451 | 467 | then throw("Invalid addFree params") | |
452 | 468 | else { | |
453 | 469 | let aP = aN(V) | |
454 | 470 | let bT = invoke(P(), "deposit", nil, [AttachedPayment(M(), U(V))]) | |
455 | 471 | if ((bT == bT)) | |
456 | 472 | then (bk(V) ++ br(aP)) | |
457 | 473 | else throw("Strict value is not equal to itself.") | |
458 | 474 | } | |
459 | 475 | } | |
460 | 476 | ||
461 | 477 | ||
462 | 478 | ||
463 | 479 | @Callable(bH) | |
464 | 480 | func addLocked () = { | |
465 | 481 | let V = X(bH.payments[0].amount) | |
466 | 482 | if (if (if (if ((bH.payments[0].assetId != M())) | |
467 | 483 | then true | |
468 | 484 | else (size(bH.payments) != 1)) | |
469 | 485 | then true | |
470 | 486 | else !(aD())) | |
471 | 487 | then true | |
472 | 488 | else !(if (I(toString(bH.caller))) | |
473 | 489 | then true | |
474 | 490 | else (bH.caller == H()))) | |
475 | 491 | then throw("Invalid addLocked params") | |
476 | 492 | else { | |
477 | 493 | let bY = invoke(P(), "deposit", nil, [AttachedPayment(M(), U(V))]) | |
478 | 494 | if ((bY == bY)) | |
479 | 495 | then bm(V) | |
480 | 496 | else throw("Strict value is not equal to itself.") | |
481 | 497 | } | |
482 | 498 | } | |
483 | 499 | ||
484 | 500 | ||
485 | 501 | ||
486 | 502 | @Callable(bH) | |
487 | 503 | func exchangeFreeAndLocked (V) = if (if (!(aD())) | |
488 | 504 | then true | |
489 | 505 | else if (!(I(toString(bH.caller)))) | |
490 | 506 | then (bH.caller != H()) | |
491 | 507 | else false) | |
492 | 508 | then throw("Invalid exchangeFreeAndLocked params") | |
493 | 509 | else { | |
494 | 510 | let bU = X(V) | |
495 | 511 | let aP = aN(-(bU)) | |
496 | 512 | ((bm(bU) ++ bk(-(bU))) ++ br(aP)) | |
497 | 513 | } | |
498 | 514 | ||
499 | 515 | ||
500 | 516 | ||
501 | 517 | @Callable(bH) | |
502 | 518 | func withdrawLocked (V) = if (if (if (!(aD())) | |
503 | 519 | then true | |
504 | 520 | else (0 >= V)) | |
505 | 521 | then true | |
506 | 522 | else !(I(toString(bH.caller)))) | |
507 | 523 | then throw("Invalid withdrawLocked params") | |
508 | 524 | else { | |
509 | 525 | let bU = X(V) | |
510 | 526 | let bY = invoke(P(), "withdraw", [L(), U(bU)], nil) | |
511 | 527 | if ((bY == bY)) | |
512 | 528 | then (bm(-(bU)) ++ [ScriptTransfer(bH.caller, U(bU), M())]) | |
513 | 529 | else throw("Strict value is not equal to itself.") | |
514 | 530 | } | |
515 | 531 | ||
516 | 532 | ||
517 | 533 | ||
518 | 534 | @Callable(bH) | |
519 | 535 | func addRewards () = if (if (if ((bH.payments[0].assetId != J())) | |
520 | 536 | then true | |
521 | 537 | else (size(bH.payments) != 1)) | |
522 | 538 | then true | |
523 | 539 | else !(aD())) | |
524 | 540 | then throw("Invalid addRewards params") | |
525 | 541 | else { | |
526 | 542 | let bF = bH.payments[0].amount | |
527 | 543 | let aZ = aY(S, T)._1 | |
528 | 544 | let ca = aF() | |
529 | 545 | let cb = if ((ca > ay())) | |
530 | 546 | then (bF / R) | |
531 | 547 | else { | |
532 | 548 | let cc = (ay() - ca) | |
533 | 549 | let cd = (ax() * cc) | |
534 | 550 | ((bF + cd) / R) | |
535 | 551 | } | |
536 | 552 | (((bx(cb) ++ bC(aZ)) ++ bv(bF)) ++ bz(ca, (ca + R))) | |
537 | 553 | } | |
538 | 554 | ||
539 | 555 | ||
540 | 556 | ||
541 | 557 | @Callable(bH) | |
542 | 558 | func ackRewards () = { | |
543 | 559 | let ce = invoke(P(), "claimProfit", [L()], nil) | |
544 | 560 | if ((ce == ce)) | |
545 | 561 | then { | |
546 | 562 | let cf = { | |
547 | 563 | let cg = ce | |
548 | 564 | if ($isInstanceOf(cg, "Int")) | |
549 | 565 | then { | |
550 | 566 | let ch = cg | |
551 | 567 | X(ch) | |
552 | 568 | } | |
553 | 569 | else throw("Invalid claimProfit response") | |
554 | 570 | } | |
555 | 571 | let ci = if ((cf > 0)) | |
556 | 572 | then { | |
557 | 573 | let aP = aN(cf) | |
558 | 574 | let bT = invoke(P(), "deposit", nil, [AttachedPayment(M(), U(cf))]) | |
559 | 575 | if ((bT == bT)) | |
560 | 576 | then (bk(cf) ++ br(aP)) | |
561 | 577 | else throw("Strict value is not equal to itself.") | |
562 | 578 | } | |
563 | 579 | else nil | |
564 | 580 | if ((ci == ci)) | |
565 | 581 | then ci | |
566 | 582 | else throw("Strict value is not equal to itself.") | |
567 | 583 | } | |
568 | 584 | else throw("Strict value is not equal to itself.") | |
569 | 585 | } | |
570 | 586 | ||
571 | 587 | ||
572 | 588 | ||
573 | 589 | @Callable(bH) | |
574 | 590 | func view_reward (an) = { | |
575 | 591 | let bl = am(an) | |
576 | 592 | let cj = ab(ao(an), bl) | |
577 | 593 | let ck = ab(al(), bl) | |
578 | 594 | let cl = (ck - cj) | |
579 | 595 | throw(toString(cl)) | |
580 | 596 | } | |
581 | 597 | ||
582 | 598 | ||
583 | 599 | ||
584 | 600 | @Callable(bH) | |
585 | 601 | func view_stakingReward (an) = { | |
586 | 602 | let bc = aY(an, 0)._3 | |
587 | 603 | throw(toString(U(bc))) | |
588 | 604 | } | |
589 | 605 | ||
590 | 606 | ||
591 | 607 | ||
592 | 608 | @Callable(bH) | |
593 | 609 | func view_withdrawLimit (an) = { | |
594 | 610 | let aL = aG(an)._2 | |
595 | 611 | let cm = U(ab(aL, al())) | |
596 | 612 | throw(toString(cm)) | |
597 | 613 | } | |
598 | 614 | ||
599 | 615 | ||
600 | 616 | @Verifier(cn) | |
601 | 617 | func co () = { | |
602 | 618 | let cp = getString(this, v) | |
603 | 619 | if (isDefined(cp)) | |
604 | 620 | then { | |
605 | 621 | let cq = getString(addressFromStringValue(value(cp)), z) | |
606 | 622 | if (isDefined(cq)) | |
607 | 623 | then valueOrElse(getBoolean(addressFromStringValue(value(cq)), ((("status_" + toString(this)) + "_") + toBase58String(cn.id))), false) | |
608 | 624 | else throw("unable to verify: admin not set in coordinator") | |
609 | 625 | } | |
610 | 626 | else sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey) | |
611 | 627 | } | |
612 | 628 |
github/deemru/w8io/026f985 66.04 ms ◑