tx · uK99eSZYjTexR4eBrUtZbSj1RQYAFXeutpkkXatwBLM 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx: -0.01500000 Waves 2022.08.15 19:08 [2185793] smart account 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx > SELF 0.00000000 Waves
{ "type": 13, "id": "uK99eSZYjTexR4eBrUtZbSj1RQYAFXeutpkkXatwBLM", "fee": 1500000, "feeAssetId": null, "timestamp": 1660579721723, "version": 2, "chainId": 84, "sender": "3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx", "senderPublicKey": "5cWdpE4X7mfNkLmxJ389ws6qGZof4fwydqMcqPexhJ7w", "proofs": [ "2gwH8bU85v27tYMhLumhp5FKnDLVf3y2FkUnvsyCnG9WZd72vcSv1D5SqCb5oXBWs3LAdMsgSkZNYdrHuYehrvM9" ], "script": "base64:AAIFAAAAAAAAAE0IAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAkSBQoDCAgBEgUKAwEIARIECgIIAQAAACQAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAAhfUmVzZXJ2ZQAAAAARbWluaW11bUxvY2tBbW91bnQCAAAADl9NaW5Mb2NrQW1vdW50AAAAABFtYXhpbXVtTG9ja0Ftb3VudAIAAAAOX01heExvY2tBbW91bnQAAAAACWFzc2V0TGlzdAUAAAADbmlsAAAAABF1bmxvY2tFbGlnaWJpbGl0eQIAAAAcX0VsaWdpYmxlX3RvX3VubG9ja19hdF9ibG9jawAAAAAMbG9ja2VkQW1vdW50AgAAAA5fQW1vdW50X2xvY2tlZAAAAAALbG9ja2VkQXNzZXQCAAAADV9Bc3NldF9sb2NrZWQAAAAABHVzZXICAAAABV9Vc2VyAAAAAApBUFlfQW1vdW50AgAAAAtfQVBZX2Ftb3VudAAAAAARdG90YWxMb2NrZWRBTW91bnQCAAAAFF9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AAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGdXNlcklkBQAAAA11TG9ja2VkQW1vdW50CQACWQAAAAEFAAAADHVMb2NrZWRBc3NldAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAASdUFscmVhZHlDbGFpbWVkS2V5BgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAC65jJg==", "height": 2185793, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: dMLjbkmZnzYnawCidJSNLeXrV647NcM8oqbVF7QcwrS Next: E5vs2SijNPsW5C1K6G5URagfuFz5C3tUXDXAxXoTBLbe Diff:
Old | New | Differences | |
---|---|---|---|
90 | 90 | else StringEntry(v, H) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func J (K) = if ((K != q)) | |
94 | - | then if ((K != r)) | |
95 | - | then if ((K != s)) | |
96 | - | then throw("invalid locking period") | |
93 | + | func J (K) = if ((K != t)) | |
94 | + | then if ((K != q)) | |
95 | + | then if ((K != r)) | |
96 | + | then if ((K != s)) | |
97 | + | then throw("invalid locking period") | |
98 | + | else (((K + 2) * p) + height) | |
97 | 99 | else (((K + 2) * p) + height) | |
98 | 100 | else (((K + 2) * p) + height) | |
99 | 101 | else (((K + 2) * p) + height) | |
353 | 355 | let aO = C(u((ab + d)), "internal error: maximum staking amount not specified") | |
354 | 356 | let aP = z(if ((aN > aM)) | |
355 | 357 | then true | |
356 | - | else (aM > aO), "staking amount is out of range") | |
358 | + | else (aM > aO), "staking amount is out of range for the selected asset") | |
357 | 359 | if ((aP == aP)) | |
358 | 360 | then { | |
359 | 361 | let aQ = (aL + k) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = this | |
5 | 5 | ||
6 | 6 | let b = "_Reserve" | |
7 | 7 | ||
8 | 8 | let c = "_MinLockAmount" | |
9 | 9 | ||
10 | 10 | let d = "_MaxLockAmount" | |
11 | 11 | ||
12 | 12 | let e = nil | |
13 | 13 | ||
14 | 14 | let f = "_Eligible_to_unlock_at_block" | |
15 | 15 | ||
16 | 16 | let g = "_Amount_locked" | |
17 | 17 | ||
18 | 18 | let h = "_Asset_locked" | |
19 | 19 | ||
20 | 20 | let i = "_User" | |
21 | 21 | ||
22 | 22 | let j = "_APY_amount" | |
23 | 23 | ||
24 | 24 | let k = "_Total_Locked_Amount" | |
25 | 25 | ||
26 | 26 | let l = "_Days_locked" | |
27 | 27 | ||
28 | 28 | let m = "_Entry_Index" | |
29 | 29 | ||
30 | 30 | let n = "_Already_Claimed" | |
31 | 31 | ||
32 | 32 | let o = "admin_" | |
33 | 33 | ||
34 | 34 | let p = 1440 | |
35 | 35 | ||
36 | 36 | let q = 30 | |
37 | 37 | ||
38 | 38 | let r = 60 | |
39 | 39 | ||
40 | 40 | let s = 90 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | func u (v) = getInteger(this, v) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (v) = getString(this, v) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (v) = value(getInteger(this, v)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (v) = value(getString(this, v)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func z (A,B) = if (A) | |
57 | 57 | then throw(B) | |
58 | 58 | else true | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (D,B) = { | |
62 | 62 | let E = D | |
63 | 63 | if ($isInstanceOf(E, "Int")) | |
64 | 64 | then { | |
65 | 65 | let D = E | |
66 | 66 | D | |
67 | 67 | } | |
68 | 68 | else throw(B) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func F (D,B) = { | |
73 | 73 | let E = D | |
74 | 74 | if ($isInstanceOf(E, "String")) | |
75 | 75 | then { | |
76 | 76 | let D = E | |
77 | 77 | D | |
78 | 78 | } | |
79 | 79 | else throw(B) | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func G (v,H) = if ((0 > H)) | |
84 | 84 | then throw(((("writing negative value " + toString(H)) + " for key ") + v)) | |
85 | 85 | else IntegerEntry(v, H) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I (v,H) = if ((" " == H)) | |
89 | 89 | then throw(("writing an empty string " + H)) | |
90 | 90 | else StringEntry(v, H) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func J (K) = if ((K != q)) | |
94 | - | then if ((K != r)) | |
95 | - | then if ((K != s)) | |
96 | - | then throw("invalid locking period") | |
93 | + | func J (K) = if ((K != t)) | |
94 | + | then if ((K != q)) | |
95 | + | then if ((K != r)) | |
96 | + | then if ((K != s)) | |
97 | + | then throw("invalid locking period") | |
98 | + | else (((K + 2) * p) + height) | |
97 | 99 | else (((K + 2) * p) + height) | |
98 | 100 | else (((K + 2) * p) + height) | |
99 | 101 | else (((K + 2) * p) + height) | |
100 | 102 | ||
101 | 103 | ||
102 | 104 | func L (M) = if ((0 >= M)) | |
103 | 105 | then 0 | |
104 | 106 | else { | |
105 | 107 | let N = (M / p) | |
106 | 108 | N | |
107 | 109 | } | |
108 | 110 | ||
109 | 111 | ||
110 | 112 | func O (v,H) = if (!(isDefined(w(v)))) | |
111 | 113 | then I(v, H) | |
112 | 114 | else throw(("already initialized: " + v)) | |
113 | 115 | ||
114 | 116 | ||
115 | 117 | func P (v,H) = if (!(isDefined(w(v)))) | |
116 | 118 | then G(v, H) | |
117 | 119 | else throw(("already initialized: " + v)) | |
118 | 120 | ||
119 | 121 | ||
120 | 122 | func Q (R) = { | |
121 | 123 | let S = toBase58String(R.caller.bytes) | |
122 | 124 | let T = (o + S) | |
123 | 125 | let E = w(o) | |
124 | 126 | if ($isInstanceOf(E, "String")) | |
125 | 127 | then { | |
126 | 128 | let U = E | |
127 | 129 | if ((S != w(o))) | |
128 | 130 | then throw("unauthorized") | |
129 | 131 | else true | |
130 | 132 | } | |
131 | 133 | else { | |
132 | 134 | let V = w(T) | |
133 | 135 | if ($isInstanceOf(V, "String")) | |
134 | 136 | then { | |
135 | 137 | let W = V | |
136 | 138 | if ((S != w(T))) | |
137 | 139 | then throw("unauthorized") | |
138 | 140 | else true | |
139 | 141 | } | |
140 | 142 | else throw("unauthorizd") | |
141 | 143 | } | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | func X (v,Y) = { | |
146 | 148 | let E = Y | |
147 | 149 | if ($isInstanceOf(E, "String")) | |
148 | 150 | then { | |
149 | 151 | let Y = E | |
150 | 152 | O(v, Y) | |
151 | 153 | } | |
152 | 154 | else if ($isInstanceOf(E, "Int")) | |
153 | 155 | then { | |
154 | 156 | let Y = E | |
155 | 157 | P(v, Y) | |
156 | 158 | } | |
157 | 159 | else throw("unsupported config type") | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | ||
161 | 163 | func Z (v) = { | |
162 | 164 | let aa = u(v) | |
163 | 165 | if (isDefined(aa)) | |
164 | 166 | then (value(aa) + 1) | |
165 | 167 | else 0 | |
166 | 168 | } | |
167 | 169 | ||
168 | 170 | ||
169 | 171 | @Callable(R) | |
170 | 172 | func addAsset (ab,ac,ad,ae,af) = { | |
171 | 173 | let ag = Q(R) | |
172 | 174 | if ((ag == ag)) | |
173 | 175 | then { | |
174 | 176 | let ah = (ab + b) | |
175 | 177 | let ai = (ab + c) | |
176 | 178 | let aj = (ab + d) | |
177 | 179 | let ak = if ((af > ae)) | |
178 | 180 | then [P(ai, ae), P(aj, af)] | |
179 | 181 | else [P(ai, af), P(aj, ae)] | |
180 | 182 | ([O(ab, ac), O(ah, ad)] ++ ak) | |
181 | 183 | } | |
182 | 184 | else throw("Strict value is not equal to itself.") | |
183 | 185 | } | |
184 | 186 | ||
185 | 187 | ||
186 | 188 | ||
187 | 189 | @Callable(R) | |
188 | 190 | func deleteAsset (ab) = { | |
189 | 191 | let ag = Q(R) | |
190 | 192 | if ((ag == ag)) | |
191 | 193 | then { | |
192 | 194 | let al = F(w(ab), (("asset with ticker " + ab) + " not found")) | |
193 | 195 | if ((al == al)) | |
194 | 196 | then [DeleteEntry(ab), DeleteEntry((ab + c)), DeleteEntry((ab + d)), DeleteEntry((ab + b))] | |
195 | 197 | else throw("Strict value is not equal to itself.") | |
196 | 198 | } | |
197 | 199 | else throw("Strict value is not equal to itself.") | |
198 | 200 | } | |
199 | 201 | ||
200 | 202 | ||
201 | 203 | ||
202 | 204 | @Callable(R) | |
203 | 205 | func _getAssetIdByTicker (ab) = { | |
204 | 206 | let ag = Q(R) | |
205 | 207 | if ((ag == ag)) | |
206 | 208 | then { | |
207 | 209 | let U = F(w(ab), "asset not found") | |
208 | 210 | $Tuple2(nil, U) | |
209 | 211 | } | |
210 | 212 | else throw("Strict value is not equal to itself.") | |
211 | 213 | } | |
212 | 214 | ||
213 | 215 | ||
214 | 216 | ||
215 | 217 | @Callable(R) | |
216 | 218 | func init (am) = { | |
217 | 219 | let an = valueOrErrorMessage(addressFromString(am), "invalid address") | |
218 | 220 | [O(o, toString(an))] | |
219 | 221 | } | |
220 | 222 | ||
221 | 223 | ||
222 | 224 | ||
223 | 225 | @Callable(R) | |
224 | 226 | func _deleteEntry (v) = { | |
225 | 227 | let ag = Q(R) | |
226 | 228 | if ((ag == ag)) | |
227 | 229 | then [DeleteEntry(v)] | |
228 | 230 | else throw("Strict value is not equal to itself.") | |
229 | 231 | } | |
230 | 232 | ||
231 | 233 | ||
232 | 234 | ||
233 | 235 | @Callable(R) | |
234 | 236 | func addAdmin (am) = { | |
235 | 237 | let ag = Q(R) | |
236 | 238 | if ((ag == ag)) | |
237 | 239 | then { | |
238 | 240 | let an = valueOrErrorMessage(addressFromString(am), "invalid address") | |
239 | 241 | let ao = (o + toString(an)) | |
240 | 242 | [O(ao, am)] | |
241 | 243 | } | |
242 | 244 | else throw("Strict value is not equal to itself.") | |
243 | 245 | } | |
244 | 246 | ||
245 | 247 | ||
246 | 248 | ||
247 | 249 | @Callable(R) | |
248 | 250 | func changeMainAdmin (ap) = { | |
249 | 251 | let aq = Q(R) | |
250 | 252 | if ((aq == aq)) | |
251 | 253 | then { | |
252 | 254 | let an = valueOrErrorMessage(addressFromString(ap), "invalid address") | |
253 | 255 | let ar = DeleteEntry(o) | |
254 | 256 | if ((ar == ar)) | |
255 | 257 | then [O(o, toString(an))] | |
256 | 258 | else throw("Strict value is not equal to itself.") | |
257 | 259 | } | |
258 | 260 | else throw("Strict value is not equal to itself.") | |
259 | 261 | } | |
260 | 262 | ||
261 | 263 | ||
262 | 264 | ||
263 | 265 | @Callable(R) | |
264 | 266 | func updateOtherAdminAddress (ap) = { | |
265 | 267 | let aq = Q(R) | |
266 | 268 | if ((aq == aq)) | |
267 | 269 | then { | |
268 | 270 | let an = valueOrErrorMessage(addressFromString(ap), "invalid address") | |
269 | 271 | let as = toString(R.caller) | |
270 | 272 | let T = (o + as) | |
271 | 273 | let at = F(w(T), "no previous address found") | |
272 | 274 | if ((at == at)) | |
273 | 275 | then { | |
274 | 276 | let au = DeleteEntry(T) | |
275 | 277 | if ((au == au)) | |
276 | 278 | then [O(T, toString(an))] | |
277 | 279 | else throw("Strict value is not equal to itself.") | |
278 | 280 | } | |
279 | 281 | else throw("Strict value is not equal to itself.") | |
280 | 282 | } | |
281 | 283 | else throw("Strict value is not equal to itself.") | |
282 | 284 | } | |
283 | 285 | ||
284 | 286 | ||
285 | 287 | ||
286 | 288 | @Callable(R) | |
287 | 289 | func removeOtherAdmin (av) = { | |
288 | 290 | let aq = Q(R) | |
289 | 291 | if ((aq == aq)) | |
290 | 292 | then { | |
291 | 293 | let an = valueOrErrorMessage(addressFromString(av), "invalid address") | |
292 | 294 | let aw = (o + toString(an)) | |
293 | 295 | let ax = DeleteEntry(aw) | |
294 | 296 | if ((ax == ax)) | |
295 | 297 | then nil | |
296 | 298 | else throw("Strict value is not equal to itself.") | |
297 | 299 | } | |
298 | 300 | else throw("Strict value is not equal to itself.") | |
299 | 301 | } | |
300 | 302 | ||
301 | 303 | ||
302 | 304 | ||
303 | 305 | @Callable(R) | |
304 | 306 | func updateConfigValue (v,Y) = { | |
305 | 307 | let aq = Q(R) | |
306 | 308 | if ((aq == aq)) | |
307 | 309 | then { | |
308 | 310 | let ar = DeleteEntry(v) | |
309 | 311 | if ((ar == ar)) | |
310 | 312 | then [X(v, Y)] | |
311 | 313 | else throw("Strict value is not equal to itself.") | |
312 | 314 | } | |
313 | 315 | else throw("Strict value is not equal to itself.") | |
314 | 316 | } | |
315 | 317 | ||
316 | 318 | ||
317 | 319 | ||
318 | 320 | @Callable(R) | |
319 | 321 | func _getDaysLeftToClaim (ay,ab,az) = { | |
320 | 322 | let aA = Q(R) | |
321 | 323 | if ((aA == aA)) | |
322 | 324 | then { | |
323 | 325 | let aB = valueOrErrorMessage(addressFromString(ay), "invalid address") | |
324 | 326 | if ((aB == aB)) | |
325 | 327 | then { | |
326 | 328 | let aC = ((("_" + ab) + "_") + toString(az)) | |
327 | 329 | let aD = ((ay + aC) + f) | |
328 | 330 | let aE = valueOrErrorMessage(u(aD), ("no entry for " + ay)) | |
329 | 331 | let aF = L((aE - height)) | |
330 | 332 | $Tuple2(nil, aF) | |
331 | 333 | } | |
332 | 334 | else throw("Strict value is not equal to itself.") | |
333 | 335 | } | |
334 | 336 | else throw("Strict value is not equal to itself.") | |
335 | 337 | } | |
336 | 338 | ||
337 | 339 | ||
338 | 340 | ||
339 | 341 | @Callable(R) | |
340 | 342 | func Lock (aG,ab,az) = { | |
341 | 343 | let aB = z((1 != size(R.payments)), "attach amount you want to lock") | |
342 | 344 | if ((aB == aB)) | |
343 | 345 | then { | |
344 | 346 | let aH = valueOrErrorMessage(R.payments[0].assetId, "no assetId for the attached asset") | |
345 | 347 | let aI = toBase58String(aH) | |
346 | 348 | let aJ = z((w(ab) != aI), "asset not supported") | |
347 | 349 | if ((aJ == aJ)) | |
348 | 350 | then { | |
349 | 351 | let aK = aG | |
350 | 352 | let aL = toBase58String(R.caller.bytes) | |
351 | 353 | let aM = R.payments[0].amount | |
352 | 354 | let aN = C(u((ab + c)), "internal error: minimum stacking amount not specified") | |
353 | 355 | let aO = C(u((ab + d)), "internal error: maximum staking amount not specified") | |
354 | 356 | let aP = z(if ((aN > aM)) | |
355 | 357 | then true | |
356 | - | else (aM > aO), "staking amount is out of range") | |
358 | + | else (aM > aO), "staking amount is out of range for the selected asset") | |
357 | 359 | if ((aP == aP)) | |
358 | 360 | then { | |
359 | 361 | let aQ = (aL + k) | |
360 | 362 | let aR = if (!(isDefined(u(aQ)))) | |
361 | 363 | then 0 | |
362 | 364 | else (aM + value(u(aQ))) | |
363 | 365 | let aS = z((aR > aO), "you have maxed out your quota") | |
364 | 366 | if ((aS == aS)) | |
365 | 367 | then { | |
366 | 368 | let aT = toString(az) | |
367 | 369 | let aU = ((("_" + ab) + "_") + aT) | |
368 | 370 | let aV = (aL + aU) | |
369 | 371 | let aW = ((aL + aU) + i) | |
370 | 372 | let aX = ((aL + aU) + h) | |
371 | 373 | let aY = ((aL + aU) + l) | |
372 | 374 | let aZ = ((aL + aU) + g) | |
373 | 375 | let ba = ((aL + aU) + j) | |
374 | 376 | let aD = ((aL + aU) + f) | |
375 | 377 | let bb = ((aL + aU) + n) | |
376 | 378 | let bc = invoke(Address(fromBase58String(y(o))), "getAPYAmount", [aL, ab, az], nil) | |
377 | 379 | let bd = { | |
378 | 380 | let E = bc | |
379 | 381 | if ($isInstanceOf(E, "Int")) | |
380 | 382 | then { | |
381 | 383 | let be = E | |
382 | 384 | be | |
383 | 385 | } | |
384 | 386 | else throw(("could not get the APY amount for " + aL)) | |
385 | 387 | } | |
386 | 388 | [P(aV, az), O(aW, aL), O(aX, aI), P(aY, aK), P(aZ, R.payments[0].amount), P(aQ, aR), P(aD, J(aG)), P(ba, bd), BooleanEntry(bb, false)] | |
387 | 389 | } | |
388 | 390 | else throw("Strict value is not equal to itself.") | |
389 | 391 | } | |
390 | 392 | else throw("Strict value is not equal to itself.") | |
391 | 393 | } | |
392 | 394 | else throw("Strict value is not equal to itself.") | |
393 | 395 | } | |
394 | 396 | else throw("Strict value is not equal to itself.") | |
395 | 397 | } | |
396 | 398 | ||
397 | 399 | ||
398 | 400 | ||
399 | 401 | @Callable(R) | |
400 | 402 | func Claim (ab,az) = { | |
401 | 403 | let aL = toString(R.caller) | |
402 | 404 | let aI = valueOrErrorMessage(w(ab), "invalid asset") | |
403 | 405 | if ((aI == aI)) | |
404 | 406 | then { | |
405 | 407 | let aU = ((("_" + ab) + "_") + toString(az)) | |
406 | 408 | let bf = valueOrErrorMessage(w(((aL + aU) + i)), ("no entry found for user " + aL)) | |
407 | 409 | if ((bf == bf)) | |
408 | 410 | then { | |
409 | 411 | let bg = valueOrErrorMessage(w(((aL + aU) + h)), "asset not locked by user") | |
410 | 412 | let bh = ((aL + aU) + n) | |
411 | 413 | let aA = z((valueOrErrorMessage(getBoolean(bh), "cannot ascertain claimability") == true), (("user + " + aL) + " already claimed")) | |
412 | 414 | if ((aA == aA)) | |
413 | 415 | then { | |
414 | 416 | let aZ = x(((aL + aU) + g)) | |
415 | 417 | let bi = addressFromStringValue(F(w((ab + b)), "internal error: no reserve found")) | |
416 | 418 | let bj = x(((aL + aU) + j)) | |
417 | 419 | let bk = x(((aL + aU) + f)) | |
418 | 420 | let M = if ((0 >= (bk - height))) | |
419 | 421 | then 0 | |
420 | 422 | else (bk - height) | |
421 | 423 | let bl = L(M) | |
422 | 424 | let aB = z((bk > height), (toString(bl) + " days left to claim")) | |
423 | 425 | if ((aB == aB)) | |
424 | 426 | then { | |
425 | 427 | let bm = invoke(bi, "transferInterest", [aL, bj, fromBase58String(bg)], nil) | |
426 | 428 | if ((bm == bm)) | |
427 | 429 | then [ScriptTransfer(addressFromStringValue(aL), aZ, fromBase58String(bg)), BooleanEntry(bh, true)] | |
428 | 430 | else throw("Strict value is not equal to itself.") | |
429 | 431 | } | |
430 | 432 | else throw("Strict value is not equal to itself.") | |
431 | 433 | } | |
432 | 434 | else throw("Strict value is not equal to itself.") | |
433 | 435 | } | |
434 | 436 | else throw("Strict value is not equal to itself.") | |
435 | 437 | } | |
436 | 438 | else throw("Strict value is not equal to itself.") | |
437 | 439 | } | |
438 | 440 | ||
439 | 441 |
github/deemru/w8io/169f3d6 78.00 ms ◑