tx · 7J7uoWgHq71coxdhgtzi6qdNK1wgHG2cWKgaompgievq 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx: -0.01000000 Waves 2023.03.09 01:33 [2481716] smart account 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx > SELF 0.00000000 Waves
{ "type": 13, "id": "7J7uoWgHq71coxdhgtzi6qdNK1wgHG2cWKgaompgievq", "fee": 1000000, "feeAssetId": null, "timestamp": 1678314859277, "version": 2, "chainId": 84, "sender": "3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx", "senderPublicKey": "D35PGQCSSdrp9pvujggj7b2DaCK1BhcU3kho7tikKJYs", "proofs": [ "VwTVA2uv8t6Mtqrk8mS4H8tsPtwrBx27EYqf7Mofgxoniq42Nnbt78sN4ymdxrC5BqcnFX4LpC5k7GhJbateh6i" ], "script": "base64:BgIiCAISABIECgIBARIAEgMKAQESBAoCGBESBAoCCAgSAwoBCAMADG9wdGlvbnNfYWRkcgkBB0FkZHJlc3MBARoBVEFb+Cv2F+oqocvEivH7x7uyIGEx/ocgwQAEdFJVQgEgv7I1LEj/fS4nZAGEmW42z/vK94nfeiKN08fw7a6U2ZsABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBwFpARRyZWlzc3VlVG9rZW5zTG95YWx0eQADCQAAAgkAkAMBCAUBaQhwYXltZW50cwAACQACAQIUUGF5bWVudCBub3QgYXR0YWNoZWQECGFzc2V0X2lkBAckbWF0Y2gwCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCaWQFByRtYXRjaDAFAmlkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAQKYXNzZXRfaW5mbwQHJG1hdGNoMAkA7AcBBQhhc3NldF9pZAMJAAECBQckbWF0Y2gwAgVBc3NldAQFYXNzZXQFByRtYXRjaDAFBWFzc2V0CQACAQIbQ2FuJ3Q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NBZG1pbjogBQdpc0FkbWluAhQsIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgICLCAJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlectwhXk=", "height": 2481716, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31i2i9Fhn4KWnmeS8d3LGY5EX5cnfv7irQZFSfuCN3HY Next: 4WUZLyC84Vbp9hx3jcK8bgJBY5PjqPAfHR4yMg66td4c Diff:
Old | New | Differences | |
---|---|---|---|
59 | 59 | let o = f | |
60 | 60 | $Tuple2([ScriptTransfer(d.caller, j, b), IntegerEntry(("l_b_" + toBase58String(e)), j)], unit) | |
61 | 61 | } | |
62 | - | else throw("Incorrect invoke result") | |
62 | + | else throw({ | |
63 | + | let p = n | |
64 | + | if ($isInstanceOf(p, "String")) | |
65 | + | then p | |
66 | + | else throw(($getType(p) + " couldn't be cast to String")) | |
67 | + | }) | |
63 | 68 | } | |
64 | 69 | else throw("Strict value is not equal to itself.") | |
65 | 70 | } | |
68 | 73 | ||
69 | 74 | ||
70 | 75 | @Callable(d) | |
71 | - | func issueBill ( | |
72 | - | let | |
73 | - | let | |
74 | - | let f = getInteger(this, | |
76 | + | func issueBill (q,r) = { | |
77 | + | let s = toBase58String(d.caller.bytes) | |
78 | + | let t = { | |
79 | + | let f = getInteger(this, s) | |
75 | 80 | if ($isInstanceOf(f, "Int")) | |
76 | 81 | then { | |
77 | - | let | |
78 | - | | |
82 | + | let u = f | |
83 | + | u | |
79 | 84 | } | |
80 | 85 | else 0 | |
81 | 86 | } | |
82 | - | let | |
87 | + | let v = { | |
83 | 88 | let f = getString(a, "min_bill_deposit") | |
84 | 89 | if ($isInstanceOf(f, "Unit")) | |
85 | 90 | then "0" | |
86 | 91 | else if ($isInstanceOf(f, "String")) | |
87 | 92 | then { | |
88 | - | let | |
89 | - | | |
93 | + | let w = f | |
94 | + | w | |
90 | 95 | } | |
91 | 96 | else throw("Match error") | |
92 | 97 | } | |
93 | - | let | |
94 | - | let f = parseInt(split( | |
98 | + | let x = { | |
99 | + | let f = parseInt(split(v, ".")[0]) | |
95 | 100 | if ($isInstanceOf(f, "Unit")) | |
96 | 101 | then 0 | |
97 | 102 | else if ($isInstanceOf(f, "Int")) | |
98 | 103 | then { | |
99 | - | let | |
100 | - | | |
104 | + | let y = f | |
105 | + | y | |
101 | 106 | } | |
102 | 107 | else throw("Match error") | |
103 | 108 | } | |
104 | - | let | |
109 | + | let z = { | |
105 | 110 | let f = getString(a, "exchange_rate") | |
106 | 111 | if ($isInstanceOf(f, "Unit")) | |
107 | 112 | then "0" | |
108 | 113 | else if ($isInstanceOf(f, "String")) | |
109 | 114 | then { | |
110 | - | let | |
111 | - | | |
115 | + | let w = f | |
116 | + | w | |
112 | 117 | } | |
113 | 118 | else throw("Match error") | |
114 | 119 | } | |
115 | - | let | |
116 | - | let f = parseInt( | |
120 | + | let A = { | |
121 | + | let f = parseInt(z) | |
117 | 122 | if ($isInstanceOf(f, "Unit")) | |
118 | 123 | then 0 | |
119 | 124 | else if ($isInstanceOf(f, "Int")) | |
120 | 125 | then { | |
121 | - | let | |
122 | - | | |
126 | + | let y = f | |
127 | + | y | |
123 | 128 | } | |
124 | 129 | else throw("Match error") | |
125 | 130 | } | |
126 | - | let | |
131 | + | let B = { | |
127 | 132 | let f = getString(a, "share_guarantee_fee") | |
128 | 133 | if ($isInstanceOf(f, "Unit")) | |
129 | 134 | then "0" | |
130 | 135 | else if ($isInstanceOf(f, "String")) | |
131 | 136 | then { | |
132 | - | let | |
133 | - | | |
137 | + | let w = f | |
138 | + | w | |
134 | 139 | } | |
135 | 140 | else throw("Match error") | |
136 | 141 | } | |
137 | - | let | |
138 | - | let f = parseInt( | |
142 | + | let C = { | |
143 | + | let f = parseInt(B) | |
139 | 144 | if ($isInstanceOf(f, "Unit")) | |
140 | 145 | then 0 | |
141 | 146 | else if ($isInstanceOf(f, "Int")) | |
142 | 147 | then { | |
143 | - | let | |
144 | - | | |
148 | + | let y = f | |
149 | + | y | |
145 | 150 | } | |
146 | 151 | else throw("Match error") | |
147 | 152 | } | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | if ((( | |
152 | - | then throw((((("The security deposit must be more than " + | |
153 | - | else if ((0 > | |
153 | + | let D = (((x * A) * 100) / C) | |
154 | + | let E = ((q * A) / C) | |
155 | + | let F = (t - q) | |
156 | + | if (((x * 100) > q)) | |
157 | + | then throw((((("The security deposit must be more than " + v) + ". You set the size: ") + toString((q / 100))) + ".00")) | |
158 | + | else if ((0 > F)) | |
154 | 159 | then throw("Not enough balance") | |
155 | - | else if (( | |
156 | - | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString( | |
157 | - | else if (( | |
158 | - | then throw((((("The value of the token cannot exceed the maximum " + toString( | |
160 | + | else if ((D > r)) | |
161 | + | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(D)) + "₽ (") + v) + "tUSD)")) | |
162 | + | else if ((r > E)) | |
163 | + | then throw((((("The value of the token cannot exceed the maximum " + toString(E)) + "₽ of the guarantee deposit (") + toString((q / 100))) + "tUSD)")) | |
159 | 164 | else { | |
160 | - | let | |
161 | - | let g = calculateAssetId( | |
162 | - | $Tuple2([IntegerEntry( | |
165 | + | let G = Issue(("bill for:" + toString((q / 100))), ((s + ":") + toString(r)), 1, 0, false) | |
166 | + | let g = calculateAssetId(G) | |
167 | + | $Tuple2([IntegerEntry(s, F), G, ScriptTransfer(d.caller, 1, g), IntegerEntry(("l_u_" + toBase58String(g)), q)], unit) | |
163 | 168 | } | |
164 | 169 | } | |
165 | 170 | ||
169 | 174 | func deposit () = if ((size(d.payments) == 0)) | |
170 | 175 | then throw("Payment not attached") | |
171 | 176 | else { | |
172 | - | let | |
173 | - | let | |
177 | + | let H = value(d.payments)[0] | |
178 | + | let I = { | |
174 | 179 | let f = getString(a, "min_deposit") | |
175 | 180 | if ($isInstanceOf(f, "Unit")) | |
176 | 181 | then "0" | |
177 | 182 | else if ($isInstanceOf(f, "String")) | |
178 | 183 | then { | |
179 | - | let | |
180 | - | | |
184 | + | let w = f | |
185 | + | w | |
181 | 186 | } | |
182 | 187 | else throw("Match error") | |
183 | 188 | } | |
184 | - | let | |
185 | - | let f = parseInt(split( | |
189 | + | let J = { | |
190 | + | let f = parseInt(split(I, ".")[0]) | |
186 | 191 | if ($isInstanceOf(f, "Unit")) | |
187 | 192 | then 0 | |
188 | 193 | else if ($isInstanceOf(f, "Int")) | |
189 | 194 | then { | |
190 | - | let | |
191 | - | | |
195 | + | let y = f | |
196 | + | y | |
192 | 197 | } | |
193 | 198 | else throw("Match error") | |
194 | 199 | } | |
195 | - | if (( | |
200 | + | if ((H.assetId != c)) | |
196 | 201 | then throw("holded payment not tUSD") | |
197 | - | else if ((( | |
198 | - | then throw((((("You have set the deposit amount to " + toString(( | |
202 | + | else if (((J * 100) > H.amount)) | |
203 | + | then throw((((("You have set the deposit amount to " + toString((H.amount / 100))) + ".00, which is less than the minimum (") + I) + ")")) | |
199 | 204 | else { | |
200 | - | let | |
201 | - | let | |
202 | - | let f = getInteger(this, | |
205 | + | let s = toBase58String(d.caller.bytes) | |
206 | + | let t = { | |
207 | + | let f = getInteger(this, s) | |
203 | 208 | if ($isInstanceOf(f, "Int")) | |
204 | 209 | then { | |
205 | - | let | |
206 | - | | |
210 | + | let u = f | |
211 | + | u | |
207 | 212 | } | |
208 | 213 | else 0 | |
209 | 214 | } | |
210 | - | let | |
211 | - | [IntegerEntry( | |
215 | + | let F = (t + H.amount) | |
216 | + | [IntegerEntry(s, F)] | |
212 | 217 | } | |
213 | 218 | } | |
214 | 219 | ||
215 | 220 | ||
216 | 221 | ||
217 | 222 | @Callable(d) | |
218 | - | func withdraw ( | |
219 | - | let | |
220 | - | let | |
221 | - | let f = getInteger(this, | |
223 | + | func withdraw (K) = { | |
224 | + | let s = toBase58String(d.caller.bytes) | |
225 | + | let t = { | |
226 | + | let f = getInteger(this, s) | |
222 | 227 | if ($isInstanceOf(f, "Int")) | |
223 | 228 | then { | |
224 | - | let | |
225 | - | | |
229 | + | let u = f | |
230 | + | u | |
226 | 231 | } | |
227 | 232 | else 0 | |
228 | 233 | } | |
229 | - | let | |
230 | - | if ((0 > | |
234 | + | let F = (t - K) | |
235 | + | if ((0 > K)) | |
231 | 236 | then throw("Can't withdraw negative amount") | |
232 | - | else if ((0 > | |
237 | + | else if ((0 > F)) | |
233 | 238 | then throw("Not enough balance") | |
234 | - | else $Tuple2([IntegerEntry( | |
239 | + | else $Tuple2([IntegerEntry(s, F), ScriptTransfer(d.caller, K, c)], unit) | |
235 | 240 | } | |
236 | 241 | ||
237 | 242 | ||
238 | 243 | ||
239 | 244 | @Callable(d) | |
240 | - | func setOptions ( | |
241 | - | let | |
242 | - | if ((100 >= | |
245 | + | func setOptions (L,M) = { | |
246 | + | let N = size(L) | |
247 | + | if ((100 >= N)) | |
243 | 248 | then { | |
244 | - | let | |
249 | + | let O = { | |
245 | 250 | let f = getString(a, "admin_list") | |
246 | 251 | if ($isInstanceOf(f, "Unit")) | |
247 | 252 | then "unset" | |
248 | 253 | else if ($isInstanceOf(f, "String")) | |
249 | 254 | then { | |
250 | - | let | |
251 | - | | |
255 | + | let w = f | |
256 | + | w | |
252 | 257 | } | |
253 | 258 | else throw("Match error") | |
254 | 259 | } | |
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | $Tuple2(( | |
260 | + | func P (Q,R) = { | |
261 | + | let S = Q | |
262 | + | let T = S._1 | |
263 | + | let U = S._2 | |
264 | + | $Tuple2((T :+ IntegerEntry(L[U], R)), (U + 1)) | |
260 | 265 | } | |
261 | 266 | ||
262 | 267 | let o = { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | func | |
267 | - | then | |
268 | - | else | |
268 | + | let V = M | |
269 | + | let W = size(V) | |
270 | + | let X = $Tuple2(nil, 0) | |
271 | + | func Y (Z,aa) = if ((aa >= W)) | |
272 | + | then Z | |
273 | + | else P(Z, V[aa]) | |
269 | 274 | ||
270 | - | func | |
271 | - | then | |
275 | + | func ab (Z,aa) = if ((aa >= W)) | |
276 | + | then Z | |
272 | 277 | else throw("List size exceeds 100") | |
273 | 278 | ||
274 | - | | |
279 | + | ab(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(X, 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) | |
275 | 280 | } | |
276 | - | let | |
277 | - | if (( | |
281 | + | let ac = toString(d.caller) | |
282 | + | if ((O != "unset")) | |
278 | 283 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | let f = | |
284 | + | let ad = getString(addressFromStringValue(O), ac) | |
285 | + | let ae = { | |
286 | + | let f = ad | |
282 | 287 | if ($isInstanceOf(f, "String")) | |
283 | 288 | then { | |
284 | - | let | |
285 | - | | |
289 | + | let w = f | |
290 | + | w | |
286 | 291 | } | |
287 | 292 | else if ($isInstanceOf(f, "Unit")) | |
288 | 293 | then "no admin" | |
289 | 294 | else throw("Match error") | |
290 | 295 | } | |
291 | - | func | |
292 | - | let | |
293 | - | StringEntry( | |
296 | + | func af (ag) = { | |
297 | + | let ah = split(ag, "|") | |
298 | + | StringEntry(ah[0], ah[1]) | |
294 | 299 | } | |
295 | 300 | ||
296 | - | if (( | |
301 | + | if ((ae != "no admin")) | |
297 | 302 | then o | |
298 | - | else throw((((((("You not admin: " + | |
303 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
299 | 304 | } | |
300 | 305 | else throw("Unset admin list") | |
301 | 306 | } | |
305 | 310 | ||
306 | 311 | ||
307 | 312 | @Callable(d) | |
308 | - | func setOption ( | |
309 | - | let | |
313 | + | func setOption (ai,aj) = { | |
314 | + | let O = { | |
310 | 315 | let f = getString(a, "admin_list") | |
311 | 316 | if ($isInstanceOf(f, "Unit")) | |
312 | 317 | then "unset" | |
313 | 318 | else if ($isInstanceOf(f, "String")) | |
314 | 319 | then { | |
315 | - | let | |
316 | - | | |
320 | + | let w = f | |
321 | + | w | |
317 | 322 | } | |
318 | 323 | else throw("Match error") | |
319 | 324 | } | |
320 | - | let | |
321 | - | if (( | |
325 | + | let ac = toString(d.caller) | |
326 | + | if ((O != "unset")) | |
322 | 327 | then { | |
323 | - | let | |
324 | - | let | |
325 | - | let f = | |
328 | + | let ad = getString(addressFromStringValue(O), ac) | |
329 | + | let ae = { | |
330 | + | let f = ad | |
326 | 331 | if ($isInstanceOf(f, "String")) | |
327 | 332 | then { | |
328 | - | let | |
329 | - | | |
333 | + | let w = f | |
334 | + | w | |
330 | 335 | } | |
331 | 336 | else if ($isInstanceOf(f, "Unit")) | |
332 | 337 | then "no admin" | |
333 | 338 | else throw("Match error") | |
334 | 339 | } | |
335 | - | if (( | |
336 | - | then $Tuple2([StringEntry( | |
337 | - | else throw((((((("You not admin: " + | |
340 | + | if ((ae != "no admin")) | |
341 | + | then $Tuple2([StringEntry(ai, aj)], unit) | |
342 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
338 | 343 | } | |
339 | 344 | else throw("Unset admin list") | |
340 | 345 | } | |
342 | 347 | ||
343 | 348 | ||
344 | 349 | @Callable(d) | |
345 | - | func delOption ( | |
346 | - | let | |
350 | + | func delOption (ai) = { | |
351 | + | let O = { | |
347 | 352 | let f = getString(a, "admin_list") | |
348 | 353 | if ($isInstanceOf(f, "Unit")) | |
349 | 354 | then "unset" | |
350 | 355 | else if ($isInstanceOf(f, "String")) | |
351 | 356 | then { | |
352 | - | let | |
353 | - | | |
357 | + | let w = f | |
358 | + | w | |
354 | 359 | } | |
355 | 360 | else throw("Match error") | |
356 | 361 | } | |
357 | - | let | |
358 | - | if (( | |
362 | + | let ac = toString(d.caller) | |
363 | + | if ((O != "unset")) | |
359 | 364 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | let f = | |
365 | + | let ad = getString(addressFromStringValue(O), ac) | |
366 | + | let ae = { | |
367 | + | let f = ad | |
363 | 368 | if ($isInstanceOf(f, "String")) | |
364 | 369 | then { | |
365 | - | let | |
366 | - | | |
370 | + | let w = f | |
371 | + | w | |
367 | 372 | } | |
368 | 373 | else if ($isInstanceOf(f, "Unit")) | |
369 | 374 | then "no admin" | |
370 | 375 | else throw("Match error") | |
371 | 376 | } | |
372 | - | if (( | |
373 | - | then $Tuple2([DeleteEntry( | |
374 | - | else throw((((((("You not admin: " + | |
377 | + | if ((ae != "no admin")) | |
378 | + | then $Tuple2([DeleteEntry(ai)], unit) | |
379 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
375 | 380 | } | |
376 | 381 | else throw("Unset admin list") | |
377 | 382 | } | |
378 | 383 | ||
379 | 384 | ||
380 | - | @Verifier( | |
381 | - | func | |
385 | + | @Verifier(ak) | |
386 | + | func al () = sigVerify(ak.bodyBytes, ak.proofs[0], ak.senderPublicKey) | |
382 | 387 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6') | |
5 | 5 | ||
6 | 6 | let b = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE' | |
7 | 7 | ||
8 | 8 | let c = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func reissueTokensLoyalty () = if ((size(d.payments) == 0)) | |
12 | 12 | then throw("Payment not attached") | |
13 | 13 | else { | |
14 | 14 | let e = { | |
15 | 15 | let f = d.payments[0].assetId | |
16 | 16 | if ($isInstanceOf(f, "ByteVector")) | |
17 | 17 | then { | |
18 | 18 | let g = f | |
19 | 19 | g | |
20 | 20 | } | |
21 | 21 | else throw("Can't find asset") | |
22 | 22 | } | |
23 | 23 | let h = { | |
24 | 24 | let f = assetInfo(e) | |
25 | 25 | if ($isInstanceOf(f, "Asset")) | |
26 | 26 | then { | |
27 | 27 | let i = f | |
28 | 28 | i | |
29 | 29 | } | |
30 | 30 | else throw("Can't get info from payment") | |
31 | 31 | } | |
32 | 32 | let j = { | |
33 | 33 | let f = parseInt(split(h.description, ":")[1]) | |
34 | 34 | if ($isInstanceOf(f, "Int")) | |
35 | 35 | then { | |
36 | 36 | let k = f | |
37 | 37 | k | |
38 | 38 | } | |
39 | 39 | else throw("Can't get quantity from payment") | |
40 | 40 | } | |
41 | 41 | let l = { | |
42 | 42 | let f = h.issuer | |
43 | 43 | if ($isInstanceOf(f, "Address")) | |
44 | 44 | then { | |
45 | 45 | let m = f | |
46 | 46 | m | |
47 | 47 | } | |
48 | 48 | else throw("Can't get issuer from payment") | |
49 | 49 | } | |
50 | 50 | if ((toString(l) != toString(this))) | |
51 | 51 | then throw("Issuer not options_addr") | |
52 | 52 | else { | |
53 | 53 | let n = invoke(a, "reissueForDepAddr", [j], nil) | |
54 | 54 | if ((n == n)) | |
55 | 55 | then { | |
56 | 56 | let f = n | |
57 | 57 | if ($isInstanceOf(f, "Int")) | |
58 | 58 | then { | |
59 | 59 | let o = f | |
60 | 60 | $Tuple2([ScriptTransfer(d.caller, j, b), IntegerEntry(("l_b_" + toBase58String(e)), j)], unit) | |
61 | 61 | } | |
62 | - | else throw("Incorrect invoke result") | |
62 | + | else throw({ | |
63 | + | let p = n | |
64 | + | if ($isInstanceOf(p, "String")) | |
65 | + | then p | |
66 | + | else throw(($getType(p) + " couldn't be cast to String")) | |
67 | + | }) | |
63 | 68 | } | |
64 | 69 | else throw("Strict value is not equal to itself.") | |
65 | 70 | } | |
66 | 71 | } | |
67 | 72 | ||
68 | 73 | ||
69 | 74 | ||
70 | 75 | @Callable(d) | |
71 | - | func issueBill ( | |
72 | - | let | |
73 | - | let | |
74 | - | let f = getInteger(this, | |
76 | + | func issueBill (q,r) = { | |
77 | + | let s = toBase58String(d.caller.bytes) | |
78 | + | let t = { | |
79 | + | let f = getInteger(this, s) | |
75 | 80 | if ($isInstanceOf(f, "Int")) | |
76 | 81 | then { | |
77 | - | let | |
78 | - | | |
82 | + | let u = f | |
83 | + | u | |
79 | 84 | } | |
80 | 85 | else 0 | |
81 | 86 | } | |
82 | - | let | |
87 | + | let v = { | |
83 | 88 | let f = getString(a, "min_bill_deposit") | |
84 | 89 | if ($isInstanceOf(f, "Unit")) | |
85 | 90 | then "0" | |
86 | 91 | else if ($isInstanceOf(f, "String")) | |
87 | 92 | then { | |
88 | - | let | |
89 | - | | |
93 | + | let w = f | |
94 | + | w | |
90 | 95 | } | |
91 | 96 | else throw("Match error") | |
92 | 97 | } | |
93 | - | let | |
94 | - | let f = parseInt(split( | |
98 | + | let x = { | |
99 | + | let f = parseInt(split(v, ".")[0]) | |
95 | 100 | if ($isInstanceOf(f, "Unit")) | |
96 | 101 | then 0 | |
97 | 102 | else if ($isInstanceOf(f, "Int")) | |
98 | 103 | then { | |
99 | - | let | |
100 | - | | |
104 | + | let y = f | |
105 | + | y | |
101 | 106 | } | |
102 | 107 | else throw("Match error") | |
103 | 108 | } | |
104 | - | let | |
109 | + | let z = { | |
105 | 110 | let f = getString(a, "exchange_rate") | |
106 | 111 | if ($isInstanceOf(f, "Unit")) | |
107 | 112 | then "0" | |
108 | 113 | else if ($isInstanceOf(f, "String")) | |
109 | 114 | then { | |
110 | - | let | |
111 | - | | |
115 | + | let w = f | |
116 | + | w | |
112 | 117 | } | |
113 | 118 | else throw("Match error") | |
114 | 119 | } | |
115 | - | let | |
116 | - | let f = parseInt( | |
120 | + | let A = { | |
121 | + | let f = parseInt(z) | |
117 | 122 | if ($isInstanceOf(f, "Unit")) | |
118 | 123 | then 0 | |
119 | 124 | else if ($isInstanceOf(f, "Int")) | |
120 | 125 | then { | |
121 | - | let | |
122 | - | | |
126 | + | let y = f | |
127 | + | y | |
123 | 128 | } | |
124 | 129 | else throw("Match error") | |
125 | 130 | } | |
126 | - | let | |
131 | + | let B = { | |
127 | 132 | let f = getString(a, "share_guarantee_fee") | |
128 | 133 | if ($isInstanceOf(f, "Unit")) | |
129 | 134 | then "0" | |
130 | 135 | else if ($isInstanceOf(f, "String")) | |
131 | 136 | then { | |
132 | - | let | |
133 | - | | |
137 | + | let w = f | |
138 | + | w | |
134 | 139 | } | |
135 | 140 | else throw("Match error") | |
136 | 141 | } | |
137 | - | let | |
138 | - | let f = parseInt( | |
142 | + | let C = { | |
143 | + | let f = parseInt(B) | |
139 | 144 | if ($isInstanceOf(f, "Unit")) | |
140 | 145 | then 0 | |
141 | 146 | else if ($isInstanceOf(f, "Int")) | |
142 | 147 | then { | |
143 | - | let | |
144 | - | | |
148 | + | let y = f | |
149 | + | y | |
145 | 150 | } | |
146 | 151 | else throw("Match error") | |
147 | 152 | } | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | if ((( | |
152 | - | then throw((((("The security deposit must be more than " + | |
153 | - | else if ((0 > | |
153 | + | let D = (((x * A) * 100) / C) | |
154 | + | let E = ((q * A) / C) | |
155 | + | let F = (t - q) | |
156 | + | if (((x * 100) > q)) | |
157 | + | then throw((((("The security deposit must be more than " + v) + ". You set the size: ") + toString((q / 100))) + ".00")) | |
158 | + | else if ((0 > F)) | |
154 | 159 | then throw("Not enough balance") | |
155 | - | else if (( | |
156 | - | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString( | |
157 | - | else if (( | |
158 | - | then throw((((("The value of the token cannot exceed the maximum " + toString( | |
160 | + | else if ((D > r)) | |
161 | + | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(D)) + "₽ (") + v) + "tUSD)")) | |
162 | + | else if ((r > E)) | |
163 | + | then throw((((("The value of the token cannot exceed the maximum " + toString(E)) + "₽ of the guarantee deposit (") + toString((q / 100))) + "tUSD)")) | |
159 | 164 | else { | |
160 | - | let | |
161 | - | let g = calculateAssetId( | |
162 | - | $Tuple2([IntegerEntry( | |
165 | + | let G = Issue(("bill for:" + toString((q / 100))), ((s + ":") + toString(r)), 1, 0, false) | |
166 | + | let g = calculateAssetId(G) | |
167 | + | $Tuple2([IntegerEntry(s, F), G, ScriptTransfer(d.caller, 1, g), IntegerEntry(("l_u_" + toBase58String(g)), q)], unit) | |
163 | 168 | } | |
164 | 169 | } | |
165 | 170 | ||
166 | 171 | ||
167 | 172 | ||
168 | 173 | @Callable(d) | |
169 | 174 | func deposit () = if ((size(d.payments) == 0)) | |
170 | 175 | then throw("Payment not attached") | |
171 | 176 | else { | |
172 | - | let | |
173 | - | let | |
177 | + | let H = value(d.payments)[0] | |
178 | + | let I = { | |
174 | 179 | let f = getString(a, "min_deposit") | |
175 | 180 | if ($isInstanceOf(f, "Unit")) | |
176 | 181 | then "0" | |
177 | 182 | else if ($isInstanceOf(f, "String")) | |
178 | 183 | then { | |
179 | - | let | |
180 | - | | |
184 | + | let w = f | |
185 | + | w | |
181 | 186 | } | |
182 | 187 | else throw("Match error") | |
183 | 188 | } | |
184 | - | let | |
185 | - | let f = parseInt(split( | |
189 | + | let J = { | |
190 | + | let f = parseInt(split(I, ".")[0]) | |
186 | 191 | if ($isInstanceOf(f, "Unit")) | |
187 | 192 | then 0 | |
188 | 193 | else if ($isInstanceOf(f, "Int")) | |
189 | 194 | then { | |
190 | - | let | |
191 | - | | |
195 | + | let y = f | |
196 | + | y | |
192 | 197 | } | |
193 | 198 | else throw("Match error") | |
194 | 199 | } | |
195 | - | if (( | |
200 | + | if ((H.assetId != c)) | |
196 | 201 | then throw("holded payment not tUSD") | |
197 | - | else if ((( | |
198 | - | then throw((((("You have set the deposit amount to " + toString(( | |
202 | + | else if (((J * 100) > H.amount)) | |
203 | + | then throw((((("You have set the deposit amount to " + toString((H.amount / 100))) + ".00, which is less than the minimum (") + I) + ")")) | |
199 | 204 | else { | |
200 | - | let | |
201 | - | let | |
202 | - | let f = getInteger(this, | |
205 | + | let s = toBase58String(d.caller.bytes) | |
206 | + | let t = { | |
207 | + | let f = getInteger(this, s) | |
203 | 208 | if ($isInstanceOf(f, "Int")) | |
204 | 209 | then { | |
205 | - | let | |
206 | - | | |
210 | + | let u = f | |
211 | + | u | |
207 | 212 | } | |
208 | 213 | else 0 | |
209 | 214 | } | |
210 | - | let | |
211 | - | [IntegerEntry( | |
215 | + | let F = (t + H.amount) | |
216 | + | [IntegerEntry(s, F)] | |
212 | 217 | } | |
213 | 218 | } | |
214 | 219 | ||
215 | 220 | ||
216 | 221 | ||
217 | 222 | @Callable(d) | |
218 | - | func withdraw ( | |
219 | - | let | |
220 | - | let | |
221 | - | let f = getInteger(this, | |
223 | + | func withdraw (K) = { | |
224 | + | let s = toBase58String(d.caller.bytes) | |
225 | + | let t = { | |
226 | + | let f = getInteger(this, s) | |
222 | 227 | if ($isInstanceOf(f, "Int")) | |
223 | 228 | then { | |
224 | - | let | |
225 | - | | |
229 | + | let u = f | |
230 | + | u | |
226 | 231 | } | |
227 | 232 | else 0 | |
228 | 233 | } | |
229 | - | let | |
230 | - | if ((0 > | |
234 | + | let F = (t - K) | |
235 | + | if ((0 > K)) | |
231 | 236 | then throw("Can't withdraw negative amount") | |
232 | - | else if ((0 > | |
237 | + | else if ((0 > F)) | |
233 | 238 | then throw("Not enough balance") | |
234 | - | else $Tuple2([IntegerEntry( | |
239 | + | else $Tuple2([IntegerEntry(s, F), ScriptTransfer(d.caller, K, c)], unit) | |
235 | 240 | } | |
236 | 241 | ||
237 | 242 | ||
238 | 243 | ||
239 | 244 | @Callable(d) | |
240 | - | func setOptions ( | |
241 | - | let | |
242 | - | if ((100 >= | |
245 | + | func setOptions (L,M) = { | |
246 | + | let N = size(L) | |
247 | + | if ((100 >= N)) | |
243 | 248 | then { | |
244 | - | let | |
249 | + | let O = { | |
245 | 250 | let f = getString(a, "admin_list") | |
246 | 251 | if ($isInstanceOf(f, "Unit")) | |
247 | 252 | then "unset" | |
248 | 253 | else if ($isInstanceOf(f, "String")) | |
249 | 254 | then { | |
250 | - | let | |
251 | - | | |
255 | + | let w = f | |
256 | + | w | |
252 | 257 | } | |
253 | 258 | else throw("Match error") | |
254 | 259 | } | |
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | $Tuple2(( | |
260 | + | func P (Q,R) = { | |
261 | + | let S = Q | |
262 | + | let T = S._1 | |
263 | + | let U = S._2 | |
264 | + | $Tuple2((T :+ IntegerEntry(L[U], R)), (U + 1)) | |
260 | 265 | } | |
261 | 266 | ||
262 | 267 | let o = { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | func | |
267 | - | then | |
268 | - | else | |
268 | + | let V = M | |
269 | + | let W = size(V) | |
270 | + | let X = $Tuple2(nil, 0) | |
271 | + | func Y (Z,aa) = if ((aa >= W)) | |
272 | + | then Z | |
273 | + | else P(Z, V[aa]) | |
269 | 274 | ||
270 | - | func | |
271 | - | then | |
275 | + | func ab (Z,aa) = if ((aa >= W)) | |
276 | + | then Z | |
272 | 277 | else throw("List size exceeds 100") | |
273 | 278 | ||
274 | - | | |
279 | + | ab(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(X, 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) | |
275 | 280 | } | |
276 | - | let | |
277 | - | if (( | |
281 | + | let ac = toString(d.caller) | |
282 | + | if ((O != "unset")) | |
278 | 283 | then { | |
279 | - | let | |
280 | - | let | |
281 | - | let f = | |
284 | + | let ad = getString(addressFromStringValue(O), ac) | |
285 | + | let ae = { | |
286 | + | let f = ad | |
282 | 287 | if ($isInstanceOf(f, "String")) | |
283 | 288 | then { | |
284 | - | let | |
285 | - | | |
289 | + | let w = f | |
290 | + | w | |
286 | 291 | } | |
287 | 292 | else if ($isInstanceOf(f, "Unit")) | |
288 | 293 | then "no admin" | |
289 | 294 | else throw("Match error") | |
290 | 295 | } | |
291 | - | func | |
292 | - | let | |
293 | - | StringEntry( | |
296 | + | func af (ag) = { | |
297 | + | let ah = split(ag, "|") | |
298 | + | StringEntry(ah[0], ah[1]) | |
294 | 299 | } | |
295 | 300 | ||
296 | - | if (( | |
301 | + | if ((ae != "no admin")) | |
297 | 302 | then o | |
298 | - | else throw((((((("You not admin: " + | |
303 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
299 | 304 | } | |
300 | 305 | else throw("Unset admin list") | |
301 | 306 | } | |
302 | 307 | else throw("The number of list elements must not exceed 100") | |
303 | 308 | } | |
304 | 309 | ||
305 | 310 | ||
306 | 311 | ||
307 | 312 | @Callable(d) | |
308 | - | func setOption ( | |
309 | - | let | |
313 | + | func setOption (ai,aj) = { | |
314 | + | let O = { | |
310 | 315 | let f = getString(a, "admin_list") | |
311 | 316 | if ($isInstanceOf(f, "Unit")) | |
312 | 317 | then "unset" | |
313 | 318 | else if ($isInstanceOf(f, "String")) | |
314 | 319 | then { | |
315 | - | let | |
316 | - | | |
320 | + | let w = f | |
321 | + | w | |
317 | 322 | } | |
318 | 323 | else throw("Match error") | |
319 | 324 | } | |
320 | - | let | |
321 | - | if (( | |
325 | + | let ac = toString(d.caller) | |
326 | + | if ((O != "unset")) | |
322 | 327 | then { | |
323 | - | let | |
324 | - | let | |
325 | - | let f = | |
328 | + | let ad = getString(addressFromStringValue(O), ac) | |
329 | + | let ae = { | |
330 | + | let f = ad | |
326 | 331 | if ($isInstanceOf(f, "String")) | |
327 | 332 | then { | |
328 | - | let | |
329 | - | | |
333 | + | let w = f | |
334 | + | w | |
330 | 335 | } | |
331 | 336 | else if ($isInstanceOf(f, "Unit")) | |
332 | 337 | then "no admin" | |
333 | 338 | else throw("Match error") | |
334 | 339 | } | |
335 | - | if (( | |
336 | - | then $Tuple2([StringEntry( | |
337 | - | else throw((((((("You not admin: " + | |
340 | + | if ((ae != "no admin")) | |
341 | + | then $Tuple2([StringEntry(ai, aj)], unit) | |
342 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
338 | 343 | } | |
339 | 344 | else throw("Unset admin list") | |
340 | 345 | } | |
341 | 346 | ||
342 | 347 | ||
343 | 348 | ||
344 | 349 | @Callable(d) | |
345 | - | func delOption ( | |
346 | - | let | |
350 | + | func delOption (ai) = { | |
351 | + | let O = { | |
347 | 352 | let f = getString(a, "admin_list") | |
348 | 353 | if ($isInstanceOf(f, "Unit")) | |
349 | 354 | then "unset" | |
350 | 355 | else if ($isInstanceOf(f, "String")) | |
351 | 356 | then { | |
352 | - | let | |
353 | - | | |
357 | + | let w = f | |
358 | + | w | |
354 | 359 | } | |
355 | 360 | else throw("Match error") | |
356 | 361 | } | |
357 | - | let | |
358 | - | if (( | |
362 | + | let ac = toString(d.caller) | |
363 | + | if ((O != "unset")) | |
359 | 364 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | let f = | |
365 | + | let ad = getString(addressFromStringValue(O), ac) | |
366 | + | let ae = { | |
367 | + | let f = ad | |
363 | 368 | if ($isInstanceOf(f, "String")) | |
364 | 369 | then { | |
365 | - | let | |
366 | - | | |
370 | + | let w = f | |
371 | + | w | |
367 | 372 | } | |
368 | 373 | else if ($isInstanceOf(f, "Unit")) | |
369 | 374 | then "no admin" | |
370 | 375 | else throw("Match error") | |
371 | 376 | } | |
372 | - | if (( | |
373 | - | then $Tuple2([DeleteEntry( | |
374 | - | else throw((((((("You not admin: " + | |
377 | + | if ((ae != "no admin")) | |
378 | + | then $Tuple2([DeleteEntry(ai)], unit) | |
379 | + | else throw((((((("You not admin: " + O) + ", isAdmin: ") + ae) + ", callerAddressStr: ") + ac) + ", ")) | |
375 | 380 | } | |
376 | 381 | else throw("Unset admin list") | |
377 | 382 | } | |
378 | 383 | ||
379 | 384 | ||
380 | - | @Verifier( | |
381 | - | func | |
385 | + | @Verifier(ak) | |
386 | + | func al () = sigVerify(ak.bodyBytes, ak.proofs[0], ak.senderPublicKey) | |
382 | 387 |
github/deemru/w8io/169f3d6 129.68 ms ◑