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 | |
---|---|---|---|
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 | - | throw("Incorrect invoke result") | |
47 | + | throw({ | |
48 | + | let @ = res | |
49 | + | if ($isInstanceOf(@, "String")) | |
50 | + | then @ | |
51 | + | else throw(($getType(@) + " couldn't be cast to String")) | |
52 | + | }) | |
48 | 53 | } | |
49 | 54 | else throw("Strict value is not equal to itself.") | |
50 | 55 | } | |
202 | 207 | throw("Match error") | |
203 | 208 | } | |
204 | 209 | func addStringEntry (accum,nextValue) = { | |
205 | - | let $ | |
206 | - | let result = $ | |
207 | - | let j = $ | |
210 | + | let $t076677690 = accum | |
211 | + | let result = $t076677690._1 | |
212 | + | let j = $t076677690._2 | |
208 | 213 | $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1)) | |
209 | 214 | } | |
210 | 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 | 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 | - | throw("Incorrect invoke result") | |
47 | + | throw({ | |
48 | + | let @ = res | |
49 | + | if ($isInstanceOf(@, "String")) | |
50 | + | then @ | |
51 | + | else throw(($getType(@) + " couldn't be cast to String")) | |
52 | + | }) | |
48 | 53 | } | |
49 | 54 | else throw("Strict value is not equal to itself.") | |
50 | 55 | } | |
51 | 56 | } | |
52 | 57 | ||
53 | 58 | ||
54 | 59 | ||
55 | 60 | @Callable(i) | |
56 | 61 | func issueBill (providing,size) = { | |
57 | 62 | let currentKey = toBase58String(i.caller.bytes) | |
58 | 63 | let currentAmount = match getInteger(this, currentKey) { | |
59 | 64 | case a: Int => | |
60 | 65 | a | |
61 | 66 | case _ => | |
62 | 67 | 0 | |
63 | 68 | } | |
64 | 69 | let minBillDepositStr = match getString(options_addr, "min_bill_deposit") { | |
65 | 70 | case _: Unit => | |
66 | 71 | "0" | |
67 | 72 | case x: String => | |
68 | 73 | x | |
69 | 74 | case _ => | |
70 | 75 | throw("Match error") | |
71 | 76 | } | |
72 | 77 | let minBillDeposit = match parseInt(split(minBillDepositStr, ".")[0]) { | |
73 | 78 | case _: Unit => | |
74 | 79 | 0 | |
75 | 80 | case t: Int => | |
76 | 81 | t | |
77 | 82 | case _ => | |
78 | 83 | throw("Match error") | |
79 | 84 | } | |
80 | 85 | let exchangeRateStr = match getString(options_addr, "exchange_rate") { | |
81 | 86 | case _: Unit => | |
82 | 87 | "0" | |
83 | 88 | case x: String => | |
84 | 89 | x | |
85 | 90 | case _ => | |
86 | 91 | throw("Match error") | |
87 | 92 | } | |
88 | 93 | let exchangeRate = match parseInt(exchangeRateStr) { | |
89 | 94 | case _: Unit => | |
90 | 95 | 0 | |
91 | 96 | case t: Int => | |
92 | 97 | t | |
93 | 98 | case _ => | |
94 | 99 | throw("Match error") | |
95 | 100 | } | |
96 | 101 | let shareGuaranteeFeeStr = match getString(options_addr, "share_guarantee_fee") { | |
97 | 102 | case _: Unit => | |
98 | 103 | "0" | |
99 | 104 | case x: String => | |
100 | 105 | x | |
101 | 106 | case _ => | |
102 | 107 | throw("Match error") | |
103 | 108 | } | |
104 | 109 | let shareGuaranteeFee = match parseInt(shareGuaranteeFeeStr) { | |
105 | 110 | case _: Unit => | |
106 | 111 | 0 | |
107 | 112 | case t: Int => | |
108 | 113 | t | |
109 | 114 | case _ => | |
110 | 115 | throw("Match error") | |
111 | 116 | } | |
112 | 117 | let tRUB_min = (((minBillDeposit * exchangeRate) * 100) / shareGuaranteeFee) | |
113 | 118 | let tRUB_max = ((providing * exchangeRate) / shareGuaranteeFee) | |
114 | 119 | let newAmount = (currentAmount - providing) | |
115 | 120 | if (((minBillDeposit * 100) > providing)) | |
116 | 121 | then throw((((("The security deposit must be more than " + minBillDepositStr) + ". You set the size: ") + toString((providing / 100))) + ".00")) | |
117 | 122 | else if ((0 > newAmount)) | |
118 | 123 | then throw("Not enough balance") | |
119 | 124 | else if ((tRUB_min > size)) | |
120 | 125 | then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(tRUB_min)) + "₽ (") + minBillDepositStr) + "tUSD)")) | |
121 | 126 | else if ((size > tRUB_max)) | |
122 | 127 | then throw((((("The value of the token cannot exceed the maximum " + toString(tRUB_max)) + "₽ of the guarantee deposit (") + toString((providing / 100))) + "tUSD)")) | |
123 | 128 | else { | |
124 | 129 | let issue = Issue(("bill for:" + toString((providing / 100))), ((currentKey + ":") + toString(size)), 1, 0, false) | |
125 | 130 | let id = calculateAssetId(issue) | |
126 | 131 | $Tuple2([IntegerEntry(currentKey, newAmount), issue, ScriptTransfer(i.caller, 1, id), IntegerEntry(("l_u_" + toBase58String(id)), providing)], unit) | |
127 | 132 | } | |
128 | 133 | } | |
129 | 134 | ||
130 | 135 | ||
131 | 136 | ||
132 | 137 | @Callable(i) | |
133 | 138 | func deposit () = if ((size(i.payments) == 0)) | |
134 | 139 | then throw("Payment not attached") | |
135 | 140 | else { | |
136 | 141 | let pmt = value(i.payments)[0] | |
137 | 142 | let minDepositStr = match getString(options_addr, "min_deposit") { | |
138 | 143 | case _: Unit => | |
139 | 144 | "0" | |
140 | 145 | case x: String => | |
141 | 146 | x | |
142 | 147 | case _ => | |
143 | 148 | throw("Match error") | |
144 | 149 | } | |
145 | 150 | let minDeposit = match parseInt(split(minDepositStr, ".")[0]) { | |
146 | 151 | case _: Unit => | |
147 | 152 | 0 | |
148 | 153 | case t: Int => | |
149 | 154 | t | |
150 | 155 | case _ => | |
151 | 156 | throw("Match error") | |
152 | 157 | } | |
153 | 158 | if ((pmt.assetId != tUSD)) | |
154 | 159 | then throw("holded payment not tUSD") | |
155 | 160 | else if (((minDeposit * 100) > pmt.amount)) | |
156 | 161 | then throw((((("You have set the deposit amount to " + toString((pmt.amount / 100))) + ".00, which is less than the minimum (") + minDepositStr) + ")")) | |
157 | 162 | else { | |
158 | 163 | let currentKey = toBase58String(i.caller.bytes) | |
159 | 164 | let currentAmount = match getInteger(this, currentKey) { | |
160 | 165 | case a: Int => | |
161 | 166 | a | |
162 | 167 | case _ => | |
163 | 168 | 0 | |
164 | 169 | } | |
165 | 170 | let newAmount = (currentAmount + pmt.amount) | |
166 | 171 | [IntegerEntry(currentKey, newAmount)] | |
167 | 172 | } | |
168 | 173 | } | |
169 | 174 | ||
170 | 175 | ||
171 | 176 | ||
172 | 177 | @Callable(i) | |
173 | 178 | func withdraw (amount) = { | |
174 | 179 | let currentKey = toBase58String(i.caller.bytes) | |
175 | 180 | let currentAmount = match getInteger(this, currentKey) { | |
176 | 181 | case a: Int => | |
177 | 182 | a | |
178 | 183 | case _ => | |
179 | 184 | 0 | |
180 | 185 | } | |
181 | 186 | let newAmount = (currentAmount - amount) | |
182 | 187 | if ((0 > amount)) | |
183 | 188 | then throw("Can't withdraw negative amount") | |
184 | 189 | else if ((0 > newAmount)) | |
185 | 190 | then throw("Not enough balance") | |
186 | 191 | else $Tuple2([IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, tUSD)], unit) | |
187 | 192 | } | |
188 | 193 | ||
189 | 194 | ||
190 | 195 | ||
191 | 196 | @Callable(i) | |
192 | 197 | func setOptions (opts,vals) = { | |
193 | 198 | let opt_size = size(opts) | |
194 | 199 | if ((100 >= opt_size)) | |
195 | 200 | then { | |
196 | 201 | let adminList = match getString(options_addr, "admin_list") { | |
197 | 202 | case _: Unit => | |
198 | 203 | "unset" | |
199 | 204 | case x: String => | |
200 | 205 | x | |
201 | 206 | case _ => | |
202 | 207 | throw("Match error") | |
203 | 208 | } | |
204 | 209 | func addStringEntry (accum,nextValue) = { | |
205 | - | let $ | |
206 | - | let result = $ | |
207 | - | let j = $ | |
210 | + | let $t076677690 = accum | |
211 | + | let result = $t076677690._1 | |
212 | + | let j = $t076677690._2 | |
208 | 213 | $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1)) | |
209 | 214 | } | |
210 | 215 | ||
211 | 216 | let r = { | |
212 | 217 | let $l = vals | |
213 | 218 | let $s = size($l) | |
214 | 219 | let $acc0 = $Tuple2(nil, 0) | |
215 | 220 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
216 | 221 | then $a | |
217 | 222 | else addStringEntry($a, $l[$i]) | |
218 | 223 | ||
219 | 224 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
220 | 225 | then $a | |
221 | 226 | else throw("List size exceeds 100") | |
222 | 227 | ||
223 | 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) | |
224 | 229 | } | |
225 | 230 | let callerAddressStr = toString(i.caller) | |
226 | 231 | if ((adminList != "unset")) | |
227 | 232 | then { | |
228 | 233 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
229 | 234 | let isAdmin = match test { | |
230 | 235 | case x: String => | |
231 | 236 | x | |
232 | 237 | case _: Unit => | |
233 | 238 | "no admin" | |
234 | 239 | case _ => | |
235 | 240 | throw("Match error") | |
236 | 241 | } | |
237 | 242 | func add_elm (options) = { | |
238 | 243 | let opt = split(options, "|") | |
239 | 244 | StringEntry(opt[0], opt[1]) | |
240 | 245 | } | |
241 | 246 | ||
242 | 247 | if ((isAdmin != "no admin")) | |
243 | 248 | then r | |
244 | 249 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
245 | 250 | } | |
246 | 251 | else throw("Unset admin list") | |
247 | 252 | } | |
248 | 253 | else throw("The number of list elements must not exceed 100") | |
249 | 254 | } | |
250 | 255 | ||
251 | 256 | ||
252 | 257 | ||
253 | 258 | @Callable(i) | |
254 | 259 | func setOption (variable,value) = { | |
255 | 260 | let adminList = match getString(options_addr, "admin_list") { | |
256 | 261 | case _: Unit => | |
257 | 262 | "unset" | |
258 | 263 | case x: String => | |
259 | 264 | x | |
260 | 265 | case _ => | |
261 | 266 | throw("Match error") | |
262 | 267 | } | |
263 | 268 | let callerAddressStr = toString(i.caller) | |
264 | 269 | if ((adminList != "unset")) | |
265 | 270 | then { | |
266 | 271 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
267 | 272 | let isAdmin = match test { | |
268 | 273 | case x: String => | |
269 | 274 | x | |
270 | 275 | case _: Unit => | |
271 | 276 | "no admin" | |
272 | 277 | case _ => | |
273 | 278 | throw("Match error") | |
274 | 279 | } | |
275 | 280 | if ((isAdmin != "no admin")) | |
276 | 281 | then $Tuple2([StringEntry(variable, value)], unit) | |
277 | 282 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
278 | 283 | } | |
279 | 284 | else throw("Unset admin list") | |
280 | 285 | } | |
281 | 286 | ||
282 | 287 | ||
283 | 288 | ||
284 | 289 | @Callable(i) | |
285 | 290 | func delOption (variable) = { | |
286 | 291 | let adminList = match getString(options_addr, "admin_list") { | |
287 | 292 | case _: Unit => | |
288 | 293 | "unset" | |
289 | 294 | case x: String => | |
290 | 295 | x | |
291 | 296 | case _ => | |
292 | 297 | throw("Match error") | |
293 | 298 | } | |
294 | 299 | let callerAddressStr = toString(i.caller) | |
295 | 300 | if ((adminList != "unset")) | |
296 | 301 | then { | |
297 | 302 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
298 | 303 | let isAdmin = match test { | |
299 | 304 | case x: String => | |
300 | 305 | x | |
301 | 306 | case _: Unit => | |
302 | 307 | "no admin" | |
303 | 308 | case _ => | |
304 | 309 | throw("Match error") | |
305 | 310 | } | |
306 | 311 | if ((isAdmin != "no admin")) | |
307 | 312 | then $Tuple2([DeleteEntry(variable)], unit) | |
308 | 313 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
309 | 314 | } | |
310 | 315 | else throw("Unset admin list") | |
311 | 316 | } | |
312 | 317 | ||
313 | 318 | ||
314 | 319 | @Verifier(tx) | |
315 | 320 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
316 | 321 |
github/deemru/w8io/169f3d6 41.11 ms ◑