tx · 82Cj8gGn6xRjSWQFfZLgLStB4aAQ3HqUuJXrBLBDxNW

3N1uuiCdWD6meTjPFUwWV3dVAksPSiAidez:  -0.01940000 Waves

2020.10.30 20:27 [1243662] smart account 3N1uuiCdWD6meTjPFUwWV3dVAksPSiAidez > SELF 0.00000000 Waves

{ "type": 13, "id": "82Cj8gGn6xRjSWQFfZLgLStB4aAQ3HqUuJXrBLBDxNW", "fee": 1940000, "feeAssetId": null, "timestamp": 1604078912732, "version": 2, "chainId": 84, "sender": "3N1uuiCdWD6meTjPFUwWV3dVAksPSiAidez", "senderPublicKey": "34LvvP6RLph6fuHUj1P2FBRBBwKBF1fjYz6j3mW26qtp", "proofs": [ "46TTsXUXDE6HTdbF8M19t47DGPGcHFJwpMkwCDP3Cb64PWxUD28YXbzNWAEF5Y68iWrJ33wnnb9vvGvJ1vzjPDns" ], "script": "base64:AAIDAAAAAAAAABUIARIAEgASBAoCCAESABIDCgEBEgAAAAAAAAAABgAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACCOrPKFX9iyxI4BbdwwZEALQLKrVFO/ELkmmh2Y+mC8aAQAAAALR292ZXJuVG9rZW4BAAAAIMtrm7pE5/6PvpYJJCZ4VYOnbodph6rsi95jG/KBisX4BAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAA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AAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAACM/si", "height": 1243662, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 43wEtCjJvekAGdzhCADMjwnWBuRPbxXCfnKXmJpGVHE9 Next: none Diff:
OldNewDifferences
6161
6262
6363 @Callable(a)
64-func Stake () = {
64+func Stake (q,r) = {
6565 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
6666 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
67- let q = extract(a.payment)
68- if (if (isDefined(q.assetId))
69- then (extract(q.assetId) == d)
67+ if (if ((r > 0))
68+ then (q == toBase58String(d))
7069 else false)
7170 then {
7271 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7372 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
7473 let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
75- let r = {
74+ let s = {
7675 let j = getInteger(this, p)
7776 if ($isInstanceOf(j, "Int"))
7877 then {
8180 }
8281 else 0
8382 }
84- let s = (r + 1)
85- let t = {
83+ let t = (s + 1)
84+ let u = {
8685 let j = getInteger(this, f)
8786 if ($isInstanceOf(j, "Int"))
8887 then {
9190 }
9291 else 0
9392 }
94- let u = (t + q.amount)
95- let v = {
93+ let v = (u + r)
94+ let w = {
9695 let j = getInteger(this, f)
9796 if ($isInstanceOf(j, "Int"))
9897 then {
101100 }
102101 else 0
103102 }
104- let w = (v + 10)
105- let x = assetBalance(this, e)
106- let y = assetBalance(this, d)
107- if ((1 > x))
103+ let x = (w + 10)
104+ let y = assetBalance(this, e)
105+ let z = assetBalance(this, d)
106+ if ((1 > y))
108107 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
109- else if ((y == 0))
110- then ScriptResult(WriteSet([DataEntry(g, w), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
111- else if ((s > 50))
108+ else if ((z == 0))
109+ then ScriptResult(WriteSet([DataEntry(g, x), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
110+ else if ((t > 50))
112111 then {
113- let z = (v + ((10 * s) * (u / y)))
114- ScriptResult(WriteSet([DataEntry(g, z), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, z, e)]))
112+ let A = (w + ((10 * t) * (v / z)))
113+ ScriptResult(WriteSet([DataEntry(g, A), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, A, e)]))
115114 }
116115 else {
117- let z = (v + (10 * (u / y)))
118- ScriptResult(WriteSet([DataEntry(g, z), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, z, e)]))
116+ let A = (w + (10 * (v / z)))
117+ ScriptResult(WriteSet([DataEntry(g, A), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, A, e)]))
119118 }
120119 }
121120 else throw("Can deposit only StakeToken")
126125 @Callable(a)
127126 func DepositGovernToken () = {
128127 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
129- let A = toBase58String(e)
130- let q = extract(a.payment)
131- if (if (isDefined(q.assetId))
132- then (extract(q.assetId) == e)
128+ let B = toBase58String(e)
129+ let C = extract(a.payment)
130+ if (if (isDefined(C.assetId))
131+ then (extract(C.assetId) == e)
133132 else false)
134133 then {
135- let B = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
136- let C = {
137- let j = getInteger(this, B)
134+ let D = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
135+ let E = {
136+ let j = getInteger(this, D)
138137 if ($isInstanceOf(j, "Int"))
139138 then {
140139 let k = j
142141 }
143142 else 0
144143 }
145- let D = (C + q.amount)
144+ let F = (E + C.amount)
146145 let b = "GovernTokenMaxDeposit"
147146 let c = "MaxGovernTokenDepositerKey"
148147 let i = {
154153 }
155154 else 0
156155 }
157- if ((D > i))
158- then WriteSet([DataEntry(B, D), DataEntry(b, D), DataEntry(c, B)])
159- else WriteSet([DataEntry(B, D)])
156+ if ((F > i))
157+ then WriteSet([DataEntry(D, F), DataEntry(b, F), DataEntry(c, D)])
158+ else WriteSet([DataEntry(D, F)])
160159 }
161160 else throw("Can deposit only Govern Token")
162161 }
164163
165164
166165 @Callable(a)
167-func WithdrawStakedFunds (E) = {
166+func WithdrawStakedFunds (r) = {
168167 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
169168 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
170169 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
171170 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
172- let B = toBase58String(a.caller.bytes)
173- let C = {
171+ let D = toBase58String(a.caller.bytes)
172+ let E = {
174173 let j = getInteger(this, f)
175174 if ($isInstanceOf(j, "Int"))
176175 then {
179178 }
180179 else 0
181180 }
182- let F = (C - E)
183- if ((0 > E))
181+ let G = (E - r)
182+ if ((0 > r))
184183 then throw("Can't withdraw negative amount")
185- else if ((0 > F))
186- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(C)))
184+ else if ((0 > G))
185+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(E)))
187186 else {
188- let G = assetBalance(this, e)
189- if ((1 > G))
187+ let H = assetBalance(this, e)
188+ if ((1 > H))
190189 then throw("No enough GovernToken In Contract")
191- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, F)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, E, d)]))
190+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, G)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, r, d)]))
192191 }
193192 }
194193
198197 func ClaimPrize () = {
199198 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
200199 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
201- let H = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
200+ let I = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
202201 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
203202 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
204- let I = ((toBase58String(H) + "_") + toBase58String(d))
205- let J = {
203+ let J = ((toBase58String(I) + "_") + toBase58String(d))
204+ let K = {
206205 let j = getInteger(this, g)
207206 if ($isInstanceOf(j, "Int"))
208207 then {
211210 }
212211 else 0
213212 }
214- let K = {
213+ let L = {
215214 let j = getInteger(this, f)
216215 if ($isInstanceOf(j, "Int"))
217216 then {
220219 }
221220 else 0
222221 }
223- let L = {
224- let j = getInteger(this, I)
222+ let M = {
223+ let j = getInteger(this, J)
225224 if ($isInstanceOf(j, "Int"))
226225 then {
227226 let k = j
231230 }
232231 let b = "GovernTokenMaxDeposit"
233232 let c = "MaxGovernTokenDepositerKey"
234- let M = getStringValue(this, c)
235- if ((L == 0))
233+ let N = getStringValue(this, c)
234+ if ((M == 0))
236235 then throw("No prize to Claim")
237- else if ((g != M))
236+ else if ((g != N))
238237 then throw("You are not the winner hence cannot claim the reward ")
239- else if ((1 > K))
238+ else if ((1 > L))
240239 then throw(("You have to Stake StakedToken to claim reward
241- Your Balance of Staked Tokens is: " + toString(K)))
242- else if ((J > 100))
243- then ScriptResult(WriteSet([DataEntry(M, L), DataEntry(I, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, L, d), ScriptTransfer(a.caller, 100, e)]))
240+ Your Balance of Staked Tokens is: " + toString(L)))
241+ else if ((K > 100))
242+ then ScriptResult(WriteSet([DataEntry(N, M), DataEntry(J, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, M, d), ScriptTransfer(a.caller, 100, e)]))
244243 else throw(("You have to deposit 100 GovernToken to claim Reward
245- Your Balance is: " + toString(J)))
244+ Your Balance is: " + toString(K)))
246245 }
247246
248247
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func ReadPoolData () = {
88 let b = "GovernTokenMaxDeposit"
99 let c = "MaxGovernTokenDepositerKey"
1010 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
1111 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
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 = {
2626 let j = getInteger(this, g)
2727 if ($isInstanceOf(j, "Int"))
2828 then {
2929 let k = j
3030 k
3131 }
3232 else 0
3333 }
3434 let n = getStringValue(this, f)
3535 let o = {
3636 let j = getInteger(this, f)
3737 if ($isInstanceOf(j, "Int"))
3838 then {
3939 let k = j
4040 k
4141 }
4242 else 0
4343 }
4444 throw(((((((("Winner is.....: " + h) + " Balance is: ") + toString(i)) + "
4545 Staked Token in your Balance is.....: ") + toString(o)) + "
4646 Govern Token in your Balance is.....: ") + toString(m)))
4747 }
4848
4949
5050
5151 @Callable(a)
5252 func ResetAccount () = {
5353 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
5454 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
5555 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
5656 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
5757 let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
5858 WriteSet([DataEntry(g, 0), DataEntry(f, 0), DataEntry(p, 0)])
5959 }
6060
6161
6262
6363 @Callable(a)
64-func Stake () = {
64+func Stake (q,r) = {
6565 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
6666 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
67- let q = extract(a.payment)
68- if (if (isDefined(q.assetId))
69- then (extract(q.assetId) == d)
67+ if (if ((r > 0))
68+ then (q == toBase58String(d))
7069 else false)
7170 then {
7271 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7372 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
7473 let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
75- let r = {
74+ let s = {
7675 let j = getInteger(this, p)
7776 if ($isInstanceOf(j, "Int"))
7877 then {
7978 let k = j
8079 k
8180 }
8281 else 0
8382 }
84- let s = (r + 1)
85- let t = {
83+ let t = (s + 1)
84+ let u = {
8685 let j = getInteger(this, f)
8786 if ($isInstanceOf(j, "Int"))
8887 then {
8988 let k = j
9089 k
9190 }
9291 else 0
9392 }
94- let u = (t + q.amount)
95- let v = {
93+ let v = (u + r)
94+ let w = {
9695 let j = getInteger(this, f)
9796 if ($isInstanceOf(j, "Int"))
9897 then {
9998 let k = j
10099 k
101100 }
102101 else 0
103102 }
104- let w = (v + 10)
105- let x = assetBalance(this, e)
106- let y = assetBalance(this, d)
107- if ((1 > x))
103+ let x = (w + 10)
104+ let y = assetBalance(this, e)
105+ let z = assetBalance(this, d)
106+ if ((1 > y))
108107 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
109- else if ((y == 0))
110- then ScriptResult(WriteSet([DataEntry(g, w), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
111- else if ((s > 50))
108+ else if ((z == 0))
109+ then ScriptResult(WriteSet([DataEntry(g, x), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
110+ else if ((t > 50))
112111 then {
113- let z = (v + ((10 * s) * (u / y)))
114- ScriptResult(WriteSet([DataEntry(g, z), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, z, e)]))
112+ let A = (w + ((10 * t) * (v / z)))
113+ ScriptResult(WriteSet([DataEntry(g, A), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, A, e)]))
115114 }
116115 else {
117- let z = (v + (10 * (u / y)))
118- ScriptResult(WriteSet([DataEntry(g, z), DataEntry(f, u), DataEntry(p, s)]), TransferSet([ScriptTransfer(a.caller, z, e)]))
116+ let A = (w + (10 * (v / z)))
117+ ScriptResult(WriteSet([DataEntry(g, A), DataEntry(f, v), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, A, e)]))
119118 }
120119 }
121120 else throw("Can deposit only StakeToken")
122121 }
123122
124123
125124
126125 @Callable(a)
127126 func DepositGovernToken () = {
128127 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
129- let A = toBase58String(e)
130- let q = extract(a.payment)
131- if (if (isDefined(q.assetId))
132- then (extract(q.assetId) == e)
128+ let B = toBase58String(e)
129+ let C = extract(a.payment)
130+ if (if (isDefined(C.assetId))
131+ then (extract(C.assetId) == e)
133132 else false)
134133 then {
135- let B = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
136- let C = {
137- let j = getInteger(this, B)
134+ let D = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
135+ let E = {
136+ let j = getInteger(this, D)
138137 if ($isInstanceOf(j, "Int"))
139138 then {
140139 let k = j
141140 k
142141 }
143142 else 0
144143 }
145- let D = (C + q.amount)
144+ let F = (E + C.amount)
146145 let b = "GovernTokenMaxDeposit"
147146 let c = "MaxGovernTokenDepositerKey"
148147 let i = {
149148 let j = getInteger(this, b)
150149 if ($isInstanceOf(j, "Int"))
151150 then {
152151 let k = j
153152 k
154153 }
155154 else 0
156155 }
157- if ((D > i))
158- then WriteSet([DataEntry(B, D), DataEntry(b, D), DataEntry(c, B)])
159- else WriteSet([DataEntry(B, D)])
156+ if ((F > i))
157+ then WriteSet([DataEntry(D, F), DataEntry(b, F), DataEntry(c, D)])
158+ else WriteSet([DataEntry(D, F)])
160159 }
161160 else throw("Can deposit only Govern Token")
162161 }
163162
164163
165164
166165 @Callable(a)
167-func WithdrawStakedFunds (E) = {
166+func WithdrawStakedFunds (r) = {
168167 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
169168 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
170169 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
171170 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
172- let B = toBase58String(a.caller.bytes)
173- let C = {
171+ let D = toBase58String(a.caller.bytes)
172+ let E = {
174173 let j = getInteger(this, f)
175174 if ($isInstanceOf(j, "Int"))
176175 then {
177176 let k = j
178177 k
179178 }
180179 else 0
181180 }
182- let F = (C - E)
183- if ((0 > E))
181+ let G = (E - r)
182+ if ((0 > r))
184183 then throw("Can't withdraw negative amount")
185- else if ((0 > F))
186- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(C)))
184+ else if ((0 > G))
185+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(E)))
187186 else {
188- let G = assetBalance(this, e)
189- if ((1 > G))
187+ let H = assetBalance(this, e)
188+ if ((1 > H))
190189 then throw("No enough GovernToken In Contract")
191- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, F)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, E, d)]))
190+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, G)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, r, d)]))
192191 }
193192 }
194193
195194
196195
197196 @Callable(a)
198197 func ClaimPrize () = {
199198 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
200199 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
201- let H = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
200+ let I = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
202201 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
203202 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
204- let I = ((toBase58String(H) + "_") + toBase58String(d))
205- let J = {
203+ let J = ((toBase58String(I) + "_") + toBase58String(d))
204+ let K = {
206205 let j = getInteger(this, g)
207206 if ($isInstanceOf(j, "Int"))
208207 then {
209208 let k = j
210209 k
211210 }
212211 else 0
213212 }
214- let K = {
213+ let L = {
215214 let j = getInteger(this, f)
216215 if ($isInstanceOf(j, "Int"))
217216 then {
218217 let k = j
219218 k
220219 }
221220 else 0
222221 }
223- let L = {
224- let j = getInteger(this, I)
222+ let M = {
223+ let j = getInteger(this, J)
225224 if ($isInstanceOf(j, "Int"))
226225 then {
227226 let k = j
228227 k
229228 }
230229 else 0
231230 }
232231 let b = "GovernTokenMaxDeposit"
233232 let c = "MaxGovernTokenDepositerKey"
234- let M = getStringValue(this, c)
235- if ((L == 0))
233+ let N = getStringValue(this, c)
234+ if ((M == 0))
236235 then throw("No prize to Claim")
237- else if ((g != M))
236+ else if ((g != N))
238237 then throw("You are not the winner hence cannot claim the reward ")
239- else if ((1 > K))
238+ else if ((1 > L))
240239 then throw(("You have to Stake StakedToken to claim reward
241- Your Balance of Staked Tokens is: " + toString(K)))
242- else if ((J > 100))
243- then ScriptResult(WriteSet([DataEntry(M, L), DataEntry(I, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, L, d), ScriptTransfer(a.caller, 100, e)]))
240+ Your Balance of Staked Tokens is: " + toString(L)))
241+ else if ((K > 100))
242+ then ScriptResult(WriteSet([DataEntry(N, M), DataEntry(J, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, M, d), ScriptTransfer(a.caller, 100, e)]))
244243 else throw(("You have to deposit 100 GovernToken to claim Reward
245- Your Balance is: " + toString(J)))
244+ Your Balance is: " + toString(K)))
246245 }
247246
248247

github/deemru/w8io/169f3d6 
81.26 ms