tx · 4eMRwHbjyh5ZHewbDeKoApifNMSmN6VKXnKqG6fUMQH7

3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL:  -0.10000000 Waves

2020.10.21 20:45 [1230644] smart account 3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL > SELF 0.00000000 Waves

{ "type": 13, "id": "4eMRwHbjyh5ZHewbDeKoApifNMSmN6VKXnKqG6fUMQH7", "fee": 10000000, "feeAssetId": null, "timestamp": 1603302388428, "version": 2, "chainId": 84, "sender": "3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL", "senderPublicKey": "4sCkx8qKE5wmxM8E1kfvNPCWnrTM2A6TTPYUQTsAWwwm", "proofs": [ "5SXs2v9Ur5CaBpJL5UedA7XzVN6FcSvPh68Hf8V7rt5Uueejj9SjNwuKBbkiJf6Y7mwvW4uUF2qBYNYSQ3gwQo4" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQA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QAAABJGdW5kQm94U3Rha2VkVG9rZW4AAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADkdvdmVyblRva2VuS2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5AgAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAxGvy/Q==", "height": 1230644, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CszdeK3gpqyjG8yPyXEqmyVPehoKX71WYW4U2cH6TACZ Next: A3VFAxDA3TXVNFHW5QELzuAFrs8FkngJRUpUkQRQdVLD Diff:
OldNewDifferences
2323 }
2424 let l = getStringValue(this, g)
2525 let m = getStringValue(this, f)
26+ let n = {
27+ let j = getInteger(this, m)
28+ if ($isInstanceOf(j, "Int"))
29+ then {
30+ let k = j
31+ k
32+ }
33+ else 0
34+ }
2635 throw(((("Winner is.....: " + h) + " Balance is: ") + toString(i)))
2736 }
2837
3140 @Callable(a)
3241 func payYield () = {
3342 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
34- let n = toBase58String(a.caller.bytes)
35- let o = {
36- let j = getInteger(this, n)
43+ let o = toBase58String(a.caller.bytes)
44+ let p = {
45+ let j = getInteger(this, o)
3746 if ($isInstanceOf(j, "Int"))
3847 then {
3948 let k = j
4150 }
4251 else 0
4352 }
44- if ((o > 0))
53+ if ((p > 0))
4554 then {
46- let p = assetBalance(this, e)
47- if ((1 > p))
55+ let q = assetBalance(this, e)
56+ if ((1 > q))
4857 then throw("No enough GovernToken In Contract")
49- else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
58+ else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
5059 }
5160 else throw("You need to deposit Collateral Token to receive Govern Token")
5261 }
5766 func Stake () = {
5867 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
5968 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
60- let q = extract(a.payment)
61- if (if (isDefined(q.assetId))
62- then (extract(q.assetId) == d)
69+ let r = extract(a.payment)
70+ if (if (isDefined(r.assetId))
71+ then (extract(r.assetId) == d)
6372 else false)
6473 then {
6574 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
6675 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
67- let o = {
76+ let p = {
6877 let j = getInteger(this, f)
6978 if ($isInstanceOf(j, "Int"))
7079 then {
7382 }
7483 else 0
7584 }
76- let r = (o + q.amount)
77- let s = assetBalance(this, e)
78- if ((1 > s))
85+ let s = (p + r.amount)
86+ let t = assetBalance(this, e)
87+ if ((1 > t))
7988 then throw("No enough GovernToken In Contract")
80- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
89+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
8190 }
8291 else throw("Can deposit only StakeToken")
8392 }
8796 @Callable(a)
8897 func DepositGovernToken () = {
8998 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
90- let t = toBase58String(e)
91- let q = extract(a.payment)
92- if (if (isDefined(q.assetId))
93- then (extract(q.assetId) == e)
99+ let u = toBase58String(e)
100+ let r = extract(a.payment)
101+ if (if (isDefined(r.assetId))
102+ then (extract(r.assetId) == e)
94103 else false)
95104 then {
96- let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
97- let o = {
98- let j = getInteger(this, n)
105+ let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106+ let p = {
107+ let j = getInteger(this, o)
99108 if ($isInstanceOf(j, "Int"))
100109 then {
101110 let k = j
103112 }
104113 else 0
105114 }
106- let u = (o + q.amount)
115+ let v = (p + r.amount)
107116 let b = "GovernTokenMaxDeposit"
108117 let c = "MaxGovernTokenDepositerKey"
109118 let i = {
115124 }
116125 else 0
117126 }
118- if ((u > i))
119- then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
120- else WriteSet([DataEntry(n, u)])
127+ if ((v > i))
128+ then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
129+ else WriteSet([DataEntry(o, v)])
121130 }
122131 else throw("Can deposit only Govern Token")
123132 }
125134
126135
127136 @Callable(a)
128-func WithdrawStakedFunds (v) = {
129- let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
137+func WithdrawStakedFunds (w) = {
138+ let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
130139 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
131- let n = toBase58String(a.caller.bytes)
132- let o = {
133- let j = getInteger(this, n)
140+ let o = toBase58String(a.caller.bytes)
141+ let p = {
142+ let j = getInteger(this, o)
134143 if ($isInstanceOf(j, "Int"))
135144 then {
136145 let k = j
138147 }
139148 else 0
140149 }
141- let r = (o - v)
142- if ((0 > v))
150+ let s = (p - w)
151+ if ((0 > w))
143152 then throw("Can't withdraw negative amount")
144- else if ((0 > r))
153+ else if ((0 > s))
145154 then throw("User cannot withdraw more than deposited funds")
146155 else {
147- let p = assetBalance(this, e)
148- if ((1 > p))
156+ let q = assetBalance(this, e)
157+ if ((1 > q))
149158 then throw("No enough GovernToken In Contract")
150- else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
159+ else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
151160 }
152161 }
153162
157166 func ClaimPrize () = {
158167 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
159168 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
160- let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
169+ let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
161170 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
162171 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
163- let y = ((toBase58String(x) + "_") + toBase58String(d))
164- let z = {
172+ let z = ((toBase58String(y) + "_") + toBase58String(d))
173+ let A = {
165174 let j = getInteger(this, g)
166175 if ($isInstanceOf(j, "Int"))
167176 then {
170179 }
171180 else 0
172181 }
173- let A = {
182+ let B = {
174183 let j = getInteger(this, f)
175184 if ($isInstanceOf(j, "Int"))
176185 then {
179188 }
180189 else 0
181190 }
182- let B = {
183- let j = getInteger(this, y)
191+ let C = {
192+ let j = getInteger(this, z)
184193 if ($isInstanceOf(j, "Int"))
185194 then {
186195 let k = j
190199 }
191200 let b = "GovernTokenMaxDeposit"
192201 let c = "MaxGovernTokenDepositerKey"
193- let C = getStringValue(this, c)
194- if ((B == 0))
202+ let D = getStringValue(this, c)
203+ if ((C == 0))
195204 then throw("No prize to Claim")
196- else if ((g != C))
205+ else if ((g != D))
197206 then throw("You are not the winner hence cannot claim the reward ")
198- else if ((1 > A))
207+ else if ((1 > B))
199208 then throw(("You have to Stake StakedToken to claim reward
200- Your Balance of Staked Tokens is: " + toString(A)))
201- else if ((z > 100))
202- then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
209+ Your Balance of Staked Tokens is: " + toString(B)))
210+ else if ((A > 100))
211+ then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
203212 else throw(("You have to deposit 100 GovernToken to claim Reward
204- Your Balance is: " + toString(z)))
213+ Your Balance is: " + toString(A)))
205214 }
206215
207216
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func ReadMaxGovernDeposit () = {
88 let b = "GovernTokenMaxDeposit"
99 let c = "MaxGovernTokenDepositerKey"
1010 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
1111 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
1212 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
1313 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
1414 let h = getStringValue(this, c)
1515 let i = {
1616 let j = getInteger(this, b)
1717 if ($isInstanceOf(j, "Int"))
1818 then {
1919 let k = j
2020 k
2121 }
2222 else 0
2323 }
2424 let l = getStringValue(this, g)
2525 let m = getStringValue(this, f)
26+ let n = {
27+ let j = getInteger(this, m)
28+ if ($isInstanceOf(j, "Int"))
29+ then {
30+ let k = j
31+ k
32+ }
33+ else 0
34+ }
2635 throw(((("Winner is.....: " + h) + " Balance is: ") + toString(i)))
2736 }
2837
2938
3039
3140 @Callable(a)
3241 func payYield () = {
3342 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
34- let n = toBase58String(a.caller.bytes)
35- let o = {
36- let j = getInteger(this, n)
43+ let o = toBase58String(a.caller.bytes)
44+ let p = {
45+ let j = getInteger(this, o)
3746 if ($isInstanceOf(j, "Int"))
3847 then {
3948 let k = j
4049 k
4150 }
4251 else 0
4352 }
44- if ((o > 0))
53+ if ((p > 0))
4554 then {
46- let p = assetBalance(this, e)
47- if ((1 > p))
55+ let q = assetBalance(this, e)
56+ if ((1 > q))
4857 then throw("No enough GovernToken In Contract")
49- else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
58+ else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
5059 }
5160 else throw("You need to deposit Collateral Token to receive Govern Token")
5261 }
5362
5463
5564
5665 @Callable(a)
5766 func Stake () = {
5867 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
5968 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
60- let q = extract(a.payment)
61- if (if (isDefined(q.assetId))
62- then (extract(q.assetId) == d)
69+ let r = extract(a.payment)
70+ if (if (isDefined(r.assetId))
71+ then (extract(r.assetId) == d)
6372 else false)
6473 then {
6574 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
6675 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
67- let o = {
76+ let p = {
6877 let j = getInteger(this, f)
6978 if ($isInstanceOf(j, "Int"))
7079 then {
7180 let k = j
7281 k
7382 }
7483 else 0
7584 }
76- let r = (o + q.amount)
77- let s = assetBalance(this, e)
78- if ((1 > s))
85+ let s = (p + r.amount)
86+ let t = assetBalance(this, e)
87+ if ((1 > t))
7988 then throw("No enough GovernToken In Contract")
80- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
89+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
8190 }
8291 else throw("Can deposit only StakeToken")
8392 }
8493
8594
8695
8796 @Callable(a)
8897 func DepositGovernToken () = {
8998 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
90- let t = toBase58String(e)
91- let q = extract(a.payment)
92- if (if (isDefined(q.assetId))
93- then (extract(q.assetId) == e)
99+ let u = toBase58String(e)
100+ let r = extract(a.payment)
101+ if (if (isDefined(r.assetId))
102+ then (extract(r.assetId) == e)
94103 else false)
95104 then {
96- let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
97- let o = {
98- let j = getInteger(this, n)
105+ let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106+ let p = {
107+ let j = getInteger(this, o)
99108 if ($isInstanceOf(j, "Int"))
100109 then {
101110 let k = j
102111 k
103112 }
104113 else 0
105114 }
106- let u = (o + q.amount)
115+ let v = (p + r.amount)
107116 let b = "GovernTokenMaxDeposit"
108117 let c = "MaxGovernTokenDepositerKey"
109118 let i = {
110119 let j = getInteger(this, b)
111120 if ($isInstanceOf(j, "Int"))
112121 then {
113122 let k = j
114123 k
115124 }
116125 else 0
117126 }
118- if ((u > i))
119- then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
120- else WriteSet([DataEntry(n, u)])
127+ if ((v > i))
128+ then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
129+ else WriteSet([DataEntry(o, v)])
121130 }
122131 else throw("Can deposit only Govern Token")
123132 }
124133
125134
126135
127136 @Callable(a)
128-func WithdrawStakedFunds (v) = {
129- let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
137+func WithdrawStakedFunds (w) = {
138+ let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
130139 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
131- let n = toBase58String(a.caller.bytes)
132- let o = {
133- let j = getInteger(this, n)
140+ let o = toBase58String(a.caller.bytes)
141+ let p = {
142+ let j = getInteger(this, o)
134143 if ($isInstanceOf(j, "Int"))
135144 then {
136145 let k = j
137146 k
138147 }
139148 else 0
140149 }
141- let r = (o - v)
142- if ((0 > v))
150+ let s = (p - w)
151+ if ((0 > w))
143152 then throw("Can't withdraw negative amount")
144- else if ((0 > r))
153+ else if ((0 > s))
145154 then throw("User cannot withdraw more than deposited funds")
146155 else {
147- let p = assetBalance(this, e)
148- if ((1 > p))
156+ let q = assetBalance(this, e)
157+ if ((1 > q))
149158 then throw("No enough GovernToken In Contract")
150- else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
159+ else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
151160 }
152161 }
153162
154163
155164
156165 @Callable(a)
157166 func ClaimPrize () = {
158167 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
159168 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
160- let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
169+ let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
161170 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
162171 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
163- let y = ((toBase58String(x) + "_") + toBase58String(d))
164- let z = {
172+ let z = ((toBase58String(y) + "_") + toBase58String(d))
173+ let A = {
165174 let j = getInteger(this, g)
166175 if ($isInstanceOf(j, "Int"))
167176 then {
168177 let k = j
169178 k
170179 }
171180 else 0
172181 }
173- let A = {
182+ let B = {
174183 let j = getInteger(this, f)
175184 if ($isInstanceOf(j, "Int"))
176185 then {
177186 let k = j
178187 k
179188 }
180189 else 0
181190 }
182- let B = {
183- let j = getInteger(this, y)
191+ let C = {
192+ let j = getInteger(this, z)
184193 if ($isInstanceOf(j, "Int"))
185194 then {
186195 let k = j
187196 k
188197 }
189198 else 0
190199 }
191200 let b = "GovernTokenMaxDeposit"
192201 let c = "MaxGovernTokenDepositerKey"
193- let C = getStringValue(this, c)
194- if ((B == 0))
202+ let D = getStringValue(this, c)
203+ if ((C == 0))
195204 then throw("No prize to Claim")
196- else if ((g != C))
205+ else if ((g != D))
197206 then throw("You are not the winner hence cannot claim the reward ")
198- else if ((1 > A))
207+ else if ((1 > B))
199208 then throw(("You have to Stake StakedToken to claim reward
200- Your Balance of Staked Tokens is: " + toString(A)))
201- else if ((z > 100))
202- then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
209+ Your Balance of Staked Tokens is: " + toString(B)))
210+ else if ((A > 100))
211+ then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
203212 else throw(("You have to deposit 100 GovernToken to claim Reward
204- Your Balance is: " + toString(z)))
213+ Your Balance is: " + toString(A)))
205214 }
206215
207216

github/deemru/w8io/169f3d6 
67.00 ms