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/vK94nfeiKN08fw7a6U2ZsABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBwFpARRyZWlzc3VlVG9rZW5zTG95YWx0eQADCQAAAgkAkAMBCAUBaQhwYXltZW50cwAACQACAQIUUGF5bWVudCBub3QgYXR0YWNoZWQECGFzc2V0X2lkBAckbWF0Y2gwCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCaWQFByRtYXRjaDAFAmlkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAQKYXNzZXRfaW5mbwQHJG1hdGNoMAkA7AcBBQhhc3NldF9pZAMJAAECBQckbWF0Y2gwAgVBc3NldAQFYXNzZXQFByRtYXRjaDAFBWFzc2V0CQACAQIbQ2FuJ3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XNBZG1pbjogBQdpc0FkbWluAhQsIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgICLCAJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlectwhXk=", "height": 2481716, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31i2i9Fhn4KWnmeS8d3LGY5EX5cnfv7irQZFSfuCN3HY Next: 4WUZLyC84Vbp9hx3jcK8bgJBY5PjqPAfHR4yMg66td4c Diff:
OldNewDifferences
4444 case r: Int =>
4545 $Tuple2([ScriptTransfer(i.caller, quantity, tRUB), IntegerEntry(("l_b_" + toBase58String(asset_id)), quantity)], unit)
4646 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+ })
4853 }
4954 else throw("Strict value is not equal to itself.")
5055 }
202207 throw("Match error")
203208 }
204209 func addStringEntry (accum,nextValue) = {
205- let $t076727695 = accum
206- let result = $t076727695._1
207- let j = $t076727695._2
210+ let $t076677690 = accum
211+ let result = $t076677690._1
212+ let j = $t076677690._2
208213 $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1))
209214 }
210215
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let options_addr = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
55
66 let tRUB = base58'DuJUjEZJWmpFUo3bubFX8tomUVitqZZNAPuhd6KWgJNE'
77
88 let tUSD = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
99
1010 @Callable(i)
1111 func reissueTokensLoyalty () = if ((size(i.payments) == 0))
1212 then throw("Payment not attached")
1313 else {
1414 let asset_id = match i.payments[0].assetId {
1515 case id: ByteVector =>
1616 id
1717 case _ =>
1818 throw("Can't find asset")
1919 }
2020 let asset_info = match assetInfo(asset_id) {
2121 case asset: Asset =>
2222 asset
2323 case _ =>
2424 throw("Can't get info from payment")
2525 }
2626 let quantity = match parseInt(split(asset_info.description, ":")[1]) {
2727 case q: Int =>
2828 q
2929 case _ =>
3030 throw("Can't get quantity from payment")
3131 }
3232 let is_opt_addr = match asset_info.issuer {
3333 case issuer: Address =>
3434 issuer
3535 case _ =>
3636 throw("Can't get issuer from payment")
3737 }
3838 if ((toString(is_opt_addr) != toString(this)))
3939 then throw("Issuer not options_addr")
4040 else {
4141 let res = invoke(options_addr, "reissueForDepAddr", [quantity], nil)
4242 if ((res == res))
4343 then match res {
4444 case r: Int =>
4545 $Tuple2([ScriptTransfer(i.caller, quantity, tRUB), IntegerEntry(("l_b_" + toBase58String(asset_id)), quantity)], unit)
4646 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+ })
4853 }
4954 else throw("Strict value is not equal to itself.")
5055 }
5156 }
5257
5358
5459
5560 @Callable(i)
5661 func issueBill (providing,size) = {
5762 let currentKey = toBase58String(i.caller.bytes)
5863 let currentAmount = match getInteger(this, currentKey) {
5964 case a: Int =>
6065 a
6166 case _ =>
6267 0
6368 }
6469 let minBillDepositStr = match getString(options_addr, "min_bill_deposit") {
6570 case _: Unit =>
6671 "0"
6772 case x: String =>
6873 x
6974 case _ =>
7075 throw("Match error")
7176 }
7277 let minBillDeposit = match parseInt(split(minBillDepositStr, ".")[0]) {
7378 case _: Unit =>
7479 0
7580 case t: Int =>
7681 t
7782 case _ =>
7883 throw("Match error")
7984 }
8085 let exchangeRateStr = match getString(options_addr, "exchange_rate") {
8186 case _: Unit =>
8287 "0"
8388 case x: String =>
8489 x
8590 case _ =>
8691 throw("Match error")
8792 }
8893 let exchangeRate = match parseInt(exchangeRateStr) {
8994 case _: Unit =>
9095 0
9196 case t: Int =>
9297 t
9398 case _ =>
9499 throw("Match error")
95100 }
96101 let shareGuaranteeFeeStr = match getString(options_addr, "share_guarantee_fee") {
97102 case _: Unit =>
98103 "0"
99104 case x: String =>
100105 x
101106 case _ =>
102107 throw("Match error")
103108 }
104109 let shareGuaranteeFee = match parseInt(shareGuaranteeFeeStr) {
105110 case _: Unit =>
106111 0
107112 case t: Int =>
108113 t
109114 case _ =>
110115 throw("Match error")
111116 }
112117 let tRUB_min = (((minBillDeposit * exchangeRate) * 100) / shareGuaranteeFee)
113118 let tRUB_max = ((providing * exchangeRate) / shareGuaranteeFee)
114119 let newAmount = (currentAmount - providing)
115120 if (((minBillDeposit * 100) > providing))
116121 then throw((((("The security deposit must be more than " + minBillDepositStr) + ". You set the size: ") + toString((providing / 100))) + ".00"))
117122 else if ((0 > newAmount))
118123 then throw("Not enough balance")
119124 else if ((tRUB_min > size))
120125 then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(tRUB_min)) + "₽ (") + minBillDepositStr) + "tUSD)"))
121126 else if ((size > tRUB_max))
122127 then throw((((("The value of the token cannot exceed the maximum " + toString(tRUB_max)) + "₽ of the guarantee deposit (") + toString((providing / 100))) + "tUSD)"))
123128 else {
124129 let issue = Issue(("bill for:" + toString((providing / 100))), ((currentKey + ":") + toString(size)), 1, 0, false)
125130 let id = calculateAssetId(issue)
126131 $Tuple2([IntegerEntry(currentKey, newAmount), issue, ScriptTransfer(i.caller, 1, id), IntegerEntry(("l_u_" + toBase58String(id)), providing)], unit)
127132 }
128133 }
129134
130135
131136
132137 @Callable(i)
133138 func deposit () = if ((size(i.payments) == 0))
134139 then throw("Payment not attached")
135140 else {
136141 let pmt = value(i.payments)[0]
137142 let minDepositStr = match getString(options_addr, "min_deposit") {
138143 case _: Unit =>
139144 "0"
140145 case x: String =>
141146 x
142147 case _ =>
143148 throw("Match error")
144149 }
145150 let minDeposit = match parseInt(split(minDepositStr, ".")[0]) {
146151 case _: Unit =>
147152 0
148153 case t: Int =>
149154 t
150155 case _ =>
151156 throw("Match error")
152157 }
153158 if ((pmt.assetId != tUSD))
154159 then throw("holded payment not tUSD")
155160 else if (((minDeposit * 100) > pmt.amount))
156161 then throw((((("You have set the deposit amount to " + toString((pmt.amount / 100))) + ".00, which is less than the minimum (") + minDepositStr) + ")"))
157162 else {
158163 let currentKey = toBase58String(i.caller.bytes)
159164 let currentAmount = match getInteger(this, currentKey) {
160165 case a: Int =>
161166 a
162167 case _ =>
163168 0
164169 }
165170 let newAmount = (currentAmount + pmt.amount)
166171 [IntegerEntry(currentKey, newAmount)]
167172 }
168173 }
169174
170175
171176
172177 @Callable(i)
173178 func withdraw (amount) = {
174179 let currentKey = toBase58String(i.caller.bytes)
175180 let currentAmount = match getInteger(this, currentKey) {
176181 case a: Int =>
177182 a
178183 case _ =>
179184 0
180185 }
181186 let newAmount = (currentAmount - amount)
182187 if ((0 > amount))
183188 then throw("Can't withdraw negative amount")
184189 else if ((0 > newAmount))
185190 then throw("Not enough balance")
186191 else $Tuple2([IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, tUSD)], unit)
187192 }
188193
189194
190195
191196 @Callable(i)
192197 func setOptions (opts,vals) = {
193198 let opt_size = size(opts)
194199 if ((100 >= opt_size))
195200 then {
196201 let adminList = match getString(options_addr, "admin_list") {
197202 case _: Unit =>
198203 "unset"
199204 case x: String =>
200205 x
201206 case _ =>
202207 throw("Match error")
203208 }
204209 func addStringEntry (accum,nextValue) = {
205- let $t076727695 = accum
206- let result = $t076727695._1
207- let j = $t076727695._2
210+ let $t076677690 = accum
211+ let result = $t076677690._1
212+ let j = $t076677690._2
208213 $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1))
209214 }
210215
211216 let r = {
212217 let $l = vals
213218 let $s = size($l)
214219 let $acc0 = $Tuple2(nil, 0)
215220 func $f0_1 ($a,$i) = if (($i >= $s))
216221 then $a
217222 else addStringEntry($a, $l[$i])
218223
219224 func $f0_2 ($a,$i) = if (($i >= $s))
220225 then $a
221226 else throw("List size exceeds 100")
222227
223228 $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)
224229 }
225230 let callerAddressStr = toString(i.caller)
226231 if ((adminList != "unset"))
227232 then {
228233 let test = getString(addressFromStringValue(adminList), callerAddressStr)
229234 let isAdmin = match test {
230235 case x: String =>
231236 x
232237 case _: Unit =>
233238 "no admin"
234239 case _ =>
235240 throw("Match error")
236241 }
237242 func add_elm (options) = {
238243 let opt = split(options, "|")
239244 StringEntry(opt[0], opt[1])
240245 }
241246
242247 if ((isAdmin != "no admin"))
243248 then r
244249 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
245250 }
246251 else throw("Unset admin list")
247252 }
248253 else throw("The number of list elements must not exceed 100")
249254 }
250255
251256
252257
253258 @Callable(i)
254259 func setOption (variable,value) = {
255260 let adminList = match getString(options_addr, "admin_list") {
256261 case _: Unit =>
257262 "unset"
258263 case x: String =>
259264 x
260265 case _ =>
261266 throw("Match error")
262267 }
263268 let callerAddressStr = toString(i.caller)
264269 if ((adminList != "unset"))
265270 then {
266271 let test = getString(addressFromStringValue(adminList), callerAddressStr)
267272 let isAdmin = match test {
268273 case x: String =>
269274 x
270275 case _: Unit =>
271276 "no admin"
272277 case _ =>
273278 throw("Match error")
274279 }
275280 if ((isAdmin != "no admin"))
276281 then $Tuple2([StringEntry(variable, value)], unit)
277282 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
278283 }
279284 else throw("Unset admin list")
280285 }
281286
282287
283288
284289 @Callable(i)
285290 func delOption (variable) = {
286291 let adminList = match getString(options_addr, "admin_list") {
287292 case _: Unit =>
288293 "unset"
289294 case x: String =>
290295 x
291296 case _ =>
292297 throw("Match error")
293298 }
294299 let callerAddressStr = toString(i.caller)
295300 if ((adminList != "unset"))
296301 then {
297302 let test = getString(addressFromStringValue(adminList), callerAddressStr)
298303 let isAdmin = match test {
299304 case x: String =>
300305 x
301306 case _: Unit =>
302307 "no admin"
303308 case _ =>
304309 throw("Match error")
305310 }
306311 if ((isAdmin != "no admin"))
307312 then $Tuple2([DeleteEntry(variable)], unit)
308313 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
309314 }
310315 else throw("Unset admin list")
311316 }
312317
313318
314319 @Verifier(tx)
315320 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
316321

github/deemru/w8io/169f3d6 
41.11 ms