tx · GF7ZjKbMbMU39ckahaE9wLTz4tGNaFMAoUnMnbS7LuLB

3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx:  -0.01000000 Waves

2023.03.06 18:28 [2478409] smart account 3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx > SELF 0.00000000 Waves

{ "type": 13, "id": "GF7ZjKbMbMU39ckahaE9wLTz4tGNaFMAoUnMnbS7LuLB", "fee": 1000000, "feeAssetId": null, "timestamp": 1678116498722, "version": 2, "chainId": 84, "sender": "3Mr7HCJPTazuYjJbfbbpRMvZX8xrNTjT1Kx", "senderPublicKey": "D35PGQCSSdrp9pvujggj7b2DaCK1BhcU3kho7tikKJYs", "proofs": [ "44UsYtaursimsUpSo5YMa52zw2sCsMvxeXq1iu1uTxpj7XutjQDzmKoMQA22CncBmLjRzeNC8YQUCGHFdB5RG3wd" ], "script": "base64:BgIgCAISBAoCAQESABIDCgEBEgQKAhgREgQKAggIEgMKAQgCAAxvcHRpb25zX2FkZHIJAQdBZGRyZXNzAQEaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBgFpAQlpc3N1ZUJpbGwCCXByb3ZpZGluZwRzaXplBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEDWN1cnJlbnRBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwUKY3VycmVudEtleQMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAQRbWluQmlsbERlcG9zaXRTdHIEByRtYXRjaDAJAJ0IAgUMb3B0aW9uc19hZGRyAhBtaW5fYmlsbF9kZXBvc2l0AwkAAQIFByRtYXRjaDACBFVuaXQCATADCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IED2V4Y2hhbmdlUmF0ZVN0cgQHJG1hdGNoMA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gBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnKqYXj", "height": 2478409, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJ9nG6iQZ9g1JgfTRFP9AVoNorczwu833p6D7DCChgLh Next: ENSaAqFBmZqcNXXLwV2rq6MohGAmVMqK6AkD7gtm8RFo Diff:
OldNewDifferences
66 let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
77
88 @Callable(c)
9-func issueBill (d) = {
10- let e = toBase58String(c.caller.bytes)
11- let f = {
12- let g = getInteger(this, e)
13- if ($isInstanceOf(g, "Int"))
9+func issueBill (d,e) = {
10+ let f = toBase58String(c.caller.bytes)
11+ let g = {
12+ let h = getInteger(this, f)
13+ if ($isInstanceOf(h, "Int"))
1414 then {
15- let h = g
16- h
15+ let i = h
16+ i
1717 }
1818 else 0
1919 }
20- let i = {
21- let g = getString(a, "min_bill_deposit")
22- if ($isInstanceOf(g, "Unit"))
20+ let j = {
21+ let h = getString(a, "min_bill_deposit")
22+ if ($isInstanceOf(h, "Unit"))
2323 then "0"
24- else if ($isInstanceOf(g, "String"))
24+ else if ($isInstanceOf(h, "String"))
2525 then {
26- let j = g
27- j
26+ let k = h
27+ k
2828 }
2929 else throw("Match error")
3030 }
31- let k = {
32- let g = parseInt(split(i, ".")[0])
33- if ($isInstanceOf(g, "Unit"))
34- then 0
35- else if ($isInstanceOf(g, "Int"))
31+ let l = {
32+ let h = getString(a, "exchange_rate")
33+ if ($isInstanceOf(h, "Unit"))
34+ then "0"
35+ else if ($isInstanceOf(h, "String"))
3636 then {
37- let l = g
38- l
37+ let k = h
38+ k
3939 }
4040 else throw("Match error")
4141 }
42- let m = (f - d)
43- if (((k * 100) > d))
44- then throw((((("The security deposit must be more than " + i) + ". You set the size: ") + toString((d / 100))) + ".00"))
45- else if ((0 > m))
42+ let m = {
43+ let h = parseInt(split(j, ".")[0])
44+ if ($isInstanceOf(h, "Unit"))
45+ then 0
46+ else if ($isInstanceOf(h, "Int"))
47+ then {
48+ let n = h
49+ n
50+ }
51+ else throw("Match error")
52+ }
53+ let o = {
54+ let h = parseInt(split(l, ".")[0])
55+ if ($isInstanceOf(h, "Unit"))
56+ then 0
57+ else if ($isInstanceOf(h, "Int"))
58+ then {
59+ let n = h
60+ n
61+ }
62+ else throw("Match error")
63+ }
64+ let p = (g - d)
65+ if (((m * 100) > d))
66+ then throw((((("The security deposit must be more than " + j) + ". You set the size: ") + toString((d / 100))) + ".00"))
67+ else if ((0 > p))
4668 then throw("Not enough balance")
47- else {
48- let n = Issue(("bill for:" + toString((d / 100))), e, 1, 0, false)
49- let o = calculateAssetId(n)
50- $Tuple2([IntegerEntry(e, m), n, ScriptTransfer(c.caller, 1, o), IntegerEntry(("l_u_" + toBase58String(o)), d)], unit)
51- }
69+ else if ((e > (g * o)))
70+ then throw((("The nominal value of the promissory bill exceeds the collateral minimum (" + j) + ")"))
71+ else {
72+ let q = Issue(("bill for:" + toString((d / 100))), ((f + ":") + toString(e)), 1, 0, false)
73+ let r = calculateAssetId(q)
74+ $Tuple2([IntegerEntry(f, p), q, ScriptTransfer(c.caller, 1, r), IntegerEntry(("l_u_" + toBase58String(r)), d)], unit)
75+ }
5276 }
5377
5478
5781 func deposit () = if ((size(c.payments) == 0))
5882 then throw("Payment not attached")
5983 else {
60- let p = value(c.payments)[0]
61- let q = {
62- let g = getString(a, "min_deposit")
63- if ($isInstanceOf(g, "Unit"))
84+ let s = value(c.payments)[0]
85+ let t = {
86+ let h = getString(a, "min_deposit")
87+ if ($isInstanceOf(h, "Unit"))
6488 then "0"
65- else if ($isInstanceOf(g, "String"))
89+ else if ($isInstanceOf(h, "String"))
6690 then {
67- let j = g
68- j
91+ let k = h
92+ k
6993 }
7094 else throw("Match error")
7195 }
72- let r = {
73- let g = parseInt(split(q, ".")[0])
74- if ($isInstanceOf(g, "Unit"))
96+ let u = {
97+ let h = parseInt(split(t, ".")[0])
98+ if ($isInstanceOf(h, "Unit"))
7599 then 0
76- else if ($isInstanceOf(g, "Int"))
100+ else if ($isInstanceOf(h, "Int"))
77101 then {
78- let l = g
79- l
102+ let n = h
103+ n
80104 }
81105 else throw("Match error")
82106 }
83- if ((p.assetId != b))
107+ if ((s.assetId != b))
84108 then throw("holded payment not tUSD")
85- else if (((r * 100) > p.amount))
86- then throw((((("You have set the deposit amount to " + toString((p.amount / 100))) + ".00, which is less than the minimum (") + q) + ")"))
109+ else if (((u * 100) > s.amount))
110+ then throw((((("You have set the deposit amount to " + toString((s.amount / 100))) + ".00, which is less than the minimum (") + t) + ")"))
87111 else {
88- let e = toBase58String(c.caller.bytes)
89- let f = {
90- let g = getInteger(this, e)
91- if ($isInstanceOf(g, "Int"))
112+ let f = toBase58String(c.caller.bytes)
113+ let g = {
114+ let h = getInteger(this, f)
115+ if ($isInstanceOf(h, "Int"))
92116 then {
93- let h = g
94- h
117+ let i = h
118+ i
95119 }
96120 else 0
97121 }
98- let m = (f + p.amount)
99-[IntegerEntry(e, m)]
122+ let p = (g + s.amount)
123+[IntegerEntry(f, p)]
100124 }
101125 }
102126
103127
104128
105129 @Callable(c)
106-func withdraw (s) = {
107- let e = toBase58String(c.caller.bytes)
108- let f = {
109- let g = getInteger(this, e)
110- if ($isInstanceOf(g, "Int"))
130+func withdraw (v) = {
131+ let f = toBase58String(c.caller.bytes)
132+ let g = {
133+ let h = getInteger(this, f)
134+ if ($isInstanceOf(h, "Int"))
111135 then {
112- let h = g
113- h
136+ let i = h
137+ i
114138 }
115139 else 0
116140 }
117- let m = (f - s)
118- if ((0 > s))
141+ let p = (g - v)
142+ if ((0 > v))
119143 then throw("Can't withdraw negative amount")
120- else if ((0 > m))
144+ else if ((0 > p))
121145 then throw("Not enough balance")
122- else $Tuple2([IntegerEntry(e, m), ScriptTransfer(c.caller, s, b)], unit)
146+ else $Tuple2([IntegerEntry(f, p), ScriptTransfer(c.caller, v, b)], unit)
123147 }
124148
125149
126150
127151 @Callable(c)
128-func setOptions (t,u) = {
129- let v = size(t)
130- if ((100 >= v))
152+func setOptions (w,x) = {
153+ let y = size(w)
154+ if ((100 >= y))
131155 then {
132- let w = {
133- let g = getString(a, "admin_list")
134- if ($isInstanceOf(g, "Unit"))
156+ let z = {
157+ let h = getString(a, "admin_list")
158+ if ($isInstanceOf(h, "Unit"))
135159 then "unset"
136- else if ($isInstanceOf(g, "String"))
160+ else if ($isInstanceOf(h, "String"))
137161 then {
138- let j = g
139- j
162+ let k = h
163+ k
140164 }
141165 else throw("Match error")
142166 }
143- func x (y,z) = {
144- let A = y
145- let B = A._1
146- let C = A._2
147- $Tuple2((B :+ IntegerEntry(t[C], z)), (C + 1))
167+ func A (B,C) = {
168+ let D = B
169+ let E = D._1
170+ let F = D._2
171+ $Tuple2((E :+ IntegerEntry(w[F], C)), (F + 1))
148172 }
149173
150- let D = {
151- let E = u
152- let F = size(E)
153- let G = $Tuple2(nil, 0)
154- func H (I,J) = if ((J >= F))
155- then I
156- else x(I, E[J])
174+ let G = {
175+ let H = x
176+ let I = size(H)
177+ let J = $Tuple2(nil, 0)
178+ func K (L,M) = if ((M >= I))
179+ then L
180+ else A(L, H[M])
157181
158- func K (I,J) = if ((J >= F))
159- then I
182+ func N (L,M) = if ((M >= I))
183+ then L
160184 else throw("List size exceeds 100")
161185
162- K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 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)
186+ N(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(J, 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)
163187 }
164- let L = toString(c.caller)
165- if ((w != "unset"))
188+ let O = toString(c.caller)
189+ if ((z != "unset"))
166190 then {
167- let M = getString(addressFromStringValue(w), L)
168- let N = {
169- let g = M
170- if ($isInstanceOf(g, "String"))
191+ let P = getString(addressFromStringValue(z), O)
192+ let Q = {
193+ let h = P
194+ if ($isInstanceOf(h, "String"))
171195 then {
172- let j = g
173- j
196+ let k = h
197+ k
174198 }
175- else if ($isInstanceOf(g, "Unit"))
199+ else if ($isInstanceOf(h, "Unit"))
176200 then "no admin"
177201 else throw("Match error")
178202 }
179- func O (P) = {
180- let Q = split(P, "|")
181- StringEntry(Q[0], Q[1])
203+ func R (S) = {
204+ let T = split(S, "|")
205+ StringEntry(T[0], T[1])
182206 }
183207
184- if ((N != "no admin"))
185- then D
186- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
208+ if ((Q != "no admin"))
209+ then G
210+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
187211 }
188212 else throw("Unset admin list")
189213 }
193217
194218
195219 @Callable(c)
196-func setOption (R,S) = {
197- let w = {
198- let g = getString(a, "admin_list")
199- if ($isInstanceOf(g, "Unit"))
220+func setOption (U,V) = {
221+ let z = {
222+ let h = getString(a, "admin_list")
223+ if ($isInstanceOf(h, "Unit"))
200224 then "unset"
201- else if ($isInstanceOf(g, "String"))
225+ else if ($isInstanceOf(h, "String"))
202226 then {
203- let j = g
204- j
227+ let k = h
228+ k
205229 }
206230 else throw("Match error")
207231 }
208- let L = toString(c.caller)
209- if ((w != "unset"))
232+ let O = toString(c.caller)
233+ if ((z != "unset"))
210234 then {
211- let M = getString(addressFromStringValue(w), L)
212- let N = {
213- let g = M
214- if ($isInstanceOf(g, "String"))
235+ let P = getString(addressFromStringValue(z), O)
236+ let Q = {
237+ let h = P
238+ if ($isInstanceOf(h, "String"))
215239 then {
216- let j = g
217- j
240+ let k = h
241+ k
218242 }
219- else if ($isInstanceOf(g, "Unit"))
243+ else if ($isInstanceOf(h, "Unit"))
220244 then "no admin"
221245 else throw("Match error")
222246 }
223- if ((N != "no admin"))
224- then $Tuple2([StringEntry(R, S)], unit)
225- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
247+ if ((Q != "no admin"))
248+ then $Tuple2([StringEntry(U, V)], unit)
249+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
226250 }
227251 else throw("Unset admin list")
228252 }
230254
231255
232256 @Callable(c)
233-func delOption (R) = {
234- let w = {
235- let g = getString(a, "admin_list")
236- if ($isInstanceOf(g, "Unit"))
257+func delOption (U) = {
258+ let z = {
259+ let h = getString(a, "admin_list")
260+ if ($isInstanceOf(h, "Unit"))
237261 then "unset"
238- else if ($isInstanceOf(g, "String"))
262+ else if ($isInstanceOf(h, "String"))
239263 then {
240- let j = g
241- j
264+ let k = h
265+ k
242266 }
243267 else throw("Match error")
244268 }
245- let L = toString(c.caller)
246- if ((w != "unset"))
269+ let O = toString(c.caller)
270+ if ((z != "unset"))
247271 then {
248- let M = getString(addressFromStringValue(w), L)
249- let N = {
250- let g = M
251- if ($isInstanceOf(g, "String"))
272+ let P = getString(addressFromStringValue(z), O)
273+ let Q = {
274+ let h = P
275+ if ($isInstanceOf(h, "String"))
252276 then {
253- let j = g
254- j
277+ let k = h
278+ k
255279 }
256- else if ($isInstanceOf(g, "Unit"))
280+ else if ($isInstanceOf(h, "Unit"))
257281 then "no admin"
258282 else throw("Match error")
259283 }
260- if ((N != "no admin"))
261- then $Tuple2([DeleteEntry(R)], unit)
262- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
284+ if ((Q != "no admin"))
285+ then $Tuple2([DeleteEntry(U)], unit)
286+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
263287 }
264288 else throw("Unset admin list")
265289 }
266290
267291
268-@Verifier(T)
269-func U () = sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey)
292+@Verifier(W)
293+func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
270294
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6')
55
66 let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85'
77
88 @Callable(c)
9-func issueBill (d) = {
10- let e = toBase58String(c.caller.bytes)
11- let f = {
12- let g = getInteger(this, e)
13- if ($isInstanceOf(g, "Int"))
9+func issueBill (d,e) = {
10+ let f = toBase58String(c.caller.bytes)
11+ let g = {
12+ let h = getInteger(this, f)
13+ if ($isInstanceOf(h, "Int"))
1414 then {
15- let h = g
16- h
15+ let i = h
16+ i
1717 }
1818 else 0
1919 }
20- let i = {
21- let g = getString(a, "min_bill_deposit")
22- if ($isInstanceOf(g, "Unit"))
20+ let j = {
21+ let h = getString(a, "min_bill_deposit")
22+ if ($isInstanceOf(h, "Unit"))
2323 then "0"
24- else if ($isInstanceOf(g, "String"))
24+ else if ($isInstanceOf(h, "String"))
2525 then {
26- let j = g
27- j
26+ let k = h
27+ k
2828 }
2929 else throw("Match error")
3030 }
31- let k = {
32- let g = parseInt(split(i, ".")[0])
33- if ($isInstanceOf(g, "Unit"))
34- then 0
35- else if ($isInstanceOf(g, "Int"))
31+ let l = {
32+ let h = getString(a, "exchange_rate")
33+ if ($isInstanceOf(h, "Unit"))
34+ then "0"
35+ else if ($isInstanceOf(h, "String"))
3636 then {
37- let l = g
38- l
37+ let k = h
38+ k
3939 }
4040 else throw("Match error")
4141 }
42- let m = (f - d)
43- if (((k * 100) > d))
44- then throw((((("The security deposit must be more than " + i) + ". You set the size: ") + toString((d / 100))) + ".00"))
45- else if ((0 > m))
42+ let m = {
43+ let h = parseInt(split(j, ".")[0])
44+ if ($isInstanceOf(h, "Unit"))
45+ then 0
46+ else if ($isInstanceOf(h, "Int"))
47+ then {
48+ let n = h
49+ n
50+ }
51+ else throw("Match error")
52+ }
53+ let o = {
54+ let h = parseInt(split(l, ".")[0])
55+ if ($isInstanceOf(h, "Unit"))
56+ then 0
57+ else if ($isInstanceOf(h, "Int"))
58+ then {
59+ let n = h
60+ n
61+ }
62+ else throw("Match error")
63+ }
64+ let p = (g - d)
65+ if (((m * 100) > d))
66+ then throw((((("The security deposit must be more than " + j) + ". You set the size: ") + toString((d / 100))) + ".00"))
67+ else if ((0 > p))
4668 then throw("Not enough balance")
47- else {
48- let n = Issue(("bill for:" + toString((d / 100))), e, 1, 0, false)
49- let o = calculateAssetId(n)
50- $Tuple2([IntegerEntry(e, m), n, ScriptTransfer(c.caller, 1, o), IntegerEntry(("l_u_" + toBase58String(o)), d)], unit)
51- }
69+ else if ((e > (g * o)))
70+ then throw((("The nominal value of the promissory bill exceeds the collateral minimum (" + j) + ")"))
71+ else {
72+ let q = Issue(("bill for:" + toString((d / 100))), ((f + ":") + toString(e)), 1, 0, false)
73+ let r = calculateAssetId(q)
74+ $Tuple2([IntegerEntry(f, p), q, ScriptTransfer(c.caller, 1, r), IntegerEntry(("l_u_" + toBase58String(r)), d)], unit)
75+ }
5276 }
5377
5478
5579
5680 @Callable(c)
5781 func deposit () = if ((size(c.payments) == 0))
5882 then throw("Payment not attached")
5983 else {
60- let p = value(c.payments)[0]
61- let q = {
62- let g = getString(a, "min_deposit")
63- if ($isInstanceOf(g, "Unit"))
84+ let s = value(c.payments)[0]
85+ let t = {
86+ let h = getString(a, "min_deposit")
87+ if ($isInstanceOf(h, "Unit"))
6488 then "0"
65- else if ($isInstanceOf(g, "String"))
89+ else if ($isInstanceOf(h, "String"))
6690 then {
67- let j = g
68- j
91+ let k = h
92+ k
6993 }
7094 else throw("Match error")
7195 }
72- let r = {
73- let g = parseInt(split(q, ".")[0])
74- if ($isInstanceOf(g, "Unit"))
96+ let u = {
97+ let h = parseInt(split(t, ".")[0])
98+ if ($isInstanceOf(h, "Unit"))
7599 then 0
76- else if ($isInstanceOf(g, "Int"))
100+ else if ($isInstanceOf(h, "Int"))
77101 then {
78- let l = g
79- l
102+ let n = h
103+ n
80104 }
81105 else throw("Match error")
82106 }
83- if ((p.assetId != b))
107+ if ((s.assetId != b))
84108 then throw("holded payment not tUSD")
85- else if (((r * 100) > p.amount))
86- then throw((((("You have set the deposit amount to " + toString((p.amount / 100))) + ".00, which is less than the minimum (") + q) + ")"))
109+ else if (((u * 100) > s.amount))
110+ then throw((((("You have set the deposit amount to " + toString((s.amount / 100))) + ".00, which is less than the minimum (") + t) + ")"))
87111 else {
88- let e = toBase58String(c.caller.bytes)
89- let f = {
90- let g = getInteger(this, e)
91- if ($isInstanceOf(g, "Int"))
112+ let f = toBase58String(c.caller.bytes)
113+ let g = {
114+ let h = getInteger(this, f)
115+ if ($isInstanceOf(h, "Int"))
92116 then {
93- let h = g
94- h
117+ let i = h
118+ i
95119 }
96120 else 0
97121 }
98- let m = (f + p.amount)
99-[IntegerEntry(e, m)]
122+ let p = (g + s.amount)
123+[IntegerEntry(f, p)]
100124 }
101125 }
102126
103127
104128
105129 @Callable(c)
106-func withdraw (s) = {
107- let e = toBase58String(c.caller.bytes)
108- let f = {
109- let g = getInteger(this, e)
110- if ($isInstanceOf(g, "Int"))
130+func withdraw (v) = {
131+ let f = toBase58String(c.caller.bytes)
132+ let g = {
133+ let h = getInteger(this, f)
134+ if ($isInstanceOf(h, "Int"))
111135 then {
112- let h = g
113- h
136+ let i = h
137+ i
114138 }
115139 else 0
116140 }
117- let m = (f - s)
118- if ((0 > s))
141+ let p = (g - v)
142+ if ((0 > v))
119143 then throw("Can't withdraw negative amount")
120- else if ((0 > m))
144+ else if ((0 > p))
121145 then throw("Not enough balance")
122- else $Tuple2([IntegerEntry(e, m), ScriptTransfer(c.caller, s, b)], unit)
146+ else $Tuple2([IntegerEntry(f, p), ScriptTransfer(c.caller, v, b)], unit)
123147 }
124148
125149
126150
127151 @Callable(c)
128-func setOptions (t,u) = {
129- let v = size(t)
130- if ((100 >= v))
152+func setOptions (w,x) = {
153+ let y = size(w)
154+ if ((100 >= y))
131155 then {
132- let w = {
133- let g = getString(a, "admin_list")
134- if ($isInstanceOf(g, "Unit"))
156+ let z = {
157+ let h = getString(a, "admin_list")
158+ if ($isInstanceOf(h, "Unit"))
135159 then "unset"
136- else if ($isInstanceOf(g, "String"))
160+ else if ($isInstanceOf(h, "String"))
137161 then {
138- let j = g
139- j
162+ let k = h
163+ k
140164 }
141165 else throw("Match error")
142166 }
143- func x (y,z) = {
144- let A = y
145- let B = A._1
146- let C = A._2
147- $Tuple2((B :+ IntegerEntry(t[C], z)), (C + 1))
167+ func A (B,C) = {
168+ let D = B
169+ let E = D._1
170+ let F = D._2
171+ $Tuple2((E :+ IntegerEntry(w[F], C)), (F + 1))
148172 }
149173
150- let D = {
151- let E = u
152- let F = size(E)
153- let G = $Tuple2(nil, 0)
154- func H (I,J) = if ((J >= F))
155- then I
156- else x(I, E[J])
174+ let G = {
175+ let H = x
176+ let I = size(H)
177+ let J = $Tuple2(nil, 0)
178+ func K (L,M) = if ((M >= I))
179+ then L
180+ else A(L, H[M])
157181
158- func K (I,J) = if ((J >= F))
159- then I
182+ func N (L,M) = if ((M >= I))
183+ then L
160184 else throw("List size exceeds 100")
161185
162- K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 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)
186+ N(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(K(J, 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)
163187 }
164- let L = toString(c.caller)
165- if ((w != "unset"))
188+ let O = toString(c.caller)
189+ if ((z != "unset"))
166190 then {
167- let M = getString(addressFromStringValue(w), L)
168- let N = {
169- let g = M
170- if ($isInstanceOf(g, "String"))
191+ let P = getString(addressFromStringValue(z), O)
192+ let Q = {
193+ let h = P
194+ if ($isInstanceOf(h, "String"))
171195 then {
172- let j = g
173- j
196+ let k = h
197+ k
174198 }
175- else if ($isInstanceOf(g, "Unit"))
199+ else if ($isInstanceOf(h, "Unit"))
176200 then "no admin"
177201 else throw("Match error")
178202 }
179- func O (P) = {
180- let Q = split(P, "|")
181- StringEntry(Q[0], Q[1])
203+ func R (S) = {
204+ let T = split(S, "|")
205+ StringEntry(T[0], T[1])
182206 }
183207
184- if ((N != "no admin"))
185- then D
186- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
208+ if ((Q != "no admin"))
209+ then G
210+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
187211 }
188212 else throw("Unset admin list")
189213 }
190214 else throw("The number of list elements must not exceed 100")
191215 }
192216
193217
194218
195219 @Callable(c)
196-func setOption (R,S) = {
197- let w = {
198- let g = getString(a, "admin_list")
199- if ($isInstanceOf(g, "Unit"))
220+func setOption (U,V) = {
221+ let z = {
222+ let h = getString(a, "admin_list")
223+ if ($isInstanceOf(h, "Unit"))
200224 then "unset"
201- else if ($isInstanceOf(g, "String"))
225+ else if ($isInstanceOf(h, "String"))
202226 then {
203- let j = g
204- j
227+ let k = h
228+ k
205229 }
206230 else throw("Match error")
207231 }
208- let L = toString(c.caller)
209- if ((w != "unset"))
232+ let O = toString(c.caller)
233+ if ((z != "unset"))
210234 then {
211- let M = getString(addressFromStringValue(w), L)
212- let N = {
213- let g = M
214- if ($isInstanceOf(g, "String"))
235+ let P = getString(addressFromStringValue(z), O)
236+ let Q = {
237+ let h = P
238+ if ($isInstanceOf(h, "String"))
215239 then {
216- let j = g
217- j
240+ let k = h
241+ k
218242 }
219- else if ($isInstanceOf(g, "Unit"))
243+ else if ($isInstanceOf(h, "Unit"))
220244 then "no admin"
221245 else throw("Match error")
222246 }
223- if ((N != "no admin"))
224- then $Tuple2([StringEntry(R, S)], unit)
225- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
247+ if ((Q != "no admin"))
248+ then $Tuple2([StringEntry(U, V)], unit)
249+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
226250 }
227251 else throw("Unset admin list")
228252 }
229253
230254
231255
232256 @Callable(c)
233-func delOption (R) = {
234- let w = {
235- let g = getString(a, "admin_list")
236- if ($isInstanceOf(g, "Unit"))
257+func delOption (U) = {
258+ let z = {
259+ let h = getString(a, "admin_list")
260+ if ($isInstanceOf(h, "Unit"))
237261 then "unset"
238- else if ($isInstanceOf(g, "String"))
262+ else if ($isInstanceOf(h, "String"))
239263 then {
240- let j = g
241- j
264+ let k = h
265+ k
242266 }
243267 else throw("Match error")
244268 }
245- let L = toString(c.caller)
246- if ((w != "unset"))
269+ let O = toString(c.caller)
270+ if ((z != "unset"))
247271 then {
248- let M = getString(addressFromStringValue(w), L)
249- let N = {
250- let g = M
251- if ($isInstanceOf(g, "String"))
272+ let P = getString(addressFromStringValue(z), O)
273+ let Q = {
274+ let h = P
275+ if ($isInstanceOf(h, "String"))
252276 then {
253- let j = g
254- j
277+ let k = h
278+ k
255279 }
256- else if ($isInstanceOf(g, "Unit"))
280+ else if ($isInstanceOf(h, "Unit"))
257281 then "no admin"
258282 else throw("Match error")
259283 }
260- if ((N != "no admin"))
261- then $Tuple2([DeleteEntry(R)], unit)
262- else throw((((((("You not admin: " + w) + ", isAdmin: ") + N) + ", callerAddressStr: ") + L) + ", "))
284+ if ((Q != "no admin"))
285+ then $Tuple2([DeleteEntry(U)], unit)
286+ else throw((((((("You not admin: " + z) + ", isAdmin: ") + Q) + ", callerAddressStr: ") + O) + ", "))
263287 }
264288 else throw("Unset admin list")
265289 }
266290
267291
268-@Verifier(T)
269-func U () = sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey)
292+@Verifier(W)
293+func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
270294

github/deemru/w8io/169f3d6 
197.44 ms