tx · Hg23vnqVbUgtS3QqHituJFsNBnyk6aszYbwqyjBAYDj

3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT:  -0.01400000 Waves

2020.12.07 16:23 [1298288] smart account 3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT > SELF 0.00000000 Waves

{ "type": 13, "id": "Hg23vnqVbUgtS3QqHituJFsNBnyk6aszYbwqyjBAYDj", "fee": 1400000, "feeAssetId": null, "timestamp": 1607347466251, "version": 2, "chainId": 84, "sender": "3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT", "senderPublicKey": "EEG3yJvW1pyCtw138vRpByPpVgrN9VUW9X7G3b9qnwAU", "proofs": [ "3vWcm7LBWt4QeFahxCS7A8DNyjSqsFG343Zb4VCxzPnKpu9LKDk3gDyp3WcwwMFQML78xQH7C5ACVbNZ4AAWWBBi" ], "script": "base64:AAIDAAAAAAAAABUIARIAEgASBAoCCAESABIDCgEBEgAAAAAAAAAABgAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACCOrPKFX9iyxI4BbdwwZEALQLKrVFO/ELkmmh2Y+mC8aAQAAAALR292ZXJuVG9rZW4BAAAAIMtrm7pE5/6PvpYJJCZ4VYOnbodph6rsi95jG/KBisX4BAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAV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AAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAOR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAElVzZXJHb3Zlcm5Ub2tlbktleQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAACM/si", "height": 1298288, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7Rw7YGNeWDZqhDtqp5VChDqwjtNvVHsADCUUJnQihiD9 Next: DJwVDAh3nQDyL5ER23hCXczUiEZdb39LWuzNnWBAfHk7 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 = assetBalance(this, d)
68- let r = extract(a.payment)
69- if (if (isDefined(r.assetId))
70- then (extract(r.assetId) == d)
67+ if (if ((r > 0))
68+ then (q == toBase58String(d))
7169 else false)
7270 then {
73- let s = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
74- let t = {
75- let j = getInteger(this, s)
71+ let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
72+ let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
73+ let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
74+ let s = {
75+ let j = getInteger(this, p)
7676 if ($isInstanceOf(j, "Int"))
7777 then {
7878 let k = j
8080 }
8181 else 0
8282 }
83- let u = (t + r.amount)
84- ScriptResult(WriteSet([DataEntry(s, u)]), TransferSet([ScriptTransfer(this, 1, d)]))
83+ let t = (s + 1)
84+ let u = {
85+ let j = getInteger(this, f)
86+ if ($isInstanceOf(j, "Int"))
87+ then {
88+ let k = j
89+ k
90+ }
91+ else 0
92+ }
93+ let v = (u + r)
94+ let w = {
95+ let j = getInteger(this, f)
96+ if ($isInstanceOf(j, "Int"))
97+ then {
98+ let k = j
99+ k
100+ }
101+ else 0
102+ }
103+ let x = (w + 10)
104+ let y = assetBalance(this, e)
105+ let z = assetBalance(this, d)
106+ if ((1 > y))
107+ then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
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))
111+ then {
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)]))
114+ }
115+ else {
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)]))
118+ }
85119 }
86120 else throw("Can deposit only StakeToken")
87121 }
91125 @Callable(a)
92126 func DepositGovernToken () = {
93127 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
94- let v = toBase58String(e)
95- let r = extract(a.payment)
96- if (if (isDefined(r.assetId))
97- then (extract(r.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)
98132 else false)
99133 then {
100- let s = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
101- let t = {
102- let j = getInteger(this, s)
134+ let D = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
135+ let E = {
136+ let j = getInteger(this, D)
103137 if ($isInstanceOf(j, "Int"))
104138 then {
105139 let k = j
107141 }
108142 else 0
109143 }
110- let w = (t + r.amount)
144+ let F = (E + C.amount)
111145 let b = "GovernTokenMaxDeposit"
112146 let c = "MaxGovernTokenDepositerKey"
113147 let i = {
119153 }
120154 else 0
121155 }
122- if ((w > i))
123- then WriteSet([DataEntry(s, w), DataEntry(b, w), DataEntry(c, s)])
124- else WriteSet([DataEntry(s, w)])
156+ if ((F > i))
157+ then WriteSet([DataEntry(D, F), DataEntry(b, F), DataEntry(c, D)])
158+ else WriteSet([DataEntry(D, F)])
125159 }
126160 else throw("Can deposit only Govern Token")
127161 }
129163
130164
131165 @Callable(a)
132-func WithdrawStakedFunds (x) = {
166+func WithdrawStakedFunds (r) = {
133167 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
134168 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
135169 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
136170 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
137- let s = toBase58String(a.caller.bytes)
138- let t = {
171+ let D = toBase58String(a.caller.bytes)
172+ let E = {
139173 let j = getInteger(this, f)
140174 if ($isInstanceOf(j, "Int"))
141175 then {
144178 }
145179 else 0
146180 }
147- let y = (t - x)
148- if ((0 > x))
181+ let G = (E - r)
182+ if ((0 > r))
149183 then throw("Can't withdraw negative amount")
150- else if ((0 > y))
151- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(t)))
184+ else if ((0 > G))
185+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(E)))
152186 else {
153- let z = assetBalance(this, e)
154- if ((1 > z))
187+ let H = assetBalance(this, e)
188+ if ((1 > H))
155189 then throw("No enough GovernToken In Contract")
156- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, y)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, d)]))
190+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, G)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, r, d)]))
157191 }
158192 }
159193
163197 func ClaimPrize () = {
164198 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
165199 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
166- let A = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
200+ let I = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
167201 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
168202 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
169- let B = ((toBase58String(A) + "_") + toBase58String(d))
170- let C = {
203+ let J = ((toBase58String(I) + "_") + toBase58String(d))
204+ let K = {
171205 let j = getInteger(this, g)
172206 if ($isInstanceOf(j, "Int"))
173207 then {
176210 }
177211 else 0
178212 }
179- let D = {
213+ let L = {
180214 let j = getInteger(this, f)
181215 if ($isInstanceOf(j, "Int"))
182216 then {
185219 }
186220 else 0
187221 }
188- let E = {
189- let j = getInteger(this, B)
222+ let M = {
223+ let j = getInteger(this, J)
190224 if ($isInstanceOf(j, "Int"))
191225 then {
192226 let k = j
196230 }
197231 let b = "GovernTokenMaxDeposit"
198232 let c = "MaxGovernTokenDepositerKey"
199- let F = getStringValue(this, c)
200- if ((E == 0))
233+ let N = getStringValue(this, c)
234+ if ((M == 0))
201235 then throw("No prize to Claim")
202- else if ((g != F))
236+ else if ((g != N))
203237 then throw("You are not the winner hence cannot claim the reward ")
204- else if ((1 > D))
238+ else if ((1 > L))
205239 then throw(("You have to Stake StakedToken to claim reward
206- Your Balance of Staked Tokens is: " + toString(D)))
207- else if ((C > 100))
208- then ScriptResult(WriteSet([DataEntry(F, E), DataEntry(B, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, E, 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)]))
209243 else throw(("You have to deposit 100 GovernToken to claim Reward
210- Your Balance is: " + toString(C)))
244+ Your Balance is: " + toString(K)))
211245 }
212246
213247
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 = assetBalance(this, d)
68- let r = extract(a.payment)
69- if (if (isDefined(r.assetId))
70- then (extract(r.assetId) == d)
67+ if (if ((r > 0))
68+ then (q == toBase58String(d))
7169 else false)
7270 then {
73- let s = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
74- let t = {
75- let j = getInteger(this, s)
71+ let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
72+ let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
73+ let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
74+ let s = {
75+ let j = getInteger(this, p)
7676 if ($isInstanceOf(j, "Int"))
7777 then {
7878 let k = j
7979 k
8080 }
8181 else 0
8282 }
83- let u = (t + r.amount)
84- ScriptResult(WriteSet([DataEntry(s, u)]), TransferSet([ScriptTransfer(this, 1, d)]))
83+ let t = (s + 1)
84+ let u = {
85+ let j = getInteger(this, f)
86+ if ($isInstanceOf(j, "Int"))
87+ then {
88+ let k = j
89+ k
90+ }
91+ else 0
92+ }
93+ let v = (u + r)
94+ let w = {
95+ let j = getInteger(this, f)
96+ if ($isInstanceOf(j, "Int"))
97+ then {
98+ let k = j
99+ k
100+ }
101+ else 0
102+ }
103+ let x = (w + 10)
104+ let y = assetBalance(this, e)
105+ let z = assetBalance(this, d)
106+ if ((1 > y))
107+ then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
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))
111+ then {
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)]))
114+ }
115+ else {
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)]))
118+ }
85119 }
86120 else throw("Can deposit only StakeToken")
87121 }
88122
89123
90124
91125 @Callable(a)
92126 func DepositGovernToken () = {
93127 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
94- let v = toBase58String(e)
95- let r = extract(a.payment)
96- if (if (isDefined(r.assetId))
97- then (extract(r.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)
98132 else false)
99133 then {
100- let s = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
101- let t = {
102- let j = getInteger(this, s)
134+ let D = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
135+ let E = {
136+ let j = getInteger(this, D)
103137 if ($isInstanceOf(j, "Int"))
104138 then {
105139 let k = j
106140 k
107141 }
108142 else 0
109143 }
110- let w = (t + r.amount)
144+ let F = (E + C.amount)
111145 let b = "GovernTokenMaxDeposit"
112146 let c = "MaxGovernTokenDepositerKey"
113147 let i = {
114148 let j = getInteger(this, b)
115149 if ($isInstanceOf(j, "Int"))
116150 then {
117151 let k = j
118152 k
119153 }
120154 else 0
121155 }
122- if ((w > i))
123- then WriteSet([DataEntry(s, w), DataEntry(b, w), DataEntry(c, s)])
124- else WriteSet([DataEntry(s, w)])
156+ if ((F > i))
157+ then WriteSet([DataEntry(D, F), DataEntry(b, F), DataEntry(c, D)])
158+ else WriteSet([DataEntry(D, F)])
125159 }
126160 else throw("Can deposit only Govern Token")
127161 }
128162
129163
130164
131165 @Callable(a)
132-func WithdrawStakedFunds (x) = {
166+func WithdrawStakedFunds (r) = {
133167 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
134168 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
135169 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
136170 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
137- let s = toBase58String(a.caller.bytes)
138- let t = {
171+ let D = toBase58String(a.caller.bytes)
172+ let E = {
139173 let j = getInteger(this, f)
140174 if ($isInstanceOf(j, "Int"))
141175 then {
142176 let k = j
143177 k
144178 }
145179 else 0
146180 }
147- let y = (t - x)
148- if ((0 > x))
181+ let G = (E - r)
182+ if ((0 > r))
149183 then throw("Can't withdraw negative amount")
150- else if ((0 > y))
151- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(t)))
184+ else if ((0 > G))
185+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(E)))
152186 else {
153- let z = assetBalance(this, e)
154- if ((1 > z))
187+ let H = assetBalance(this, e)
188+ if ((1 > H))
155189 then throw("No enough GovernToken In Contract")
156- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, y)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, d)]))
190+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, G)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, r, d)]))
157191 }
158192 }
159193
160194
161195
162196 @Callable(a)
163197 func ClaimPrize () = {
164198 let d = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
165199 let e = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
166- let A = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
200+ let I = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
167201 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
168202 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
169- let B = ((toBase58String(A) + "_") + toBase58String(d))
170- let C = {
203+ let J = ((toBase58String(I) + "_") + toBase58String(d))
204+ let K = {
171205 let j = getInteger(this, g)
172206 if ($isInstanceOf(j, "Int"))
173207 then {
174208 let k = j
175209 k
176210 }
177211 else 0
178212 }
179- let D = {
213+ let L = {
180214 let j = getInteger(this, f)
181215 if ($isInstanceOf(j, "Int"))
182216 then {
183217 let k = j
184218 k
185219 }
186220 else 0
187221 }
188- let E = {
189- let j = getInteger(this, B)
222+ let M = {
223+ let j = getInteger(this, J)
190224 if ($isInstanceOf(j, "Int"))
191225 then {
192226 let k = j
193227 k
194228 }
195229 else 0
196230 }
197231 let b = "GovernTokenMaxDeposit"
198232 let c = "MaxGovernTokenDepositerKey"
199- let F = getStringValue(this, c)
200- if ((E == 0))
233+ let N = getStringValue(this, c)
234+ if ((M == 0))
201235 then throw("No prize to Claim")
202- else if ((g != F))
236+ else if ((g != N))
203237 then throw("You are not the winner hence cannot claim the reward ")
204- else if ((1 > D))
238+ else if ((1 > L))
205239 then throw(("You have to Stake StakedToken to claim reward
206- Your Balance of Staked Tokens is: " + toString(D)))
207- else if ((C > 100))
208- then ScriptResult(WriteSet([DataEntry(F, E), DataEntry(B, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, E, 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)]))
209243 else throw(("You have to deposit 100 GovernToken to claim Reward
210- Your Balance is: " + toString(C)))
244+ Your Balance is: " + toString(K)))
211245 }
212246
213247

github/deemru/w8io/169f3d6 
59.85 ms