tx · 5fx3c4pKJkXs5zbQExac4GrUcPh5T6UxghgvxFF4uKjX

3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ:  -0.01660000 Waves

2020.10.20 20:43 [1229199] smart account 3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ > SELF 0.00000000 Waves

{ "type": 13, "id": "5fx3c4pKJkXs5zbQExac4GrUcPh5T6UxghgvxFF4uKjX", "fee": 1660000, "feeAssetId": null, "timestamp": 1603215795936, "version": 2, "chainId": 84, "sender": "3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ", "senderPublicKey": "EPmZCX2H4AC1hUmAFRUfWrhzXrNjf3wPaybY6jHZQphj", "proofs": [ "3nrqjq9MbtbGrrtbZiD4KhhHYqhRwDPY53kjczGpDJ5n9HUQNXesQibLw7wZYhHmjy26aMv6rtCzbMLxraFWw9Ci" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZj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dG8gY2xhaW0gcmV3YXJkIAogWW91ciBCYWxhbmNlIG9mIFN0YWtlZCBUb2tlbnMgaXM6IAkAAaQAAAABBQAAABVVc2VyU3Rha2VkVG9rZW5BbW91bnQDCQAAZgAAAAIFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAAAAAZAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAC1ByaXplV2lubmVyBQAAAAtQcml6ZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASRnVuZEJveFN0YWtlZFRva2VuAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAABIlwlQ==", "height": 1229199, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2oXKYcoAL8gLMpPuKSsNEtFiV9umRV9vAb1raJYmy7d2 Next: AKpyCeyCWTAvuWWiZauka7BvdUPrkqs2e9VK1kngA8NW Diff:
OldNewDifferences
3232 else 0
3333 }
3434 let n = getStringValue(this, f)
35+ let o = {
36+ let j = getInteger(this, n)
37+ if ($isInstanceOf(j, "Int"))
38+ then {
39+ let k = j
40+ k
41+ }
42+ else 0
43+ }
3544 throw(((((("Winner is.....: " + h) + "
3645 Total GovernToken: ") + toString(i)) + "
3746 Your Balance of GovernToken is: ") + toString(i)))
4251 @Callable(a)
4352 func payYield () = {
4453 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
45- let o = toBase58String(a.caller.bytes)
46- let p = {
47- let j = getInteger(this, o)
54+ let p = toBase58String(a.caller.bytes)
55+ let q = {
56+ let j = getInteger(this, p)
4857 if ($isInstanceOf(j, "Int"))
4958 then {
5059 let k = j
5261 }
5362 else 0
5463 }
55- if ((p > 0))
64+ if ((q > 0))
5665 then {
57- let q = assetBalance(this, e)
58- if ((1 > q))
66+ let r = assetBalance(this, e)
67+ if ((1 > r))
5968 then throw("No enough GovernToken In Contract")
60- else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
69+ else ScriptResult(WriteSet([DataEntry(p, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
6170 }
6271 else throw("You need to deposit Collateral Token to receive Govern Token")
6372 }
6877 func Stake () = {
6978 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
7079 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
71- let r = extract(a.payment)
72- if (if (isDefined(r.assetId))
73- then (extract(r.assetId) == d)
80+ let s = extract(a.payment)
81+ if (if (isDefined(s.assetId))
82+ then (extract(s.assetId) == d)
7483 else false)
7584 then {
7685 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7786 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
78- let p = {
87+ let q = {
7988 let j = getInteger(this, f)
8089 if ($isInstanceOf(j, "Int"))
8190 then {
8493 }
8594 else 0
8695 }
87- let s = (p + r.amount)
88- let t = assetBalance(this, e)
89- if ((1 > t))
96+ let t = (q + s.amount)
97+ let u = assetBalance(this, e)
98+ if ((1 > u))
9099 then throw("No enough GovernToken In Contract")
91- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
100+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
92101 }
93102 else throw("Can deposit only StakeToken")
94103 }
98107 @Callable(a)
99108 func DepositGovernToken () = {
100109 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
101- let u = toBase58String(e)
102- let r = extract(a.payment)
103- if (if (isDefined(r.assetId))
104- then (extract(r.assetId) == e)
110+ let v = toBase58String(e)
111+ let s = extract(a.payment)
112+ if (if (isDefined(s.assetId))
113+ then (extract(s.assetId) == e)
105114 else false)
106115 then {
107- let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
108- let p = {
109- let j = getInteger(this, o)
116+ let p = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
117+ let q = {
118+ let j = getInteger(this, p)
110119 if ($isInstanceOf(j, "Int"))
111120 then {
112121 let k = j
114123 }
115124 else 0
116125 }
117- let v = (p + r.amount)
126+ let w = (q + s.amount)
118127 let b = "GovernTokenMaxDeposit"
119128 let c = "MaxGovernTokenDepositerKey"
120129 let i = {
126135 }
127136 else 0
128137 }
129- if (if ((v > i))
138+ if (if ((w > i))
130139 then true
131140 else (i == 0))
132- then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
133- else WriteSet([DataEntry(o, v)])
141+ then WriteSet([DataEntry(p, w), DataEntry(b, w), DataEntry(c, p)])
142+ else WriteSet([DataEntry(p, w)])
134143 }
135144 else throw("Can deposit only Govern Token")
136145 }
138147
139148
140149 @Callable(a)
141-func WithdrawStakedFunds (w) = {
142- let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
150+func WithdrawStakedFunds (x) = {
151+ let y = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
143152 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
144- let o = toBase58String(a.caller.bytes)
145- let p = {
146- let j = getInteger(this, o)
153+ let p = toBase58String(a.caller.bytes)
154+ let q = {
155+ let j = getInteger(this, p)
147156 if ($isInstanceOf(j, "Int"))
148157 then {
149158 let k = j
151160 }
152161 else 0
153162 }
154- let s = (p - w)
155- if ((0 > w))
163+ let t = (q - x)
164+ if ((0 > x))
156165 then throw("Can't withdraw negative amount")
157- else if ((0 > s))
166+ else if ((0 > t))
158167 then throw("User cannot withdraw more than deposited funds")
159168 else {
160- let q = assetBalance(this, e)
161- if ((1 > q))
169+ let r = assetBalance(this, e)
170+ if ((1 > r))
162171 then throw("No enough GovernToken In Contract")
163- else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
172+ else ScriptResult(WriteSet([DataEntry(p, 1), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, y)]))
164173 }
165174 }
166175
170179 func ClaimPrize () = {
171180 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
172181 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
173- let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
182+ let z = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
174183 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
175184 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
176- let z = ((toBase58String(y) + "_") + toBase58String(d))
177- let A = {
185+ let A = ((toBase58String(z) + "_") + toBase58String(d))
186+ let B = {
178187 let j = getInteger(this, g)
179188 if ($isInstanceOf(j, "Int"))
180189 then {
183192 }
184193 else 0
185194 }
186- let B = {
195+ let C = {
187196 let j = getInteger(this, f)
188197 if ($isInstanceOf(j, "Int"))
189198 then {
192201 }
193202 else 0
194203 }
195- let C = {
196- let j = getInteger(this, z)
204+ let D = {
205+ let j = getInteger(this, A)
197206 if ($isInstanceOf(j, "Int"))
198207 then {
199208 let k = j
202211 else 0
203212 }
204213 let c = "MaxGovernTokenDepositerKey"
205- let D = getStringValue(this, c)
206- if ((C == 0))
214+ let E = getStringValue(this, c)
215+ if ((D == 0))
207216 then throw("No prize to Claim")
208- else if ((g != D))
217+ else if ((g != E))
209218 then throw("You are not the winner hence cannot claim the reward ")
210- else if ((1 > B))
219+ else if ((1 > C))
211220 then throw(("You have to Stake StakedToken to claim reward
212- Your Balance of Staked Tokens is: " + toString(B)))
213- else if ((A > 100))
214- then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
221+ Your Balance of Staked Tokens is: " + toString(C)))
222+ else if ((B > 100))
223+ then ScriptResult(WriteSet([DataEntry(E, D), DataEntry(A, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, D, d), ScriptTransfer(a.caller, 100, e)]))
215224 else throw(("You have to deposit 100 GovernToken to claim Reward
216- Your Balance is: " + toString(A)))
225+ Your Balance is: " + toString(B)))
217226 }
218227
219228
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 = {
2626 let j = getInteger(this, l)
2727 if ($isInstanceOf(j, "Int"))
2828 then {
2929 let k = j
3030 k
3131 }
3232 else 0
3333 }
3434 let n = getStringValue(this, f)
35+ let o = {
36+ let j = getInteger(this, n)
37+ if ($isInstanceOf(j, "Int"))
38+ then {
39+ let k = j
40+ k
41+ }
42+ else 0
43+ }
3544 throw(((((("Winner is.....: " + h) + "
3645 Total GovernToken: ") + toString(i)) + "
3746 Your Balance of GovernToken is: ") + toString(i)))
3847 }
3948
4049
4150
4251 @Callable(a)
4352 func payYield () = {
4453 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
45- let o = toBase58String(a.caller.bytes)
46- let p = {
47- let j = getInteger(this, o)
54+ let p = toBase58String(a.caller.bytes)
55+ let q = {
56+ let j = getInteger(this, p)
4857 if ($isInstanceOf(j, "Int"))
4958 then {
5059 let k = j
5160 k
5261 }
5362 else 0
5463 }
55- if ((p > 0))
64+ if ((q > 0))
5665 then {
57- let q = assetBalance(this, e)
58- if ((1 > q))
66+ let r = assetBalance(this, e)
67+ if ((1 > r))
5968 then throw("No enough GovernToken In Contract")
60- else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
69+ else ScriptResult(WriteSet([DataEntry(p, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
6170 }
6271 else throw("You need to deposit Collateral Token to receive Govern Token")
6372 }
6473
6574
6675
6776 @Callable(a)
6877 func Stake () = {
6978 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
7079 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
71- let r = extract(a.payment)
72- if (if (isDefined(r.assetId))
73- then (extract(r.assetId) == d)
80+ let s = extract(a.payment)
81+ if (if (isDefined(s.assetId))
82+ then (extract(s.assetId) == d)
7483 else false)
7584 then {
7685 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7786 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
78- let p = {
87+ let q = {
7988 let j = getInteger(this, f)
8089 if ($isInstanceOf(j, "Int"))
8190 then {
8291 let k = j
8392 k
8493 }
8594 else 0
8695 }
87- let s = (p + r.amount)
88- let t = assetBalance(this, e)
89- if ((1 > t))
96+ let t = (q + s.amount)
97+ let u = assetBalance(this, e)
98+ if ((1 > u))
9099 then throw("No enough GovernToken In Contract")
91- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
100+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
92101 }
93102 else throw("Can deposit only StakeToken")
94103 }
95104
96105
97106
98107 @Callable(a)
99108 func DepositGovernToken () = {
100109 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
101- let u = toBase58String(e)
102- let r = extract(a.payment)
103- if (if (isDefined(r.assetId))
104- then (extract(r.assetId) == e)
110+ let v = toBase58String(e)
111+ let s = extract(a.payment)
112+ if (if (isDefined(s.assetId))
113+ then (extract(s.assetId) == e)
105114 else false)
106115 then {
107- let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
108- let p = {
109- let j = getInteger(this, o)
116+ let p = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
117+ let q = {
118+ let j = getInteger(this, p)
110119 if ($isInstanceOf(j, "Int"))
111120 then {
112121 let k = j
113122 k
114123 }
115124 else 0
116125 }
117- let v = (p + r.amount)
126+ let w = (q + s.amount)
118127 let b = "GovernTokenMaxDeposit"
119128 let c = "MaxGovernTokenDepositerKey"
120129 let i = {
121130 let j = getInteger(this, b)
122131 if ($isInstanceOf(j, "Int"))
123132 then {
124133 let k = j
125134 k
126135 }
127136 else 0
128137 }
129- if (if ((v > i))
138+ if (if ((w > i))
130139 then true
131140 else (i == 0))
132- then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
133- else WriteSet([DataEntry(o, v)])
141+ then WriteSet([DataEntry(p, w), DataEntry(b, w), DataEntry(c, p)])
142+ else WriteSet([DataEntry(p, w)])
134143 }
135144 else throw("Can deposit only Govern Token")
136145 }
137146
138147
139148
140149 @Callable(a)
141-func WithdrawStakedFunds (w) = {
142- let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
150+func WithdrawStakedFunds (x) = {
151+ let y = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
143152 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
144- let o = toBase58String(a.caller.bytes)
145- let p = {
146- let j = getInteger(this, o)
153+ let p = toBase58String(a.caller.bytes)
154+ let q = {
155+ let j = getInteger(this, p)
147156 if ($isInstanceOf(j, "Int"))
148157 then {
149158 let k = j
150159 k
151160 }
152161 else 0
153162 }
154- let s = (p - w)
155- if ((0 > w))
163+ let t = (q - x)
164+ if ((0 > x))
156165 then throw("Can't withdraw negative amount")
157- else if ((0 > s))
166+ else if ((0 > t))
158167 then throw("User cannot withdraw more than deposited funds")
159168 else {
160- let q = assetBalance(this, e)
161- if ((1 > q))
169+ let r = assetBalance(this, e)
170+ if ((1 > r))
162171 then throw("No enough GovernToken In Contract")
163- else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
172+ else ScriptResult(WriteSet([DataEntry(p, 1), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, y)]))
164173 }
165174 }
166175
167176
168177
169178 @Callable(a)
170179 func ClaimPrize () = {
171180 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
172181 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
173- let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
182+ let z = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
174183 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
175184 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
176- let z = ((toBase58String(y) + "_") + toBase58String(d))
177- let A = {
185+ let A = ((toBase58String(z) + "_") + toBase58String(d))
186+ let B = {
178187 let j = getInteger(this, g)
179188 if ($isInstanceOf(j, "Int"))
180189 then {
181190 let k = j
182191 k
183192 }
184193 else 0
185194 }
186- let B = {
195+ let C = {
187196 let j = getInteger(this, f)
188197 if ($isInstanceOf(j, "Int"))
189198 then {
190199 let k = j
191200 k
192201 }
193202 else 0
194203 }
195- let C = {
196- let j = getInteger(this, z)
204+ let D = {
205+ let j = getInteger(this, A)
197206 if ($isInstanceOf(j, "Int"))
198207 then {
199208 let k = j
200209 k
201210 }
202211 else 0
203212 }
204213 let c = "MaxGovernTokenDepositerKey"
205- let D = getStringValue(this, c)
206- if ((C == 0))
214+ let E = getStringValue(this, c)
215+ if ((D == 0))
207216 then throw("No prize to Claim")
208- else if ((g != D))
217+ else if ((g != E))
209218 then throw("You are not the winner hence cannot claim the reward ")
210- else if ((1 > B))
219+ else if ((1 > C))
211220 then throw(("You have to Stake StakedToken to claim reward
212- Your Balance of Staked Tokens is: " + toString(B)))
213- else if ((A > 100))
214- then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
221+ Your Balance of Staked Tokens is: " + toString(C)))
222+ else if ((B > 100))
223+ then ScriptResult(WriteSet([DataEntry(E, D), DataEntry(A, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, D, d), ScriptTransfer(a.caller, 100, e)]))
215224 else throw(("You have to deposit 100 GovernToken to claim Reward
216- Your Balance is: " + toString(A)))
225+ Your Balance is: " + toString(B)))
217226 }
218227
219228

github/deemru/w8io/169f3d6 
53.68 ms