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:AAIDAAAAAAAAABYIARIAEgASABIAEgMKAQESAwoBARIAAAAAAAAAAAcAAAABaQEAAAAMUmVhZFBvb2xEYXRhAAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAg4kCrtAPNiHBMRPYvMCXeThBq6KlRf6cxe4yUvVS2aoUEAAAAC0dvdmVyblRva2VuAQAAACASiWf4V0Rs4Spwpaqhn2bfVjnt1mPO6pt7R8ZSZ6gxXgQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAA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AEsAAAAAgkAASwAAAACAgAAABxZb3Ugc2hvdWxkIGRlcG9zaXQgYXQgbGVhc3QgCQABpAAAAAEFAAAAFU1heEdvdmVyblRva2VuRGVwb3NpdAIAAAAbIHRvIGJlIGFibGUgdG8gY2xhaW0gcmV3YXJkCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAABHWW91IGhhdmUgdG8gZGVwb3NpdCAxMDAgR292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIAogWW91ciBCYWxhbmNlIGlzOiAJAAGkAAAAAQUAAAAVVXNlckdvdmVyblRva2VuQW1vdW50AgAAABMKIERlcG9zaXQgZG9uZSBhdDogCQABpAAAAAEFAAAAC1ByaXplSGVpZ2h0AgAAAAsgIEFuZCB3YWl0OgkAAaQAAAABCQAAZAAAAAIFAAAAC1ByaXplSGVpZ2h0AAAAAAAAAAAKAgAAAA5BbmQgSGVpZ2h0IGlzOgkAAaQAAAABBQAAAAZoZWlnaHQAAAAA/EJLQg==", "height": 1328488, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8cKLdY81rfK2cHUc5oQ9PrB16VwG8adnq3pZkNpEjuYF Next: H4sg4Ff3VrKEiSoDRwK8mkMgNPPZHF3ubEM1MRMUfD68 Diff:
Old | New | Differences | |
---|---|---|---|
62 | 62 | ||
63 | 63 | @Callable(a) | |
64 | 64 | func Stake () = { | |
65 | - | let q = " | |
65 | + | let q = "FundBox" | |
66 | 66 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
67 | 67 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
68 | 68 | let r = assetBalance(this, e) | |
96 | 96 | else 0 | |
97 | 97 | } | |
98 | 98 | let y = (x + t.amount) | |
99 | - | let z = { | |
99 | + | let z = assetBalance(this, d) | |
100 | + | let A = { | |
100 | 101 | let j = getInteger(this, "StakeBalance") | |
101 | 102 | if ($isInstanceOf(j, "Int")) | |
102 | 103 | then { | |
105 | 106 | } | |
106 | 107 | else 0 | |
107 | 108 | } | |
108 | - | let A = (z + t.amount) | |
109 | - | let B = { | |
109 | + | let B = (A + t.amount) | |
110 | + | let C = (z - A) | |
111 | + | let D = { | |
110 | 112 | let j = getInteger(this, g) | |
111 | 113 | if ($isInstanceOf(j, "Int")) | |
112 | 114 | then { | |
119 | 121 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
120 | 122 | else if ((s == 0)) | |
121 | 123 | then { | |
122 | - | let | |
123 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
124 | 126 | } | |
125 | 127 | else if ((w > 50)) | |
126 | 128 | then { | |
127 | - | let | |
128 | - | let | |
129 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
130 | 132 | } | |
131 | 133 | else { | |
132 | - | let | |
133 | - | let | |
134 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
135 | 137 | } | |
136 | 138 | } | |
137 | 139 | else throw("Can deposit only StakeToken") | |
142 | 144 | @Callable(a) | |
143 | 145 | func DepositGovernToken () = { | |
144 | 146 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
145 | - | let | |
147 | + | let G = toBase58String(e) | |
146 | 148 | let t = extract(a.payment) | |
147 | 149 | if (if (isDefined(t.assetId)) | |
148 | 150 | then (extract(t.assetId) == e) | |
149 | 151 | else false) | |
150 | 152 | then { | |
151 | - | let | |
152 | - | let | |
153 | - | let j = getInteger(this, | |
153 | + | let H = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
154 | + | let I = { | |
155 | + | let j = getInteger(this, H) | |
154 | 156 | if ($isInstanceOf(j, "Int")) | |
155 | 157 | then { | |
156 | 158 | let k = j | |
158 | 160 | } | |
159 | 161 | else 0 | |
160 | 162 | } | |
161 | - | let | |
163 | + | let J = (I + t.amount) | |
162 | 164 | let b = "GovernTokenMaxDeposit" | |
163 | 165 | let c = "MaxGovernTokenDepositerKey" | |
164 | 166 | let i = { | |
170 | 172 | } | |
171 | 173 | else 0 | |
172 | 174 | } | |
173 | - | if (( | |
174 | - | then WriteSet([DataEntry( | |
175 | - | else WriteSet([DataEntry( | |
175 | + | if ((J > i)) | |
176 | + | then WriteSet([DataEntry(H, J), DataEntry(b, J), DataEntry(c, H)]) | |
177 | + | else WriteSet([DataEntry(H, J)]) | |
176 | 178 | } | |
177 | 179 | else throw("Can deposit only Govern Token") | |
178 | 180 | } | |
180 | 182 | ||
181 | 183 | ||
182 | 184 | @Callable(a) | |
183 | - | func WithdrawStakedFunds ( | |
185 | + | func WithdrawStakedFunds (K) = { | |
184 | 186 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
185 | 187 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
186 | 188 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
187 | 189 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
188 | - | let | |
189 | - | let | |
190 | + | let H = toBase58String(a.caller.bytes) | |
191 | + | let I = { | |
190 | 192 | let j = getInteger(this, f) | |
191 | 193 | if ($isInstanceOf(j, "Int")) | |
192 | 194 | then { | |
195 | 197 | } | |
196 | 198 | else 0 | |
197 | 199 | } | |
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)) | |
200 | 212 | then throw("Can't withdraw negative amount") | |
201 | - | else if ((0 > | |
202 | - | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString( | |
213 | + | else if ((0 > L)) | |
214 | + | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I))) | |
203 | 215 | else { | |
204 | - | let | |
205 | - | if ((1 > | |
216 | + | let M = assetBalance(this, e) | |
217 | + | if ((1 > M)) | |
206 | 218 | then throw("No enough GovernToken In Contract") | |
207 | - | else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, | |
219 | + | else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, L), DataEntry("StakeBalance", B)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, K, d)])) | |
208 | 220 | } | |
209 | 221 | } | |
210 | 222 | ||
211 | 223 | ||
212 | 224 | ||
213 | 225 | @Callable(a) | |
214 | - | func HarvestGovernToiken ( | |
226 | + | func HarvestGovernToiken (K) = { | |
215 | 227 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
216 | 228 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
217 | - | let | |
218 | - | let | |
229 | + | let H = toBase58String(a.caller.bytes) | |
230 | + | let I = { | |
219 | 231 | let j = getInteger(this, g) | |
220 | 232 | if ($isInstanceOf(j, "Int")) | |
221 | 233 | then { | |
224 | 236 | } | |
225 | 237 | else 0 | |
226 | 238 | } | |
227 | - | let | |
228 | - | if ((0 > | |
239 | + | let L = (I - K) | |
240 | + | if ((0 > K)) | |
229 | 241 | then throw("Can't withdraw negative amount") | |
230 | - | else if ((0 > | |
231 | - | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString( | |
242 | + | else if ((0 > L)) | |
243 | + | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I))) | |
232 | 244 | else { | |
233 | - | let | |
234 | - | ScriptResult(WriteSet([DataEntry(g, | |
245 | + | let M = assetBalance(this, e) | |
246 | + | ScriptResult(WriteSet([DataEntry(g, L)]), TransferSet([ScriptTransfer(a.caller, K, e)])) | |
235 | 247 | } | |
236 | 248 | } | |
237 | 249 | ||
244 | 256 | let q = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n' | |
245 | 257 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
246 | 258 | 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 = { | |
251 | 274 | let j = getInteger(this, g) | |
252 | 275 | if ($isInstanceOf(j, "Int")) | |
253 | 276 | then { | |
256 | 279 | } | |
257 | 280 | else 0 | |
258 | 281 | } | |
259 | - | let | |
282 | + | let Q = { | |
260 | 283 | 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) | |
270 | 284 | if ($isInstanceOf(j, "Int")) | |
271 | 285 | then { | |
272 | 286 | let k = j | |
276 | 290 | } | |
277 | 291 | let b = "GovernTokenMaxDeposit" | |
278 | 292 | let c = "MaxGovernTokenDepositerKey" | |
279 | - | let | |
280 | - | let | |
281 | - | let j = getInteger(this, | |
293 | + | let R = getStringValue(this, c) | |
294 | + | let S = { | |
295 | + | let j = getInteger(this, O) | |
282 | 296 | if ($isInstanceOf(j, "Int")) | |
283 | 297 | then { | |
284 | 298 | let k = j | |
295 | 309 | } | |
296 | 310 | else 0 | |
297 | 311 | } | |
298 | - | if (if (( | |
312 | + | if (if ((C == 0)) | |
299 | 313 | then true | |
300 | - | else (100 > | |
314 | + | else (100 > M)) | |
301 | 315 | then throw("No prize to Claim or No enough Govern Token en Contract") | |
302 | - | else if ((g != | |
316 | + | else if ((g != R)) | |
303 | 317 | then throw("You are not the winner hence cannot claim the reward ") | |
304 | - | else if ((1 > | |
318 | + | else if ((1 > Q)) | |
305 | 319 | then throw(("You have to Stake StakedToken to claim reward | |
306 | - | Your Balance of Staked Tokens is: " + toString( | |
307 | - | else if (if (if (( | |
308 | - | then (height >= ( | |
320 | + | Your Balance of Staked Tokens is: " + toString(Q))) | |
321 | + | else if (if (if ((P >= 100)) | |
322 | + | then (height >= (S + 10)) | |
309 | 323 | else false) | |
310 | 324 | then (height > 0) | |
311 | 325 | else false) | |
312 | - | then if (( | |
313 | - | then ScriptResult(WriteSet([DataEntry( | |
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)])) | |
314 | 328 | else throw((("You should deposit at least " + toString(i)) + " to be able to claim reward")) | |
315 | 329 | else throw(((((((("You have to deposit 100 GovernToken to claim Reward | |
316 | - | Your Balance is: " + toString( | |
317 | - | Deposit done at: ") + toString( | |
330 | + | Your Balance is: " + toString(P)) + " | |
331 | + | Deposit done at: ") + toString(S)) + " And wait:") + toString((S + 10))) + "And Height is:") + toString(height))) | |
318 | 332 | } | |
319 | 333 | ||
320 | 334 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func ReadPoolData () = { | |
8 | 8 | let b = "GovernTokenMaxDeposit" | |
9 | 9 | let c = "MaxGovernTokenDepositerKey" | |
10 | 10 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
11 | 11 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
12 | 12 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
13 | 13 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
14 | 14 | let h = getStringValue(this, c) | |
15 | 15 | let i = { | |
16 | 16 | let j = getInteger(this, b) | |
17 | 17 | if ($isInstanceOf(j, "Int")) | |
18 | 18 | then { | |
19 | 19 | let k = j | |
20 | 20 | k | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | let l = getStringValue(this, g) | |
25 | 25 | let m = { | |
26 | 26 | let j = getInteger(this, g) | |
27 | 27 | if ($isInstanceOf(j, "Int")) | |
28 | 28 | then { | |
29 | 29 | let k = j | |
30 | 30 | k | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let n = getStringValue(this, f) | |
35 | 35 | let o = { | |
36 | 36 | let j = getInteger(this, f) | |
37 | 37 | if ($isInstanceOf(j, "Int")) | |
38 | 38 | then { | |
39 | 39 | let k = j | |
40 | 40 | k | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | throw(((((((("Winner is.....: " + h) + " Balance is: ") + toString(i)) + " | |
45 | 45 | Staked Token in your Balance is.....: ") + toString(o)) + " | |
46 | 46 | Govern Token in your Balance is.....: ") + toString(m))) | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(a) | |
52 | 52 | func ResetAccount () = { | |
53 | 53 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
54 | 54 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
55 | 55 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
56 | 56 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
57 | 57 | let p = (toBase58String(a.caller.bytes) + "_StakedTransactions") | |
58 | 58 | WriteSet([DataEntry(g, 0), DataEntry(f, 0), DataEntry(p, 0)]) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(a) | |
64 | 64 | func Stake () = { | |
65 | - | let q = " | |
65 | + | let q = "FundBox" | |
66 | 66 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
67 | 67 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
68 | 68 | let r = assetBalance(this, e) | |
69 | 69 | let s = assetBalance(this, d) | |
70 | 70 | let t = extract(a.payment) | |
71 | 71 | if (if ((t.amount > 0)) | |
72 | 72 | then (t.assetId == d) | |
73 | 73 | else false) | |
74 | 74 | then { | |
75 | 75 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
76 | 76 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
77 | 77 | let p = (toBase58String(a.caller.bytes) + "_StakedTransactions") | |
78 | 78 | let u = (toBase58String(a.caller.bytes) + "_PrizeHeight") | |
79 | 79 | let v = { | |
80 | 80 | let j = getInteger(this, p) | |
81 | 81 | if ($isInstanceOf(j, "Int")) | |
82 | 82 | then { | |
83 | 83 | let k = j | |
84 | 84 | k | |
85 | 85 | } | |
86 | 86 | else 0 | |
87 | 87 | } | |
88 | 88 | let w = (v + 1) | |
89 | 89 | let x = { | |
90 | 90 | let j = getInteger(this, f) | |
91 | 91 | if ($isInstanceOf(j, "Int")) | |
92 | 92 | then { | |
93 | 93 | let k = j | |
94 | 94 | k | |
95 | 95 | } | |
96 | 96 | else 0 | |
97 | 97 | } | |
98 | 98 | let y = (x + t.amount) | |
99 | - | let z = { | |
99 | + | let z = assetBalance(this, d) | |
100 | + | let A = { | |
100 | 101 | let j = getInteger(this, "StakeBalance") | |
101 | 102 | if ($isInstanceOf(j, "Int")) | |
102 | 103 | then { | |
103 | 104 | let k = j | |
104 | 105 | k | |
105 | 106 | } | |
106 | 107 | else 0 | |
107 | 108 | } | |
108 | - | let A = (z + t.amount) | |
109 | - | let B = { | |
109 | + | let B = (A + t.amount) | |
110 | + | let C = (z - A) | |
111 | + | let D = { | |
110 | 112 | let j = getInteger(this, g) | |
111 | 113 | if ($isInstanceOf(j, "Int")) | |
112 | 114 | then { | |
113 | 115 | let k = j | |
114 | 116 | k | |
115 | 117 | } | |
116 | 118 | else 0 | |
117 | 119 | } | |
118 | 120 | if ((1 > r)) | |
119 | 121 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
120 | 122 | else if ((s == 0)) | |
121 | 123 | then { | |
122 | - | let | |
123 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
124 | 126 | } | |
125 | 127 | else if ((w > 50)) | |
126 | 128 | then { | |
127 | - | let | |
128 | - | let | |
129 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
130 | 132 | } | |
131 | 133 | else { | |
132 | - | let | |
133 | - | let | |
134 | - | ScriptResult(WriteSet([DataEntry(g, | |
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)])) | |
135 | 137 | } | |
136 | 138 | } | |
137 | 139 | else throw("Can deposit only StakeToken") | |
138 | 140 | } | |
139 | 141 | ||
140 | 142 | ||
141 | 143 | ||
142 | 144 | @Callable(a) | |
143 | 145 | func DepositGovernToken () = { | |
144 | 146 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
145 | - | let | |
147 | + | let G = toBase58String(e) | |
146 | 148 | let t = extract(a.payment) | |
147 | 149 | if (if (isDefined(t.assetId)) | |
148 | 150 | then (extract(t.assetId) == e) | |
149 | 151 | else false) | |
150 | 152 | then { | |
151 | - | let | |
152 | - | let | |
153 | - | let j = getInteger(this, | |
153 | + | let H = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
154 | + | let I = { | |
155 | + | let j = getInteger(this, H) | |
154 | 156 | if ($isInstanceOf(j, "Int")) | |
155 | 157 | then { | |
156 | 158 | let k = j | |
157 | 159 | k | |
158 | 160 | } | |
159 | 161 | else 0 | |
160 | 162 | } | |
161 | - | let | |
163 | + | let J = (I + t.amount) | |
162 | 164 | let b = "GovernTokenMaxDeposit" | |
163 | 165 | let c = "MaxGovernTokenDepositerKey" | |
164 | 166 | let i = { | |
165 | 167 | let j = getInteger(this, b) | |
166 | 168 | if ($isInstanceOf(j, "Int")) | |
167 | 169 | then { | |
168 | 170 | let k = j | |
169 | 171 | k | |
170 | 172 | } | |
171 | 173 | else 0 | |
172 | 174 | } | |
173 | - | if (( | |
174 | - | then WriteSet([DataEntry( | |
175 | - | else WriteSet([DataEntry( | |
175 | + | if ((J > i)) | |
176 | + | then WriteSet([DataEntry(H, J), DataEntry(b, J), DataEntry(c, H)]) | |
177 | + | else WriteSet([DataEntry(H, J)]) | |
176 | 178 | } | |
177 | 179 | else throw("Can deposit only Govern Token") | |
178 | 180 | } | |
179 | 181 | ||
180 | 182 | ||
181 | 183 | ||
182 | 184 | @Callable(a) | |
183 | - | func WithdrawStakedFunds ( | |
185 | + | func WithdrawStakedFunds (K) = { | |
184 | 186 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
185 | 187 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
186 | 188 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
187 | 189 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
188 | - | let | |
189 | - | let | |
190 | + | let H = toBase58String(a.caller.bytes) | |
191 | + | let I = { | |
190 | 192 | let j = getInteger(this, f) | |
191 | 193 | if ($isInstanceOf(j, "Int")) | |
192 | 194 | then { | |
193 | 195 | let k = j | |
194 | 196 | k | |
195 | 197 | } | |
196 | 198 | else 0 | |
197 | 199 | } | |
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)) | |
200 | 212 | then throw("Can't withdraw negative amount") | |
201 | - | else if ((0 > | |
202 | - | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString( | |
213 | + | else if ((0 > L)) | |
214 | + | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I))) | |
203 | 215 | else { | |
204 | - | let | |
205 | - | if ((1 > | |
216 | + | let M = assetBalance(this, e) | |
217 | + | if ((1 > M)) | |
206 | 218 | then throw("No enough GovernToken In Contract") | |
207 | - | else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, | |
219 | + | else ScriptResult(WriteSet([DataEntry(g, 1), DataEntry(f, L), DataEntry("StakeBalance", B)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, K, d)])) | |
208 | 220 | } | |
209 | 221 | } | |
210 | 222 | ||
211 | 223 | ||
212 | 224 | ||
213 | 225 | @Callable(a) | |
214 | - | func HarvestGovernToiken ( | |
226 | + | func HarvestGovernToiken (K) = { | |
215 | 227 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
216 | 228 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
217 | - | let | |
218 | - | let | |
229 | + | let H = toBase58String(a.caller.bytes) | |
230 | + | let I = { | |
219 | 231 | let j = getInteger(this, g) | |
220 | 232 | if ($isInstanceOf(j, "Int")) | |
221 | 233 | then { | |
222 | 234 | let k = j | |
223 | 235 | k | |
224 | 236 | } | |
225 | 237 | else 0 | |
226 | 238 | } | |
227 | - | let | |
228 | - | if ((0 > | |
239 | + | let L = (I - K) | |
240 | + | if ((0 > K)) | |
229 | 241 | then throw("Can't withdraw negative amount") | |
230 | - | else if ((0 > | |
231 | - | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString( | |
242 | + | else if ((0 > L)) | |
243 | + | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(I))) | |
232 | 244 | else { | |
233 | - | let | |
234 | - | ScriptResult(WriteSet([DataEntry(g, | |
245 | + | let M = assetBalance(this, e) | |
246 | + | ScriptResult(WriteSet([DataEntry(g, L)]), TransferSet([ScriptTransfer(a.caller, K, e)])) | |
235 | 247 | } | |
236 | 248 | } | |
237 | 249 | ||
238 | 250 | ||
239 | 251 | ||
240 | 252 | @Callable(a) | |
241 | 253 | func ClaimPrize () = { | |
242 | 254 | let d = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
243 | 255 | let e = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
244 | 256 | let q = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n' | |
245 | 257 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
246 | 258 | 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 = { | |
251 | 274 | let j = getInteger(this, g) | |
252 | 275 | if ($isInstanceOf(j, "Int")) | |
253 | 276 | then { | |
254 | 277 | let k = j | |
255 | 278 | k | |
256 | 279 | } | |
257 | 280 | else 0 | |
258 | 281 | } | |
259 | - | let | |
282 | + | let Q = { | |
260 | 283 | 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) | |
270 | 284 | if ($isInstanceOf(j, "Int")) | |
271 | 285 | then { | |
272 | 286 | let k = j | |
273 | 287 | k | |
274 | 288 | } | |
275 | 289 | else 0 | |
276 | 290 | } | |
277 | 291 | let b = "GovernTokenMaxDeposit" | |
278 | 292 | let c = "MaxGovernTokenDepositerKey" | |
279 | - | let | |
280 | - | let | |
281 | - | let j = getInteger(this, | |
293 | + | let R = getStringValue(this, c) | |
294 | + | let S = { | |
295 | + | let j = getInteger(this, O) | |
282 | 296 | if ($isInstanceOf(j, "Int")) | |
283 | 297 | then { | |
284 | 298 | let k = j | |
285 | 299 | k | |
286 | 300 | } | |
287 | 301 | else 0 | |
288 | 302 | } | |
289 | 303 | let i = { | |
290 | 304 | let j = getInteger(this, b) | |
291 | 305 | if ($isInstanceOf(j, "Int")) | |
292 | 306 | then { | |
293 | 307 | let k = j | |
294 | 308 | k | |
295 | 309 | } | |
296 | 310 | else 0 | |
297 | 311 | } | |
298 | - | if (if (( | |
312 | + | if (if ((C == 0)) | |
299 | 313 | then true | |
300 | - | else (100 > | |
314 | + | else (100 > M)) | |
301 | 315 | then throw("No prize to Claim or No enough Govern Token en Contract") | |
302 | - | else if ((g != | |
316 | + | else if ((g != R)) | |
303 | 317 | then throw("You are not the winner hence cannot claim the reward ") | |
304 | - | else if ((1 > | |
318 | + | else if ((1 > Q)) | |
305 | 319 | then throw(("You have to Stake StakedToken to claim reward | |
306 | - | Your Balance of Staked Tokens is: " + toString( | |
307 | - | else if (if (if (( | |
308 | - | then (height >= ( | |
320 | + | Your Balance of Staked Tokens is: " + toString(Q))) | |
321 | + | else if (if (if ((P >= 100)) | |
322 | + | then (height >= (S + 10)) | |
309 | 323 | else false) | |
310 | 324 | then (height > 0) | |
311 | 325 | else false) | |
312 | - | then if (( | |
313 | - | then ScriptResult(WriteSet([DataEntry( | |
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)])) | |
314 | 328 | else throw((("You should deposit at least " + toString(i)) + " to be able to claim reward")) | |
315 | 329 | else throw(((((((("You have to deposit 100 GovernToken to claim Reward | |
316 | - | Your Balance is: " + toString( | |
317 | - | Deposit done at: ") + toString( | |
330 | + | Your Balance is: " + toString(P)) + " | |
331 | + | Deposit done at: ") + toString(S)) + " And wait:") + toString((S + 10))) + "And Height is:") + toString(height))) | |
318 | 332 | } | |
319 | 333 | ||
320 | 334 |
github/deemru/w8io/169f3d6 96.67 ms ◑