tx · 5PqBXQbRAxzwHp8t25Zswpos9NaEKr8SAzYxnrUJ9pFq

3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u:  -0.01440000 Waves

2020.12.28 14:28 [1328488] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves

{ "type": 13, "id": "5PqBXQbRAxzwHp8t25Zswpos9NaEKr8SAzYxnrUJ9pFq", "fee": 1440000, "feeAssetId": null, "timestamp": 1609154922535, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "5CLUKyvh7UYxJqa35yJ3oBDw6opSjKe73VkYe2TWxL99d3XzxpqkpbkcBWuiMvNRQvFNJpKEdwtEYN3tDJQwxgzE" ], "script": "base64:AAIDAAAAAAAAABYIARIAEgASABIAEgMKAQESAwoBARIAAAAAAAAAAAcAAAABaQEAAAAMUmVhZFBvb2xEYXRhAAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAg4kCrtAPNiHBMRPYvMCXeThBq6KlRf6cxe4yUvVS2aoUEAAAAC0dvdmVyblRva2VuAQAAACASiWf4V0Rs4Spwpaqhn2bfVjnt1mPO6pt7R8ZSZ6gxXgQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAA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AAEsAAAAAgkAASwAAAACAgAAABxZb3Ugc2hvdWxkIGRlcG9zaXQgYXQgbGVhc3QgCQABpAAAAAEFAAAAFU1heEdvdmVyblRva2VuRGVwb3NpdAIAAAAbIHRvIGJlIGFibGUgdG8gY2xhaW0gcmV3YXJkCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAABHWW91IGhhdmUgdG8gZGVwb3NpdCAxMDAgR292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIAogWW91ciBCYWxhbmNlIGlzOiAJAAGkAAAAAQUAAAAVVXNlckdvdmVyblRva2VuQW1vdW50AgAAABMKIERlcG9zaXQgZG9uZSBhdDogCQABpAAAAAEFAAAAC1ByaXplSGVpZ2h0AgAAAAsgIEFuZCB3YWl0OgkAAaQAAAABCQAAZAAAAAIFAAAAC1ByaXplSGVpZ2h0AAAAAAAAAAAKAgAAAA5BbmQgSGVpZ2h0IGlzOgkAAaQAAAABBQAAAAZoZWlnaHQAAAAA/EJLQg==", "height": 1328488, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8cKLdY81rfK2cHUc5oQ9PrB16VwG8adnq3pZkNpEjuYF Next: H4sg4Ff3VrKEiSoDRwK8mkMgNPPZHF3ubEM1MRMUfD68 Diff:
OldNewDifferences
6262
6363 @Callable(a)
6464 func Stake () = {
65- let q = "3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n"
65+ let q = "FundBox"
6666 let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
6767 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
6868 let r = assetBalance(this, e)
9696 else 0
9797 }
9898 let y = (x + t.amount)
99- let z = {
99+ let z = assetBalance(this, d)
100+ let A = {
100101 let j = getInteger(this, "StakeBalance")
101102 if ($isInstanceOf(j, "Int"))
102103 then {
105106 }
106107 else 0
107108 }
108- let A = (z + t.amount)
109- let B = {
109+ let B = (A + t.amount)
110+ let C = (z - A)
111+ let D = {
110112 let j = getInteger(this, g)
111113 if ($isInstanceOf(j, "Int"))
112114 then {
119121 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
120122 else if ((s == 0))
121123 then {
122- let C = (B + 10)
123- ScriptResult(WriteSet([DataEntry(g, C), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
124+ let E = (D + 10)
125+ ScriptResult(WriteSet([DataEntry(g, E), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
124126 }
125127 else if ((w > 50))
126128 then {
127- let D = ((10 * w) * (y / s))
128- let C = (B + D)
129- ScriptResult(WriteSet([DataEntry(g, D), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, D, e)]))
129+ let F = ((10 * w) * (y / s))
130+ let E = (D + F)
131+ ScriptResult(WriteSet([DataEntry(g, F), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, F, e)]))
130132 }
131133 else {
132- let D = (10 * (y / s))
133- let C = (B + D)
134- ScriptResult(WriteSet([DataEntry(g, D), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, D, e)]))
134+ let F = (10 * (y / s))
135+ let E = (D + F)
136+ ScriptResult(WriteSet([DataEntry(g, F), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, F, e)]))
135137 }
136138 }
137139 else throw("Can deposit only StakeToken")
142144 @Callable(a)
143145 func DepositGovernToken () = {
144146 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
145- let E = toBase58String(e)
147+ let G = toBase58String(e)
146148 let t = extract(a.payment)
147149 if (if (isDefined(t.assetId))
148150 then (extract(t.assetId) == e)
149151 else false)
150152 then {
151- let F = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
152- let G = {
153- let j = getInteger(this, F)
153+ let H = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
154+ let I = {
155+ let j = getInteger(this, H)
154156 if ($isInstanceOf(j, "Int"))
155157 then {
156158 let k = j
158160 }
159161 else 0
160162 }
161- let H = (G + t.amount)
163+ let J = (I + t.amount)
162164 let b = "GovernTokenMaxDeposit"
163165 let c = "MaxGovernTokenDepositerKey"
164166 let i = {
170172 }
171173 else 0
172174 }
173- if ((H > i))
174- then WriteSet([DataEntry(F, H), DataEntry(b, H), DataEntry(c, F)])
175- else WriteSet([DataEntry(F, H)])
175+ if ((J > i))
176+ then WriteSet([DataEntry(H, J), DataEntry(b, J), DataEntry(c, H)])
177+ else WriteSet([DataEntry(H, J)])
176178 }
177179 else throw("Can deposit only Govern Token")
178180 }
180182
181183
182184 @Callable(a)
183-func WithdrawStakedFunds (I) = {
185+func WithdrawStakedFunds (K) = {
184186 let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
185187 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
186188 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
187189 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
188- let F = toBase58String(a.caller.bytes)
189- let G = {
190+ let H = toBase58String(a.caller.bytes)
191+ let I = {
190192 let j = getInteger(this, f)
191193 if ($isInstanceOf(j, "Int"))
192194 then {
195197 }
196198 else 0
197199 }
198- let J = (G - I)
199- if ((0 > I))
200+ let L = (I - K)
201+ let A = {
202+ let j = getInteger(this, "StakeBalance")
203+ if ($isInstanceOf(j, "Int"))
204+ then {
205+ let k = j
206+ k
207+ }
208+ else 0
209+ }
210+ let B = (A - K)
211+ if ((0 > K))
200212 then throw("Can't withdraw negative amount")
201- else if ((0 > J))
202- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(G)))
213+ else if ((0 > L))
214+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I)))
203215 else {
204- let K = assetBalance(this, e)
205- if ((1 > K))
216+ let M = assetBalance(this, e)
217+ if ((1 > M))
206218 then throw("No enough GovernToken In Contract")
207- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, J)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, I, d)]))
219+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, L), DataEntry("StakeBalance", B)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, K, d)]))
208220 }
209221 }
210222
211223
212224
213225 @Callable(a)
214-func HarvestGovernToiken (I) = {
226+func HarvestGovernToiken (K) = {
215227 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
216228 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
217- let F = toBase58String(a.caller.bytes)
218- let G = {
229+ let H = toBase58String(a.caller.bytes)
230+ let I = {
219231 let j = getInteger(this, g)
220232 if ($isInstanceOf(j, "Int"))
221233 then {
224236 }
225237 else 0
226238 }
227- let J = (G - I)
228- if ((0 > I))
239+ let L = (I - K)
240+ if ((0 > K))
229241 then throw("Can't withdraw negative amount")
230- else if ((0 > J))
231- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(G)))
242+ else if ((0 > L))
243+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I)))
232244 else {
233- let K = assetBalance(this, e)
234- ScriptResult(WriteSet([DataEntry(g, J)]), TransferSet([ScriptTransfer(a.caller, I, e)]))
245+ let M = assetBalance(this, e)
246+ ScriptResult(WriteSet([DataEntry(g, L)]), TransferSet([ScriptTransfer(a.caller, K, e)]))
235247 }
236248 }
237249
244256 let q = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
245257 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
246258 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
247- let L = ((toBase58String(q) + "_") + toBase58String(d))
248- let K = assetBalance(this, e)
249- let M = (toBase58String(q) + "_PrizeHeight")
250- let N = {
259+ let N = ((toBase58String(q) + "_") + toBase58String(d))
260+ let M = assetBalance(this, e)
261+ let O = (toBase58String(q) + "_PrizeHeight")
262+ let z = assetBalance(this, d)
263+ let A = {
264+ let j = getInteger(this, "StakeBalance")
265+ if ($isInstanceOf(j, "Int"))
266+ then {
267+ let k = j
268+ k
269+ }
270+ else 0
271+ }
272+ let C = (z - A)
273+ let P = {
251274 let j = getInteger(this, g)
252275 if ($isInstanceOf(j, "Int"))
253276 then {
256279 }
257280 else 0
258281 }
259- let O = {
282+ let Q = {
260283 let j = getInteger(this, f)
261- if ($isInstanceOf(j, "Int"))
262- then {
263- let k = j
264- k
265- }
266- else 0
267- }
268- let P = {
269- let j = getInteger(this, L)
270284 if ($isInstanceOf(j, "Int"))
271285 then {
272286 let k = j
276290 }
277291 let b = "GovernTokenMaxDeposit"
278292 let c = "MaxGovernTokenDepositerKey"
279- let Q = getStringValue(this, c)
280- let R = {
281- let j = getInteger(this, M)
293+ let R = getStringValue(this, c)
294+ let S = {
295+ let j = getInteger(this, O)
282296 if ($isInstanceOf(j, "Int"))
283297 then {
284298 let k = j
295309 }
296310 else 0
297311 }
298- if (if ((P == 0))
312+ if (if ((C == 0))
299313 then true
300- else (100 > K))
314+ else (100 > M))
301315 then throw("No prize to Claim or No enough Govern Token en Contract")
302- else if ((g != Q))
316+ else if ((g != R))
303317 then throw("You are not the winner hence cannot claim the reward ")
304- else if ((1 > O))
318+ else if ((1 > Q))
305319 then throw(("You have to Stake StakedToken to claim reward
306- Your Balance of Staked Tokens is: " + toString(O)))
307- else if (if (if ((N >= 100))
308- then (height >= (R + 10))
320+ Your Balance of Staked Tokens is: " + toString(Q)))
321+ else if (if (if ((P >= 100))
322+ then (height >= (S + 10))
309323 else false)
310324 then (height > 0)
311325 else false)
312- then if ((N >= i))
313- then ScriptResult(WriteSet([DataEntry(Q, P), DataEntry(L, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, P, d), ScriptTransfer(a.caller, 100, e)]))
326+ then if ((P >= i))
327+ then ScriptResult(WriteSet([DataEntry(R, C), DataEntry(N, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
314328 else throw((("You should deposit at least " + toString(i)) + " to be able to claim reward"))
315329 else throw(((((((("You have to deposit 100 GovernToken to claim Reward
316- Your Balance is: " + toString(N)) + "
317- Deposit done at: ") + toString(R)) + " And wait:") + toString((R + 10))) + "And Height is:") + toString(height)))
330+ Your Balance is: " + toString(P)) + "
331+ Deposit done at: ") + toString(S)) + " And wait:") + toString((S + 10))) + "And Height is:") + toString(height)))
318332 }
319333
320334
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'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
1111 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
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'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
5454 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
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)
6464 func Stake () = {
65- let q = "3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n"
65+ let q = "FundBox"
6666 let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
6767 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
6868 let r = assetBalance(this, e)
6969 let s = assetBalance(this, d)
7070 let t = extract(a.payment)
7171 if (if ((t.amount > 0))
7272 then (t.assetId == d)
7373 else false)
7474 then {
7575 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7676 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
7777 let p = (toBase58String(a.caller.bytes) + "_StakedTransactions")
7878 let u = (toBase58String(a.caller.bytes) + "_PrizeHeight")
7979 let v = {
8080 let j = getInteger(this, p)
8181 if ($isInstanceOf(j, "Int"))
8282 then {
8383 let k = j
8484 k
8585 }
8686 else 0
8787 }
8888 let w = (v + 1)
8989 let x = {
9090 let j = getInteger(this, f)
9191 if ($isInstanceOf(j, "Int"))
9292 then {
9393 let k = j
9494 k
9595 }
9696 else 0
9797 }
9898 let y = (x + t.amount)
99- let z = {
99+ let z = assetBalance(this, d)
100+ let A = {
100101 let j = getInteger(this, "StakeBalance")
101102 if ($isInstanceOf(j, "Int"))
102103 then {
103104 let k = j
104105 k
105106 }
106107 else 0
107108 }
108- let A = (z + t.amount)
109- let B = {
109+ let B = (A + t.amount)
110+ let C = (z - A)
111+ let D = {
110112 let j = getInteger(this, g)
111113 if ($isInstanceOf(j, "Int"))
112114 then {
113115 let k = j
114116 k
115117 }
116118 else 0
117119 }
118120 if ((1 > r))
119121 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
120122 else if ((s == 0))
121123 then {
122- let C = (B + 10)
123- ScriptResult(WriteSet([DataEntry(g, C), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
124+ let E = (D + 10)
125+ ScriptResult(WriteSet([DataEntry(g, E), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
124126 }
125127 else if ((w > 50))
126128 then {
127- let D = ((10 * w) * (y / s))
128- let C = (B + D)
129- ScriptResult(WriteSet([DataEntry(g, D), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, D, e)]))
129+ let F = ((10 * w) * (y / s))
130+ let E = (D + F)
131+ ScriptResult(WriteSet([DataEntry(g, F), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, F, e)]))
130132 }
131133 else {
132- let D = (10 * (y / s))
133- let C = (B + D)
134- ScriptResult(WriteSet([DataEntry(g, D), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", A), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, D, e)]))
134+ let F = (10 * (y / s))
135+ let E = (D + F)
136+ ScriptResult(WriteSet([DataEntry(g, F), DataEntry(f, y), DataEntry(p, w), DataEntry("StakeBalance", B), DataEntry(u, height)]), TransferSet([ScriptTransfer(a.caller, F, e)]))
135137 }
136138 }
137139 else throw("Can deposit only StakeToken")
138140 }
139141
140142
141143
142144 @Callable(a)
143145 func DepositGovernToken () = {
144146 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
145- let E = toBase58String(e)
147+ let G = toBase58String(e)
146148 let t = extract(a.payment)
147149 if (if (isDefined(t.assetId))
148150 then (extract(t.assetId) == e)
149151 else false)
150152 then {
151- let F = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
152- let G = {
153- let j = getInteger(this, F)
153+ let H = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
154+ let I = {
155+ let j = getInteger(this, H)
154156 if ($isInstanceOf(j, "Int"))
155157 then {
156158 let k = j
157159 k
158160 }
159161 else 0
160162 }
161- let H = (G + t.amount)
163+ let J = (I + t.amount)
162164 let b = "GovernTokenMaxDeposit"
163165 let c = "MaxGovernTokenDepositerKey"
164166 let i = {
165167 let j = getInteger(this, b)
166168 if ($isInstanceOf(j, "Int"))
167169 then {
168170 let k = j
169171 k
170172 }
171173 else 0
172174 }
173- if ((H > i))
174- then WriteSet([DataEntry(F, H), DataEntry(b, H), DataEntry(c, F)])
175- else WriteSet([DataEntry(F, H)])
175+ if ((J > i))
176+ then WriteSet([DataEntry(H, J), DataEntry(b, J), DataEntry(c, H)])
177+ else WriteSet([DataEntry(H, J)])
176178 }
177179 else throw("Can deposit only Govern Token")
178180 }
179181
180182
181183
182184 @Callable(a)
183-func WithdrawStakedFunds (I) = {
185+func WithdrawStakedFunds (K) = {
184186 let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
185187 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
186188 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
187189 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
188- let F = toBase58String(a.caller.bytes)
189- let G = {
190+ let H = toBase58String(a.caller.bytes)
191+ let I = {
190192 let j = getInteger(this, f)
191193 if ($isInstanceOf(j, "Int"))
192194 then {
193195 let k = j
194196 k
195197 }
196198 else 0
197199 }
198- let J = (G - I)
199- if ((0 > I))
200+ let L = (I - K)
201+ let A = {
202+ let j = getInteger(this, "StakeBalance")
203+ if ($isInstanceOf(j, "Int"))
204+ then {
205+ let k = j
206+ k
207+ }
208+ else 0
209+ }
210+ let B = (A - K)
211+ if ((0 > K))
200212 then throw("Can't withdraw negative amount")
201- else if ((0 > J))
202- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(G)))
213+ else if ((0 > L))
214+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I)))
203215 else {
204- let K = assetBalance(this, e)
205- if ((1 > K))
216+ let M = assetBalance(this, e)
217+ if ((1 > M))
206218 then throw("No enough GovernToken In Contract")
207- else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, J)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, I, d)]))
219+ else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, L), DataEntry("StakeBalance", B)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, K, d)]))
208220 }
209221 }
210222
211223
212224
213225 @Callable(a)
214-func HarvestGovernToiken (I) = {
226+func HarvestGovernToiken (K) = {
215227 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
216228 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
217- let F = toBase58String(a.caller.bytes)
218- let G = {
229+ let H = toBase58String(a.caller.bytes)
230+ let I = {
219231 let j = getInteger(this, g)
220232 if ($isInstanceOf(j, "Int"))
221233 then {
222234 let k = j
223235 k
224236 }
225237 else 0
226238 }
227- let J = (G - I)
228- if ((0 > I))
239+ let L = (I - K)
240+ if ((0 > K))
229241 then throw("Can't withdraw negative amount")
230- else if ((0 > J))
231- then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(G)))
242+ else if ((0 > L))
243+ then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I)))
232244 else {
233- let K = assetBalance(this, e)
234- ScriptResult(WriteSet([DataEntry(g, J)]), TransferSet([ScriptTransfer(a.caller, I, e)]))
245+ let M = assetBalance(this, e)
246+ ScriptResult(WriteSet([DataEntry(g, L)]), TransferSet([ScriptTransfer(a.caller, K, e)]))
235247 }
236248 }
237249
238250
239251
240252 @Callable(a)
241253 func ClaimPrize () = {
242254 let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr'
243255 let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P'
244256 let q = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
245257 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
246258 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
247- let L = ((toBase58String(q) + "_") + toBase58String(d))
248- let K = assetBalance(this, e)
249- let M = (toBase58String(q) + "_PrizeHeight")
250- let N = {
259+ let N = ((toBase58String(q) + "_") + toBase58String(d))
260+ let M = assetBalance(this, e)
261+ let O = (toBase58String(q) + "_PrizeHeight")
262+ let z = assetBalance(this, d)
263+ let A = {
264+ let j = getInteger(this, "StakeBalance")
265+ if ($isInstanceOf(j, "Int"))
266+ then {
267+ let k = j
268+ k
269+ }
270+ else 0
271+ }
272+ let C = (z - A)
273+ let P = {
251274 let j = getInteger(this, g)
252275 if ($isInstanceOf(j, "Int"))
253276 then {
254277 let k = j
255278 k
256279 }
257280 else 0
258281 }
259- let O = {
282+ let Q = {
260283 let j = getInteger(this, f)
261- if ($isInstanceOf(j, "Int"))
262- then {
263- let k = j
264- k
265- }
266- else 0
267- }
268- let P = {
269- let j = getInteger(this, L)
270284 if ($isInstanceOf(j, "Int"))
271285 then {
272286 let k = j
273287 k
274288 }
275289 else 0
276290 }
277291 let b = "GovernTokenMaxDeposit"
278292 let c = "MaxGovernTokenDepositerKey"
279- let Q = getStringValue(this, c)
280- let R = {
281- let j = getInteger(this, M)
293+ let R = getStringValue(this, c)
294+ let S = {
295+ let j = getInteger(this, O)
282296 if ($isInstanceOf(j, "Int"))
283297 then {
284298 let k = j
285299 k
286300 }
287301 else 0
288302 }
289303 let i = {
290304 let j = getInteger(this, b)
291305 if ($isInstanceOf(j, "Int"))
292306 then {
293307 let k = j
294308 k
295309 }
296310 else 0
297311 }
298- if (if ((P == 0))
312+ if (if ((C == 0))
299313 then true
300- else (100 > K))
314+ else (100 > M))
301315 then throw("No prize to Claim or No enough Govern Token en Contract")
302- else if ((g != Q))
316+ else if ((g != R))
303317 then throw("You are not the winner hence cannot claim the reward ")
304- else if ((1 > O))
318+ else if ((1 > Q))
305319 then throw(("You have to Stake StakedToken to claim reward
306- Your Balance of Staked Tokens is: " + toString(O)))
307- else if (if (if ((N >= 100))
308- then (height >= (R + 10))
320+ Your Balance of Staked Tokens is: " + toString(Q)))
321+ else if (if (if ((P >= 100))
322+ then (height >= (S + 10))
309323 else false)
310324 then (height > 0)
311325 else false)
312- then if ((N >= i))
313- then ScriptResult(WriteSet([DataEntry(Q, P), DataEntry(L, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, P, d), ScriptTransfer(a.caller, 100, e)]))
326+ then if ((P >= i))
327+ then ScriptResult(WriteSet([DataEntry(R, C), DataEntry(N, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
314328 else throw((("You should deposit at least " + toString(i)) + " to be able to claim reward"))
315329 else throw(((((((("You have to deposit 100 GovernToken to claim Reward
316- Your Balance is: " + toString(N)) + "
317- Deposit done at: ") + toString(R)) + " And wait:") + toString((R + 10))) + "And Height is:") + toString(height)))
330+ Your Balance is: " + toString(P)) + "
331+ Deposit done at: ") + toString(S)) + " And wait:") + toString((S + 10))) + "And Height is:") + toString(height)))
318332 }
319333
320334

github/deemru/w8io/169f3d6 
96.67 ms