tx · FqEUhSovTjU5bspX6vDoU3PNBSpAs5BYfwRYyBJipV2a 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx: -0.01000000 Waves 2023.03.09 03:40 [2481841] smart account 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx > SELF 0.00000000 Waves
{ "type": 13, "id": "FqEUhSovTjU5bspX6vDoU3PNBSpAs5BYfwRYyBJipV2a", "fee": 1000000, "feeAssetId": null, "timestamp": 1678322464891, "version": 2, "chainId": 84, "sender": "3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx", "senderPublicKey": "D35PGQCSSdrp9pvujggj7b2DaCK1BhcU3kho7tikKJYs", "proofs": [ "233Ng2CEve257cHB17x6ttzm2m2nGoJJ5VrC2RTob6m1og9yyDtALZAq9yoMxXBAxwJNdatvQCGrcRCYxSgtNgif" ], "script": "base64:BgIiCAISABIECgIBARIAEgMKAQESBAoCGBESBAoCCAgSAwoBCAMADG9wdGlvbnNfYWRkcgkBB0FkZHJlc3MBARoBVEFb+Cv2F+oqocvEivH7x7uyIGEx/ocgwQAEdFJVQgEgv7I1LEj/fS4nZAGEmW42z/vK94nfeiKN08fw7a6U2ZsABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBwFpARRyZWlzc3VlVG9rZW5zTG95YWx0eQADCQAAAgkAkAMBCAUBaQhwYXltZW50cwAACQACAQIUUGF5bWVudCBub3QgYXR0YWNoZWQECGFzc2V0X2lkBAckbWF0Y2gwCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCaWQFByRtYXRjaDAFAmlkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAQKYXNzZXRfaW5mbwQHJG1hdGNoMAkA7AcBBQhhc3NldF9pZAMJAAECBQckbWF0Y2gwAgVBc3NldAQFYXNzZXQFByRtYXRjaDAFBWFzc2V0CQACAQIbQ2FuJ3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NBZG1pbjogBQdpc0FkbWluAhQsIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgICLCAJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTS4Iug=", "height": 2481841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4WUZLyC84Vbp9hx3jcK8bgJBY5PjqPAfHR4yMg66td4c Next: 4o7AfZNxtGFVHY2RExnHLjftJVxU7o5L8hto9u9ety7n Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | if ((toString(is_opt_addr) != toString(this))) | |
39 | 39 | then throw("Issuer not options_addr") | |
40 | 40 | else { | |
41 | - | let res = invoke(options_addr, "reissueForDepAddr", [ | |
41 | + | let res = invoke(options_addr, "reissueForDepAddr", [quantity], nil) | |
42 | 42 | if ((res == res)) | |
43 | 43 | then match res { | |
44 | 44 | case r: Int => | |
207 | 207 | throw("Match error") | |
208 | 208 | } | |
209 | 209 | func addStringEntry (accum,nextValue) = { | |
210 | - | let $ | |
211 | - | let result = $ | |
212 | - | let j = $ | |
210 | + | let $t076687691 = accum | |
211 | + | let result = $t076687691._1 | |
212 | + | let j = $t076687691._2 | |
213 | 213 | $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1)) | |
214 | 214 | } | |
215 | 215 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6') | |
5 | 5 | ||
6 | 6 | let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE' | |
7 | 7 | ||
8 | 8 | let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func reissueTokensLoyalty () = if ((size(i.payments) == 0)) | |
12 | 12 | then throw("Payment not attached") | |
13 | 13 | else { | |
14 | 14 | let asset_id = match i.payments[0].assetId { | |
15 | 15 | case id: ByteVector => | |
16 | 16 | id | |
17 | 17 | case _ => | |
18 | 18 | throw("Can't find asset") | |
19 | 19 | } | |
20 | 20 | let asset_info = match assetInfo(asset_id) { | |
21 | 21 | case asset: Asset => | |
22 | 22 | asset | |
23 | 23 | case _ => | |
24 | 24 | throw("Can't get info from payment") | |
25 | 25 | } | |
26 | 26 | let quantity = match parseInt(split(asset_info.description, ":")[1]) { | |
27 | 27 | case q: Int => | |
28 | 28 | q | |
29 | 29 | case _ => | |
30 | 30 | throw("Can't get quantity from payment") | |
31 | 31 | } | |
32 | 32 | let is_opt_addr = match asset_info.issuer { | |
33 | 33 | case issuer: Address => | |
34 | 34 | issuer | |
35 | 35 | case _ => | |
36 | 36 | throw("Can't get issuer from payment") | |
37 | 37 | } | |
38 | 38 | if ((toString(is_opt_addr) != toString(this))) | |
39 | 39 | then throw("Issuer not options_addr") | |
40 | 40 | else { | |
41 | - | let res = invoke(options_addr, "reissueForDepAddr", [ | |
41 | + | let res = invoke(options_addr, "reissueForDepAddr", [quantity], nil) | |
42 | 42 | if ((res == res)) | |
43 | 43 | then match res { | |
44 | 44 | case r: Int => | |
45 | 45 | $Tuple2([ScriptTransfer(i.caller, quantity, tRUB), IntegerEntry(("l_b_" + toBase58String(asset_id)), quantity)], unit) | |
46 | 46 | case _ => | |
47 | 47 | throw({ | |
48 | 48 | let @ = res | |
49 | 49 | if ($isInstanceOf(@, "String")) | |
50 | 50 | then @ | |
51 | 51 | else throw(($getType(@) + " couldn't be cast to String")) | |
52 | 52 | }) | |
53 | 53 | } | |
54 | 54 | else throw("Strict value is not equal to itself.") | |
55 | 55 | } | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func issueBill (providing,size) = { | |
62 | 62 | let currentKey = toBase58String(i.caller.bytes) | |
63 | 63 | let currentAmount = match getInteger(this, currentKey) { | |
64 | 64 | case a: Int => | |
65 | 65 | a | |
66 | 66 | case _ => | |
67 | 67 | 0 | |
68 | 68 | } | |
69 | 69 | let minBillDepositStr = match getString(options_addr, "min_bill_deposit") { | |
70 | 70 | case _: Unit => | |
71 | 71 | "0" | |
72 | 72 | case x: String => | |
73 | 73 | x | |
74 | 74 | case _ => | |
75 | 75 | throw("Match error") | |
76 | 76 | } | |
77 | 77 | let minBillDeposit = match parseInt(split(minBillDepositStr, ".")[0]) { | |
78 | 78 | case _: Unit => | |
79 | 79 | 0 | |
80 | 80 | case t: Int => | |
81 | 81 | t | |
82 | 82 | case _ => | |
83 | 83 | throw("Match error") | |
84 | 84 | } | |
85 | 85 | let exchangeRateStr = match getString(options_addr, "exchange_rate") { | |
86 | 86 | case _: Unit => | |
87 | 87 | "0" | |
88 | 88 | case x: String => | |
89 | 89 | x | |
90 | 90 | case _ => | |
91 | 91 | throw("Match error") | |
92 | 92 | } | |
93 | 93 | let exchangeRate = match parseInt(exchangeRateStr) { | |
94 | 94 | case _: Unit => | |
95 | 95 | 0 | |
96 | 96 | case t: Int => | |
97 | 97 | t | |
98 | 98 | case _ => | |
99 | 99 | throw("Match error") | |
100 | 100 | } | |
101 | 101 | let shareGuaranteeFeeStr = match getString(options_addr, "share_guarantee_fee") { | |
102 | 102 | case _: Unit => | |
103 | 103 | "0" | |
104 | 104 | case x: String => | |
105 | 105 | x | |
106 | 106 | case _ => | |
107 | 107 | throw("Match error") | |
108 | 108 | } | |
109 | 109 | let shareGuaranteeFee = match parseInt(shareGuaranteeFeeStr) { | |
110 | 110 | case _: Unit => | |
111 | 111 | 0 | |
112 | 112 | case t: Int => | |
113 | 113 | t | |
114 | 114 | case _ => | |
115 | 115 | throw("Match error") | |
116 | 116 | } | |
117 | 117 | let tRUB_min = (((minBillDeposit * exchangeRate) * 100) / shareGuaranteeFee) | |
118 | 118 | let tRUB_max = ((providing * exchangeRate) / shareGuaranteeFee) | |
119 | 119 | let newAmount = (currentAmount - providing) | |
120 | 120 | if (((minBillDeposit * 100) > providing)) | |
121 | 121 | then throw((((("The security deposit must be more than " + minBillDepositStr) + ". You set the size: ") + toString((providing / 100))) + ".00")) | |
122 | 122 | else if ((0 > newAmount)) | |
123 | 123 | then throw("Not enough balance") | |
124 | 124 | else if ((tRUB_min > size)) | |
125 | 125 | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(tRUB_min)) + "₽ (") + minBillDepositStr) + "tUSD)")) | |
126 | 126 | else if ((size > tRUB_max)) | |
127 | 127 | then throw((((("The value of the token cannot exceed the maximum " + toString(tRUB_max)) + "₽ of the guarantee deposit (") + toString((providing / 100))) + "tUSD)")) | |
128 | 128 | else { | |
129 | 129 | let issue = Issue(("bill for:" + toString((providing / 100))), ((currentKey + ":") + toString(size)), 1, 0, false) | |
130 | 130 | let id = calculateAssetId(issue) | |
131 | 131 | $Tuple2([IntegerEntry(currentKey, newAmount), issue, ScriptTransfer(i.caller, 1, id), IntegerEntry(("l_u_" + toBase58String(id)), providing)], unit) | |
132 | 132 | } | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func deposit () = if ((size(i.payments) == 0)) | |
139 | 139 | then throw("Payment not attached") | |
140 | 140 | else { | |
141 | 141 | let pmt = value(i.payments)[0] | |
142 | 142 | let minDepositStr = match getString(options_addr, "min_deposit") { | |
143 | 143 | case _: Unit => | |
144 | 144 | "0" | |
145 | 145 | case x: String => | |
146 | 146 | x | |
147 | 147 | case _ => | |
148 | 148 | throw("Match error") | |
149 | 149 | } | |
150 | 150 | let minDeposit = match parseInt(split(minDepositStr, ".")[0]) { | |
151 | 151 | case _: Unit => | |
152 | 152 | 0 | |
153 | 153 | case t: Int => | |
154 | 154 | t | |
155 | 155 | case _ => | |
156 | 156 | throw("Match error") | |
157 | 157 | } | |
158 | 158 | if ((pmt.assetId != tUSD)) | |
159 | 159 | then throw("holded payment not tUSD") | |
160 | 160 | else if (((minDeposit * 100) > pmt.amount)) | |
161 | 161 | then throw((((("You have set the deposit amount to " + toString((pmt.amount / 100))) + ".00, which is less than the minimum (") + minDepositStr) + ")")) | |
162 | 162 | else { | |
163 | 163 | let currentKey = toBase58String(i.caller.bytes) | |
164 | 164 | let currentAmount = match getInteger(this, currentKey) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let newAmount = (currentAmount + pmt.amount) | |
171 | 171 | [IntegerEntry(currentKey, newAmount)] | |
172 | 172 | } | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(i) | |
178 | 178 | func withdraw (amount) = { | |
179 | 179 | let currentKey = toBase58String(i.caller.bytes) | |
180 | 180 | let currentAmount = match getInteger(this, currentKey) { | |
181 | 181 | case a: Int => | |
182 | 182 | a | |
183 | 183 | case _ => | |
184 | 184 | 0 | |
185 | 185 | } | |
186 | 186 | let newAmount = (currentAmount - amount) | |
187 | 187 | if ((0 > amount)) | |
188 | 188 | then throw("Can't withdraw negative amount") | |
189 | 189 | else if ((0 > newAmount)) | |
190 | 190 | then throw("Not enough balance") | |
191 | 191 | else $Tuple2([IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, tUSD)], unit) | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | 197 | func setOptions (opts,vals) = { | |
198 | 198 | let opt_size = size(opts) | |
199 | 199 | if ((100 >= opt_size)) | |
200 | 200 | then { | |
201 | 201 | let adminList = match getString(options_addr, "admin_list") { | |
202 | 202 | case _: Unit => | |
203 | 203 | "unset" | |
204 | 204 | case x: String => | |
205 | 205 | x | |
206 | 206 | case _ => | |
207 | 207 | throw("Match error") | |
208 | 208 | } | |
209 | 209 | func addStringEntry (accum,nextValue) = { | |
210 | - | let $ | |
211 | - | let result = $ | |
212 | - | let j = $ | |
210 | + | let $t076687691 = accum | |
211 | + | let result = $t076687691._1 | |
212 | + | let j = $t076687691._2 | |
213 | 213 | $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1)) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | let r = { | |
217 | 217 | let $l = vals | |
218 | 218 | let $s = size($l) | |
219 | 219 | let $acc0 = $Tuple2(nil, 0) | |
220 | 220 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
221 | 221 | then $a | |
222 | 222 | else addStringEntry($a, $l[$i]) | |
223 | 223 | ||
224 | 224 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
225 | 225 | then $a | |
226 | 226 | else throw("List size exceeds 100") | |
227 | 227 | ||
228 | 228 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
229 | 229 | } | |
230 | 230 | let callerAddressStr = toString(i.caller) | |
231 | 231 | if ((adminList != "unset")) | |
232 | 232 | then { | |
233 | 233 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
234 | 234 | let isAdmin = match test { | |
235 | 235 | case x: String => | |
236 | 236 | x | |
237 | 237 | case _: Unit => | |
238 | 238 | "no admin" | |
239 | 239 | case _ => | |
240 | 240 | throw("Match error") | |
241 | 241 | } | |
242 | 242 | func add_elm (options) = { | |
243 | 243 | let opt = split(options, "|") | |
244 | 244 | StringEntry(opt[0], opt[1]) | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | if ((isAdmin != "no admin")) | |
248 | 248 | then r | |
249 | 249 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
250 | 250 | } | |
251 | 251 | else throw("Unset admin list") | |
252 | 252 | } | |
253 | 253 | else throw("The number of list elements must not exceed 100") | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(i) | |
259 | 259 | func setOption (variable,value) = { | |
260 | 260 | let adminList = match getString(options_addr, "admin_list") { | |
261 | 261 | case _: Unit => | |
262 | 262 | "unset" | |
263 | 263 | case x: String => | |
264 | 264 | x | |
265 | 265 | case _ => | |
266 | 266 | throw("Match error") | |
267 | 267 | } | |
268 | 268 | let callerAddressStr = toString(i.caller) | |
269 | 269 | if ((adminList != "unset")) | |
270 | 270 | then { | |
271 | 271 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
272 | 272 | let isAdmin = match test { | |
273 | 273 | case x: String => | |
274 | 274 | x | |
275 | 275 | case _: Unit => | |
276 | 276 | "no admin" | |
277 | 277 | case _ => | |
278 | 278 | throw("Match error") | |
279 | 279 | } | |
280 | 280 | if ((isAdmin != "no admin")) | |
281 | 281 | then $Tuple2([StringEntry(variable, value)], unit) | |
282 | 282 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
283 | 283 | } | |
284 | 284 | else throw("Unset admin list") | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | ||
289 | 289 | @Callable(i) | |
290 | 290 | func delOption (variable) = { | |
291 | 291 | let adminList = match getString(options_addr, "admin_list") { | |
292 | 292 | case _: Unit => | |
293 | 293 | "unset" | |
294 | 294 | case x: String => | |
295 | 295 | x | |
296 | 296 | case _ => | |
297 | 297 | throw("Match error") | |
298 | 298 | } | |
299 | 299 | let callerAddressStr = toString(i.caller) | |
300 | 300 | if ((adminList != "unset")) | |
301 | 301 | then { | |
302 | 302 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
303 | 303 | let isAdmin = match test { | |
304 | 304 | case x: String => | |
305 | 305 | x | |
306 | 306 | case _: Unit => | |
307 | 307 | "no admin" | |
308 | 308 | case _ => | |
309 | 309 | throw("Match error") | |
310 | 310 | } | |
311 | 311 | if ((isAdmin != "no admin")) | |
312 | 312 | then $Tuple2([DeleteEntry(variable)], unit) | |
313 | 313 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
314 | 314 | } | |
315 | 315 | else throw("Unset admin list") | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | @Verifier(tx) | |
320 | 320 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
321 | 321 |
github/deemru/w8io/026f985 84.86 ms ◑