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/vK94nfeiKN08fw7a6U2ZsABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBwFpARRyZWlzc3VlVG9rZW5zTG95YWx0eQADCQAAAgkAkAMBCAUBaQhwYXltZW50cwAACQACAQIUUGF5bWVudCBub3QgYXR0YWNoZWQECGFzc2V0X2lkBAckbWF0Y2gwCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCaWQFByRtYXRjaDAFAmlkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAQKYXNzZXRfaW5mbwQHJG1hdGNoMAkA7AcBBQhhc3NldF9pZAMJAAECBQckbWF0Y2gwAgVBc3NldAQFYXNzZXQFByRtYXRjaDAFBWFzc2V0CQACAQIbQ2FuJ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XNBZG1pbjogBQdpc0FkbWluAhQsIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgICLCAJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTS4Iug=", "height": 2481841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4WUZLyC84Vbp9hx3jcK8bgJBY5PjqPAfHR4yMg66td4c Next: 4o7AfZNxtGFVHY2RExnHLjftJVxU7o5L8hto9u9ety7n Diff:
OldNewDifferences
3838 if ((toString(is_opt_addr) != toString(this)))
3939 then throw("Issuer not options_addr")
4040 else {
41- let res = invoke(options_addr, "reissueForDepAddr", [toBase58String(tRUB), quantity], nil)
41+ let res = invoke(options_addr, "reissueForDepAddr", [quantity], nil)
4242 if ((res == res))
4343 then match res {
4444 case r: Int =>
207207 throw("Match error")
208208 }
209209 func addStringEntry (accum,nextValue) = {
210- let $t076917714 = accum
211- let result = $t076917714._1
212- let j = $t076917714._2
210+ let $t076687691 = accum
211+ let result = $t076687691._1
212+ let j = $t076687691._2
213213 $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1))
214214 }
215215
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 {
41- let res = invoke(options_addr, "reissueForDepAddr", [toBase58String(tRUB), quantity], nil)
41+ 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 _ =>
4747 throw({
4848 let @ = res
4949 if ($isInstanceOf(@, "String"))
5050 then @
5151 else throw(($getType(@) + " couldn't be cast to String"))
5252 })
5353 }
5454 else throw("Strict value is not equal to itself.")
5555 }
5656 }
5757
5858
5959
6060 @Callable(i)
6161 func issueBill (providing,size) = {
6262 let currentKey = toBase58String(i.caller.bytes)
6363 let currentAmount = match getInteger(this, currentKey) {
6464 case a: Int =>
6565 a
6666 case _ =>
6767 0
6868 }
6969 let minBillDepositStr = match getString(options_addr, "min_bill_deposit") {
7070 case _: Unit =>
7171 "0"
7272 case x: String =>
7373 x
7474 case _ =>
7575 throw("Match error")
7676 }
7777 let minBillDeposit = match parseInt(split(minBillDepositStr, ".")[0]) {
7878 case _: Unit =>
7979 0
8080 case t: Int =>
8181 t
8282 case _ =>
8383 throw("Match error")
8484 }
8585 let exchangeRateStr = match getString(options_addr, "exchange_rate") {
8686 case _: Unit =>
8787 "0"
8888 case x: String =>
8989 x
9090 case _ =>
9191 throw("Match error")
9292 }
9393 let exchangeRate = match parseInt(exchangeRateStr) {
9494 case _: Unit =>
9595 0
9696 case t: Int =>
9797 t
9898 case _ =>
9999 throw("Match error")
100100 }
101101 let shareGuaranteeFeeStr = match getString(options_addr, "share_guarantee_fee") {
102102 case _: Unit =>
103103 "0"
104104 case x: String =>
105105 x
106106 case _ =>
107107 throw("Match error")
108108 }
109109 let shareGuaranteeFee = match parseInt(shareGuaranteeFeeStr) {
110110 case _: Unit =>
111111 0
112112 case t: Int =>
113113 t
114114 case _ =>
115115 throw("Match error")
116116 }
117117 let tRUB_min = (((minBillDeposit * exchangeRate) * 100) / shareGuaranteeFee)
118118 let tRUB_max = ((providing * exchangeRate) / shareGuaranteeFee)
119119 let newAmount = (currentAmount - providing)
120120 if (((minBillDeposit * 100) > providing))
121121 then throw((((("The security deposit must be more than " + minBillDepositStr) + ". You set the size: ") + toString((providing / 100))) + ".00"))
122122 else if ((0 > newAmount))
123123 then throw("Not enough balance")
124124 else if ((tRUB_min > size))
125125 then throw((((("The nominal value of the promissory bill exceeds the collateral minimum " + toString(tRUB_min)) + "₽ (") + minBillDepositStr) + "tUSD)"))
126126 else if ((size > tRUB_max))
127127 then throw((((("The value of the token cannot exceed the maximum " + toString(tRUB_max)) + "₽ of the guarantee deposit (") + toString((providing / 100))) + "tUSD)"))
128128 else {
129129 let issue = Issue(("bill for:" + toString((providing / 100))), ((currentKey + ":") + toString(size)), 1, 0, false)
130130 let id = calculateAssetId(issue)
131131 $Tuple2([IntegerEntry(currentKey, newAmount), issue, ScriptTransfer(i.caller, 1, id), IntegerEntry(("l_u_" + toBase58String(id)), providing)], unit)
132132 }
133133 }
134134
135135
136136
137137 @Callable(i)
138138 func deposit () = if ((size(i.payments) == 0))
139139 then throw("Payment not attached")
140140 else {
141141 let pmt = value(i.payments)[0]
142142 let minDepositStr = match getString(options_addr, "min_deposit") {
143143 case _: Unit =>
144144 "0"
145145 case x: String =>
146146 x
147147 case _ =>
148148 throw("Match error")
149149 }
150150 let minDeposit = match parseInt(split(minDepositStr, ".")[0]) {
151151 case _: Unit =>
152152 0
153153 case t: Int =>
154154 t
155155 case _ =>
156156 throw("Match error")
157157 }
158158 if ((pmt.assetId != tUSD))
159159 then throw("holded payment not tUSD")
160160 else if (((minDeposit * 100) > pmt.amount))
161161 then throw((((("You have set the deposit amount to " + toString((pmt.amount / 100))) + ".00, which is less than the minimum (") + minDepositStr) + ")"))
162162 else {
163163 let currentKey = toBase58String(i.caller.bytes)
164164 let currentAmount = match getInteger(this, currentKey) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let newAmount = (currentAmount + pmt.amount)
171171 [IntegerEntry(currentKey, newAmount)]
172172 }
173173 }
174174
175175
176176
177177 @Callable(i)
178178 func withdraw (amount) = {
179179 let currentKey = toBase58String(i.caller.bytes)
180180 let currentAmount = match getInteger(this, currentKey) {
181181 case a: Int =>
182182 a
183183 case _ =>
184184 0
185185 }
186186 let newAmount = (currentAmount - amount)
187187 if ((0 > amount))
188188 then throw("Can't withdraw negative amount")
189189 else if ((0 > newAmount))
190190 then throw("Not enough balance")
191191 else $Tuple2([IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, tUSD)], unit)
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func setOptions (opts,vals) = {
198198 let opt_size = size(opts)
199199 if ((100 >= opt_size))
200200 then {
201201 let adminList = match getString(options_addr, "admin_list") {
202202 case _: Unit =>
203203 "unset"
204204 case x: String =>
205205 x
206206 case _ =>
207207 throw("Match error")
208208 }
209209 func addStringEntry (accum,nextValue) = {
210- let $t076917714 = accum
211- let result = $t076917714._1
212- let j = $t076917714._2
210+ let $t076687691 = accum
211+ let result = $t076687691._1
212+ let j = $t076687691._2
213213 $Tuple2((result :+ IntegerEntry(opts[j], nextValue)), (j + 1))
214214 }
215215
216216 let r = {
217217 let $l = vals
218218 let $s = size($l)
219219 let $acc0 = $Tuple2(nil, 0)
220220 func $f0_1 ($a,$i) = if (($i >= $s))
221221 then $a
222222 else addStringEntry($a, $l[$i])
223223
224224 func $f0_2 ($a,$i) = if (($i >= $s))
225225 then $a
226226 else throw("List size exceeds 100")
227227
228228 $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)
229229 }
230230 let callerAddressStr = toString(i.caller)
231231 if ((adminList != "unset"))
232232 then {
233233 let test = getString(addressFromStringValue(adminList), callerAddressStr)
234234 let isAdmin = match test {
235235 case x: String =>
236236 x
237237 case _: Unit =>
238238 "no admin"
239239 case _ =>
240240 throw("Match error")
241241 }
242242 func add_elm (options) = {
243243 let opt = split(options, "|")
244244 StringEntry(opt[0], opt[1])
245245 }
246246
247247 if ((isAdmin != "no admin"))
248248 then r
249249 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
250250 }
251251 else throw("Unset admin list")
252252 }
253253 else throw("The number of list elements must not exceed 100")
254254 }
255255
256256
257257
258258 @Callable(i)
259259 func setOption (variable,value) = {
260260 let adminList = match getString(options_addr, "admin_list") {
261261 case _: Unit =>
262262 "unset"
263263 case x: String =>
264264 x
265265 case _ =>
266266 throw("Match error")
267267 }
268268 let callerAddressStr = toString(i.caller)
269269 if ((adminList != "unset"))
270270 then {
271271 let test = getString(addressFromStringValue(adminList), callerAddressStr)
272272 let isAdmin = match test {
273273 case x: String =>
274274 x
275275 case _: Unit =>
276276 "no admin"
277277 case _ =>
278278 throw("Match error")
279279 }
280280 if ((isAdmin != "no admin"))
281281 then $Tuple2([StringEntry(variable, value)], unit)
282282 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
283283 }
284284 else throw("Unset admin list")
285285 }
286286
287287
288288
289289 @Callable(i)
290290 func delOption (variable) = {
291291 let adminList = match getString(options_addr, "admin_list") {
292292 case _: Unit =>
293293 "unset"
294294 case x: String =>
295295 x
296296 case _ =>
297297 throw("Match error")
298298 }
299299 let callerAddressStr = toString(i.caller)
300300 if ((adminList != "unset"))
301301 then {
302302 let test = getString(addressFromStringValue(adminList), callerAddressStr)
303303 let isAdmin = match test {
304304 case x: String =>
305305 x
306306 case _: Unit =>
307307 "no admin"
308308 case _ =>
309309 throw("Match error")
310310 }
311311 if ((isAdmin != "no admin"))
312312 then $Tuple2([DeleteEntry(variable)], unit)
313313 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
314314 }
315315 else throw("Unset admin list")
316316 }
317317
318318
319319 @Verifier(tx)
320320 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
321321

github/deemru/w8io/026f985 
84.86 ms