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