tx · 5cMSHU4vjNvkGS9J4Kb6neXkmAZVShB6XHpiQ9ifsDRw 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.02200000 Waves 2022.06.29 18:08 [2117885] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "5cMSHU4vjNvkGS9J4Kb6neXkmAZVShB6XHpiQ9ifsDRw", "fee": 2200000, "feeAssetId": null, "timestamp": 1656515299441, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "pgXMgx7R3e2gL3bqV4fdkYqF4b8hz4VNt2u9uLrdjpFksT5eNA1nXXd8adkdCbyQzCDRm9o81Zz6vEnNTn6wr6e" ], "script": "base64:BgIlCAISABIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBIECgIBAQMAC1N0YWtlZFRva2VuASD5rl2FqqDB81weFWSW9S5FyKYquYAb4MpXXcAlqscPUAALR292ZXJuVG9rZW4BIAFshcLXQMYuV8Rzs8ULZ07fOlzF6BxYes7P/1GRlpktABBMaWtlUGFja2FnZVByaWNlCQBoAgABAIDC1y8LAWkBC0RldldpdGhkcmF3AAQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAwkAAAIFCmN1cnJlbnRLZXkCIzNQNzRidUh0OThCbm9qRmNhUkVKWnRiOThLRHlVbVpHZW1KBAxEZXZCb3hBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwIGRGV2Qm94AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAwkAZgIAAAUMRGV2Qm94QW1vdW50CQACAQISTm90IGVub3VnaCBiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgZEZXZCb3gAAAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZj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wCAgkApAMBBQ1Ud2l0dGVyVXNlcklkAgtfVHdpdHQyTGlrZQUHVHdpdHRJZAUDbmlsCQACAQkArAICAhJBbW91bnQgc2hvdWxkIGJlIDoJAKQDAQkAaQIIBQNwbXQGYW1vdW50AIDC1y8JAAIBAjBQYXltZW50cyBzaG91bGQgYmUgYm90aCBBU0lNSSBhbmQgVFJPSUtBTiB0b2tlbnMA4dzxxQ==", "height": 2117885, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DutgUi3mzgbVh96uaXLqeWjGaJMJX2A1Xig3kymxswpn Next: 3zAGuNHMGR9C8GVJfFy5q89Lkh1ZGwZXwqb6K6kMHqRx Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
7 | 7 | ||
8 | - | let c = ( | |
8 | + | let c = (1 * 100000000) | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func DevWithdraw () = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
5 | 5 | ||
6 | 6 | let b = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
7 | 7 | ||
8 | - | let c = ( | |
8 | + | let c = (1 * 100000000) | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func DevWithdraw () = { | |
12 | 12 | let e = toBase58String(d.caller.bytes) | |
13 | 13 | if ((e == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ")) | |
14 | 14 | then { | |
15 | 15 | let f = { | |
16 | 16 | let g = getInteger(this, "DevBox") | |
17 | 17 | if ($isInstanceOf(g, "Int")) | |
18 | 18 | then { | |
19 | 19 | let h = g | |
20 | 20 | h | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | if ((0 > f)) | |
25 | 25 | then throw("Not enough balance") | |
26 | 26 | else [IntegerEntry("DevBox", 0), ScriptTransfer(d.caller, f, b)] | |
27 | 27 | } | |
28 | 28 | else throw("You cannot withdraw as your are not the Dev.") | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | ||
33 | 33 | @Callable(d) | |
34 | 34 | func WithdrawWeeklyEarning () = { | |
35 | 35 | let i = assetBalance(this, a) | |
36 | 36 | let j = getStringValue(this, "MaxDepositer") | |
37 | 37 | let k = (toBase58String(d.caller.bytes) + "_WeekEarning") | |
38 | 38 | let l = { | |
39 | 39 | let g = getInteger(this, "StakeBalance") | |
40 | 40 | if ($isInstanceOf(g, "Int")) | |
41 | 41 | then { | |
42 | 42 | let h = g | |
43 | 43 | h | |
44 | 44 | } | |
45 | 45 | else 0 | |
46 | 46 | } | |
47 | 47 | let m = { | |
48 | 48 | let g = getInteger(this, "FundBox") | |
49 | 49 | if ($isInstanceOf(g, "Int")) | |
50 | 50 | then { | |
51 | 51 | let h = g | |
52 | 52 | h | |
53 | 53 | } | |
54 | 54 | else 0 | |
55 | 55 | } | |
56 | 56 | let n = { | |
57 | 57 | let g = getInteger(this, "PrizeHeight") | |
58 | 58 | if ($isInstanceOf(g, "Int")) | |
59 | 59 | then { | |
60 | 60 | let h = g | |
61 | 61 | h | |
62 | 62 | } | |
63 | 63 | else 0 | |
64 | 64 | } | |
65 | 65 | let o = if (if ((n == 0)) | |
66 | 66 | then (m == 0) | |
67 | 67 | else false) | |
68 | 68 | then 0 | |
69 | 69 | else if (if ((n == 0)) | |
70 | 70 | then (m != 0) | |
71 | 71 | else false) | |
72 | 72 | then height | |
73 | 73 | else if (if ((n != 0)) | |
74 | 74 | then (m != 0) | |
75 | 75 | else false) | |
76 | 76 | then n | |
77 | 77 | else 0 | |
78 | 78 | let e = toBase58String(d.caller.bytes) | |
79 | 79 | let p = { | |
80 | 80 | let g = getInteger(this, k) | |
81 | 81 | if ($isInstanceOf(g, "Int")) | |
82 | 82 | then { | |
83 | 83 | let h = g | |
84 | 84 | h | |
85 | 85 | } | |
86 | 86 | else 0 | |
87 | 87 | } | |
88 | 88 | if ((0 > p)) | |
89 | 89 | then throw("Can't withdraw negative amount") | |
90 | 90 | else if ((0 > p)) | |
91 | 91 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((p / 100000000)))) | |
92 | 92 | else [IntegerEntry(k, 0), IntegerEntry("PrizeHeight", o), IntegerEntry("MaxDeposit", 0), ScriptTransfer(d.caller, p, a)] | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(d) | |
98 | 98 | func PushReward () = { | |
99 | 99 | let q = 10 | |
100 | 100 | let r = (7 * 1440) | |
101 | 101 | let s = 60 | |
102 | 102 | let t = (1440 * 1) | |
103 | 103 | let u = 3 | |
104 | 104 | let v = (7 * 1440) | |
105 | 105 | let w = assetBalance(Address(d.caller.bytes), b) | |
106 | 106 | let x = if ((size(d.payments) == 1)) | |
107 | 107 | then d.payments[0] | |
108 | 108 | else throw("Attached payment is required") | |
109 | 109 | let y = (toBase58String(d.caller.bytes) + "_Push") | |
110 | 110 | let z = { | |
111 | 111 | let g = getInteger(this, y) | |
112 | 112 | if ($isInstanceOf(g, "Int")) | |
113 | 113 | then { | |
114 | 114 | let h = g | |
115 | 115 | h | |
116 | 116 | } | |
117 | 117 | else 0 | |
118 | 118 | } | |
119 | 119 | let A = (toBase58String(d.caller.bytes) + "_refs") | |
120 | 120 | let B = { | |
121 | 121 | let g = getInteger(this, A) | |
122 | 122 | if ($isInstanceOf(g, "Int")) | |
123 | 123 | then { | |
124 | 124 | let h = g | |
125 | 125 | h | |
126 | 126 | } | |
127 | 127 | else 0 | |
128 | 128 | } | |
129 | 129 | let C = { | |
130 | 130 | let g = getInteger(this, "HighestPush") | |
131 | 131 | if ($isInstanceOf(g, "Int")) | |
132 | 132 | then { | |
133 | 133 | let h = g | |
134 | 134 | h | |
135 | 135 | } | |
136 | 136 | else 0 | |
137 | 137 | } | |
138 | 138 | if ((w > x.amount)) | |
139 | 139 | then if (if (((x.amount + z) > C)) | |
140 | 140 | then (x.assetId == b) | |
141 | 141 | else false) | |
142 | 142 | then { | |
143 | 143 | let D = (toBase58String(d.caller.bytes) + "_UserLastPushBlock") | |
144 | 144 | let E = (toBase58String(d.caller.bytes) + "_UserLastStakeBlock") | |
145 | 145 | let F = (toBase58String(d.caller.bytes) + "_Staking") | |
146 | 146 | let i = assetBalance(this, a) | |
147 | 147 | let l = { | |
148 | 148 | let g = getInteger(this, "StakeBalance") | |
149 | 149 | if ($isInstanceOf(g, "Int")) | |
150 | 150 | then { | |
151 | 151 | let h = g | |
152 | 152 | h | |
153 | 153 | } | |
154 | 154 | else 0 | |
155 | 155 | } | |
156 | 156 | let m = { | |
157 | 157 | let g = getInteger(this, "FundBox") | |
158 | 158 | if ($isInstanceOf(g, "Int")) | |
159 | 159 | then { | |
160 | 160 | let h = g | |
161 | 161 | h | |
162 | 162 | } | |
163 | 163 | else 0 | |
164 | 164 | } | |
165 | 165 | let n = { | |
166 | 166 | let g = getInteger(this, "PrizeHeight") | |
167 | 167 | if ($isInstanceOf(g, "Int")) | |
168 | 168 | then { | |
169 | 169 | let h = g | |
170 | 170 | h | |
171 | 171 | } | |
172 | 172 | else 0 | |
173 | 173 | } | |
174 | 174 | let o = if (if ((n == 0)) | |
175 | 175 | then (m == 0) | |
176 | 176 | else false) | |
177 | 177 | then 0 | |
178 | 178 | else if (if ((n == 0)) | |
179 | 179 | then (m != 0) | |
180 | 180 | else false) | |
181 | 181 | then height | |
182 | 182 | else if (if ((n != 0)) | |
183 | 183 | then (m != 0) | |
184 | 184 | else false) | |
185 | 185 | then n | |
186 | 186 | else 0 | |
187 | 187 | let G = { | |
188 | 188 | let g = getInteger(this, "Delay") | |
189 | 189 | if ($isInstanceOf(g, "Int")) | |
190 | 190 | then { | |
191 | 191 | let h = g | |
192 | 192 | h | |
193 | 193 | } | |
194 | 194 | else 0 | |
195 | 195 | } | |
196 | 196 | let H = { | |
197 | 197 | let g = getInteger(this, "HighestPushAddress") | |
198 | 198 | if ($isInstanceOf(g, "Int")) | |
199 | 199 | then { | |
200 | 200 | let h = g | |
201 | 201 | h | |
202 | 202 | } | |
203 | 203 | else 0 | |
204 | 204 | } | |
205 | 205 | let I = { | |
206 | 206 | let g = getInteger(this, D) | |
207 | 207 | if ($isInstanceOf(g, "Int")) | |
208 | 208 | then { | |
209 | 209 | let h = g | |
210 | 210 | h | |
211 | 211 | } | |
212 | 212 | else 0 | |
213 | 213 | } | |
214 | 214 | let J = { | |
215 | 215 | let g = getInteger(this, E) | |
216 | 216 | if ($isInstanceOf(g, "Int")) | |
217 | 217 | then { | |
218 | 218 | let h = g | |
219 | 219 | h | |
220 | 220 | } | |
221 | 221 | else 0 | |
222 | 222 | } | |
223 | 223 | let K = { | |
224 | 224 | let g = getInteger(this, F) | |
225 | 225 | if ($isInstanceOf(g, "Int")) | |
226 | 226 | then { | |
227 | 227 | let h = g | |
228 | 228 | h | |
229 | 229 | } | |
230 | 230 | else 0 | |
231 | 231 | } | |
232 | 232 | let L = { | |
233 | 233 | let g = getInteger(this, "DevBox") | |
234 | 234 | if ($isInstanceOf(g, "Int")) | |
235 | 235 | then { | |
236 | 236 | let h = g | |
237 | 237 | h | |
238 | 238 | } | |
239 | 239 | else 0 | |
240 | 240 | } | |
241 | 241 | let f = (L + ((x.amount * 5) / 1000)) | |
242 | 242 | let M = (x.amount + z) | |
243 | 243 | let N = if (if ((height > ((o + G) + t))) | |
244 | 244 | then (C > 0) | |
245 | 245 | else false) | |
246 | 246 | then v | |
247 | 247 | else (G + s) | |
248 | 248 | let O = if (if ((height > ((o + N) + t))) | |
249 | 249 | then (C > 0) | |
250 | 250 | else false) | |
251 | 251 | then "" | |
252 | 252 | else H | |
253 | 253 | let P = if (if ((height > ((o + N) + t))) | |
254 | 254 | then (C > 0) | |
255 | 255 | else false) | |
256 | 256 | then height | |
257 | 257 | else o | |
258 | 258 | if (if ((M > 0)) | |
259 | 259 | then ((height - J) > r) | |
260 | 260 | else false) | |
261 | 261 | then if (((height - I) > q)) | |
262 | 262 | then if ((K > 0)) | |
263 | 263 | then if ((M > C)) | |
264 | 264 | then if ((m > 0)) | |
265 | 265 | then if (if (if (if (((P + N) >= height)) | |
266 | 266 | then true | |
267 | 267 | else (height >= ((P + N) + t))) | |
268 | 268 | then (C > 0) | |
269 | 269 | else false) | |
270 | 270 | then true | |
271 | 271 | else (C == 0)) | |
272 | 272 | then if ((B >= u)) | |
273 | 273 | then [IntegerEntry(y, M), StringEntry("HighestPushAddress", toBase58String(d.caller.bytes)), IntegerEntry("HighestPush", M), IntegerEntry(D, height), IntegerEntry("PrizeHeight", P), IntegerEntry("Delay", N), IntegerEntry("DevBox", f)] | |
274 | 274 | else throw((("You have to have " + toString(u)) + " referrals already staking for a minimum of 10 days, to push")) | |
275 | 275 | else { | |
276 | 276 | let Q = if ((C > 0)) | |
277 | 277 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
278 | 278 | else "Unexpected error" | |
279 | 279 | throw(Q) | |
280 | 280 | } | |
281 | 281 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
282 | 282 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
283 | 283 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
284 | 284 | else throw("You have to wait 10min before you can make a new Push") | |
285 | 285 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
286 | 286 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
287 | 287 | } | |
288 | 288 | else throw((("Can deposit only positive amounts of Troikan Token, or Check your Wallet balance in Troika, you should have more than " + toString(C)) + " to push")) | |
289 | 289 | else throw("You do not have enough Troikan Tokens in your Wallet Balance, Please Harvest if you have earned Troikan wallet or transfer to your wallet necessary Troikan amount !") | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(d) | |
295 | 295 | func Stake () = { | |
296 | 296 | let t = (1440 * 1) | |
297 | 297 | let x = if ((size(d.payments) == 1)) | |
298 | 298 | then d.payments[0] | |
299 | 299 | else throw("Attached payment is required") | |
300 | 300 | if (if ((x.amount > 0)) | |
301 | 301 | then (x.assetId == a) | |
302 | 302 | else false) | |
303 | 303 | then { | |
304 | 304 | let R = assetBalance(this, b) | |
305 | 305 | let S = (toBase58String(d.caller.bytes) + "_APY") | |
306 | 306 | let y = (toBase58String(d.caller.bytes) + "_Push") | |
307 | 307 | let T = (toBase58String(d.caller.bytes) + "_Staking") | |
308 | 308 | let U = (toBase58String(d.caller.bytes) + "_Earnings") | |
309 | 309 | let E = (toBase58String(d.caller.bytes) + "_UserLastStakeBlock") | |
310 | 310 | let V = (toBase58String(d.caller.bytes) + "_StakedTransactions") | |
311 | 311 | let W = (toBase58String(d.caller.bytes) + "_PrizeHeight") | |
312 | 312 | let X = (toBase58String(d.caller.bytes) + "_WeekEarning") | |
313 | 313 | let Y = { | |
314 | 314 | let g = getInteger(this, V) | |
315 | 315 | if ($isInstanceOf(g, "Int")) | |
316 | 316 | then { | |
317 | 317 | let h = g | |
318 | 318 | h | |
319 | 319 | } | |
320 | 320 | else 0 | |
321 | 321 | } | |
322 | 322 | let j = getStringValue(this, "MaxDepositer") | |
323 | 323 | let Z = { | |
324 | 324 | let g = getInteger(this, "MaxDepositBlock") | |
325 | 325 | if ($isInstanceOf(g, "Int")) | |
326 | 326 | then { | |
327 | 327 | let h = g | |
328 | 328 | h | |
329 | 329 | } | |
330 | 330 | else 0 | |
331 | 331 | } | |
332 | 332 | let aa = { | |
333 | 333 | let g = getInteger(this, "MaxDeposit") | |
334 | 334 | if ($isInstanceOf(g, "Int")) | |
335 | 335 | then { | |
336 | 336 | let h = g | |
337 | 337 | h | |
338 | 338 | } | |
339 | 339 | else 0 | |
340 | 340 | } | |
341 | 341 | let ab = if ((x.amount > aa)) | |
342 | 342 | then toBase58String(d.caller.bytes) | |
343 | 343 | else j | |
344 | 344 | let ac = if ((x.amount > aa)) | |
345 | 345 | then x.amount | |
346 | 346 | else aa | |
347 | 347 | let ad = if ((x.amount > aa)) | |
348 | 348 | then height | |
349 | 349 | else Z | |
350 | 350 | let ae = { | |
351 | 351 | let g = getInteger(this, y) | |
352 | 352 | if ($isInstanceOf(g, "Int")) | |
353 | 353 | then { | |
354 | 354 | let h = g | |
355 | 355 | h | |
356 | 356 | } | |
357 | 357 | else 0 | |
358 | 358 | } | |
359 | 359 | let J = { | |
360 | 360 | let g = getInteger(this, E) | |
361 | 361 | if ($isInstanceOf(g, "Int")) | |
362 | 362 | then { | |
363 | 363 | let h = g | |
364 | 364 | h | |
365 | 365 | } | |
366 | 366 | else 0 | |
367 | 367 | } | |
368 | 368 | let af = if ((J == 0)) | |
369 | 369 | then height | |
370 | 370 | else J | |
371 | 371 | let ag = (Y + 1) | |
372 | 372 | let ah = { | |
373 | 373 | let g = getInteger(this, T) | |
374 | 374 | if ($isInstanceOf(g, "Int")) | |
375 | 375 | then { | |
376 | 376 | let h = g | |
377 | 377 | h | |
378 | 378 | } | |
379 | 379 | else 0 | |
380 | 380 | } | |
381 | 381 | let ai = (ah + x.amount) | |
382 | 382 | let i = assetBalance(this, a) | |
383 | 383 | let l = { | |
384 | 384 | let g = getInteger(this, "StakeBalance") | |
385 | 385 | if ($isInstanceOf(g, "Int")) | |
386 | 386 | then { | |
387 | 387 | let h = g | |
388 | 388 | h | |
389 | 389 | } | |
390 | 390 | else 0 | |
391 | 391 | } | |
392 | 392 | let aj = (l + x.amount) | |
393 | 393 | let m = { | |
394 | 394 | let g = getInteger(this, "FundBox") | |
395 | 395 | if ($isInstanceOf(g, "Int")) | |
396 | 396 | then { | |
397 | 397 | let h = g | |
398 | 398 | h | |
399 | 399 | } | |
400 | 400 | else 0 | |
401 | 401 | } | |
402 | 402 | let ak = { | |
403 | 403 | let g = getInteger(this, X) | |
404 | 404 | if ($isInstanceOf(g, "Int")) | |
405 | 405 | then { | |
406 | 406 | let h = g | |
407 | 407 | h | |
408 | 408 | } | |
409 | 409 | else 0 | |
410 | 410 | } | |
411 | 411 | let al = { | |
412 | 412 | let g = getInteger(this, U) | |
413 | 413 | if ($isInstanceOf(g, "Int")) | |
414 | 414 | then { | |
415 | 415 | let h = g | |
416 | 416 | h | |
417 | 417 | } | |
418 | 418 | else 0 | |
419 | 419 | } | |
420 | 420 | let n = { | |
421 | 421 | let g = getInteger(this, "PrizeHeight") | |
422 | 422 | if ($isInstanceOf(g, "Int")) | |
423 | 423 | then { | |
424 | 424 | let h = g | |
425 | 425 | h | |
426 | 426 | } | |
427 | 427 | else 0 | |
428 | 428 | } | |
429 | 429 | let o = if (if ((n == 0)) | |
430 | 430 | then (m == 0) | |
431 | 431 | else false) | |
432 | 432 | then 0 | |
433 | 433 | else if (if ((n == 0)) | |
434 | 434 | then (m != 0) | |
435 | 435 | else false) | |
436 | 436 | then height | |
437 | 437 | else if (if ((n != 0)) | |
438 | 438 | then (m != 0) | |
439 | 439 | else false) | |
440 | 440 | then n | |
441 | 441 | else 0 | |
442 | 442 | let G = { | |
443 | 443 | let g = getInteger(this, "Delay") | |
444 | 444 | if ($isInstanceOf(g, "Int")) | |
445 | 445 | then { | |
446 | 446 | let h = g | |
447 | 447 | h | |
448 | 448 | } | |
449 | 449 | else 0 | |
450 | 450 | } | |
451 | 451 | let C = { | |
452 | 452 | let g = getInteger(this, "HighestPush") | |
453 | 453 | if ($isInstanceOf(g, "Int")) | |
454 | 454 | then { | |
455 | 455 | let h = g | |
456 | 456 | h | |
457 | 457 | } | |
458 | 458 | else 0 | |
459 | 459 | } | |
460 | 460 | let H = getStringValue(this, "HighestPushAddress") | |
461 | 461 | let O = if (if ((height > ((o + G) + t))) | |
462 | 462 | then (C > 0) | |
463 | 463 | else false) | |
464 | 464 | then "" | |
465 | 465 | else H | |
466 | 466 | let P = if (if ((height > ((o + G) + t))) | |
467 | 467 | then (C > 0) | |
468 | 468 | else false) | |
469 | 469 | then height | |
470 | 470 | else o | |
471 | 471 | if ((100000000 > R)) | |
472 | 472 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
473 | 473 | else { | |
474 | 474 | let am = if ((l == 0)) | |
475 | 475 | then 10000 | |
476 | 476 | else if ((ag > 10)) | |
477 | 477 | then ((10000 * ag) * (1 + (ai / l))) | |
478 | 478 | else (10000 * (1 + (ai / l))) | |
479 | 479 | let an = if ((al > 0)) | |
480 | 480 | then ((100 * am) / al) | |
481 | 481 | else 0 | |
482 | 482 | let ao = (al + am) | |
483 | 483 | [IntegerEntry(U, ao), IntegerEntry(T, ai), IntegerEntry(V, ag), IntegerEntry("StakeBalance", aj), IntegerEntry("PrizeHeight", P), IntegerEntry(S, an), IntegerEntry(E, af), IntegerEntry(y, ae), StringEntry("MaxDepositer", ab), IntegerEntry("MaxDeposit", ac), IntegerEntry("MaxDepositBlock", ad), StringEntry("HighestPushAddress", O), IntegerEntry(X, ak), ScriptTransfer(d.caller, am, b)] | |
484 | 484 | } | |
485 | 485 | } | |
486 | 486 | else throw("Can deposit only StakeToken") | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | ||
491 | 491 | @Callable(d) | |
492 | 492 | func WithdrawStakedFunds (ap) = { | |
493 | 493 | let t = (1440 * 1) | |
494 | 494 | let E = (toBase58String(d.caller.bytes) + "_UserLastStakeBlock") | |
495 | 495 | let T = (toBase58String(d.caller.bytes) + "_Staking") | |
496 | 496 | let U = ((toBase58String(d.caller.bytes) + "_") + toBase58String(b)) | |
497 | 497 | let i = assetBalance(this, a) | |
498 | 498 | let J = { | |
499 | 499 | let g = getInteger(this, E) | |
500 | 500 | if ($isInstanceOf(g, "Int")) | |
501 | 501 | then { | |
502 | 502 | let h = g | |
503 | 503 | h | |
504 | 504 | } | |
505 | 505 | else 0 | |
506 | 506 | } | |
507 | 507 | let l = { | |
508 | 508 | let g = getInteger(this, "StakeBalance") | |
509 | 509 | if ($isInstanceOf(g, "Int")) | |
510 | 510 | then { | |
511 | 511 | let h = g | |
512 | 512 | h | |
513 | 513 | } | |
514 | 514 | else 0 | |
515 | 515 | } | |
516 | 516 | let m = { | |
517 | 517 | let g = getInteger(this, "FundBox") | |
518 | 518 | if ($isInstanceOf(g, "Int")) | |
519 | 519 | then { | |
520 | 520 | let h = g | |
521 | 521 | h | |
522 | 522 | } | |
523 | 523 | else 0 | |
524 | 524 | } | |
525 | 525 | let n = { | |
526 | 526 | let g = getInteger(this, "PrizeHeight") | |
527 | 527 | if ($isInstanceOf(g, "Int")) | |
528 | 528 | then { | |
529 | 529 | let h = g | |
530 | 530 | h | |
531 | 531 | } | |
532 | 532 | else 0 | |
533 | 533 | } | |
534 | 534 | let G = { | |
535 | 535 | let g = getInteger(this, "Delay") | |
536 | 536 | if ($isInstanceOf(g, "Int")) | |
537 | 537 | then { | |
538 | 538 | let h = g | |
539 | 539 | h | |
540 | 540 | } | |
541 | 541 | else 0 | |
542 | 542 | } | |
543 | 543 | let C = { | |
544 | 544 | let g = getInteger(this, "HighestPush") | |
545 | 545 | if ($isInstanceOf(g, "Int")) | |
546 | 546 | then { | |
547 | 547 | let h = g | |
548 | 548 | h | |
549 | 549 | } | |
550 | 550 | else 0 | |
551 | 551 | } | |
552 | 552 | let o = if (if ((n == 0)) | |
553 | 553 | then (m == 0) | |
554 | 554 | else false) | |
555 | 555 | then 0 | |
556 | 556 | else if (if ((n == 0)) | |
557 | 557 | then (m != 0) | |
558 | 558 | else false) | |
559 | 559 | then height | |
560 | 560 | else if (if ((n != 0)) | |
561 | 561 | then (m != 0) | |
562 | 562 | else false) | |
563 | 563 | then n | |
564 | 564 | else 0 | |
565 | 565 | let H = getStringValue(this, "HighestPushAddress") | |
566 | 566 | let O = if (if ((height > ((o + G) + t))) | |
567 | 567 | then (C > 0) | |
568 | 568 | else false) | |
569 | 569 | then "" | |
570 | 570 | else H | |
571 | 571 | let P = if (if ((height > ((o + G) + t))) | |
572 | 572 | then (C > 0) | |
573 | 573 | else false) | |
574 | 574 | then height | |
575 | 575 | else o | |
576 | 576 | let e = toBase58String(d.caller.bytes) | |
577 | 577 | let aq = { | |
578 | 578 | let g = getInteger(this, T) | |
579 | 579 | if ($isInstanceOf(g, "Int")) | |
580 | 580 | then { | |
581 | 581 | let h = g | |
582 | 582 | h | |
583 | 583 | } | |
584 | 584 | else 0 | |
585 | 585 | } | |
586 | 586 | let p = (aq - ap) | |
587 | 587 | let aj = (l - ap) | |
588 | 588 | let af = if ((aj == 0)) | |
589 | 589 | then 0 | |
590 | 590 | else J | |
591 | 591 | if ((0 > ap)) | |
592 | 592 | then throw("Can't withdraw negative amount") | |
593 | 593 | else if ((0 > p)) | |
594 | 594 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((aq / 100000000)))) | |
595 | 595 | else if ((100000000 > assetBalance(this, b))) | |
596 | 596 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, b) / 100000000)))) | |
597 | 597 | else [IntegerEntry(U, 100000000), IntegerEntry(T, p), IntegerEntry("StakeBalance", aj), IntegerEntry("PrizeHeight", P), IntegerEntry(E, af), StringEntry("HighestPushAddress", O), ScriptTransfer(d.caller, 100000000, b), ScriptTransfer(d.caller, ap, a)] | |
598 | 598 | } | |
599 | 599 | ||
600 | 600 | ||
601 | 601 | ||
602 | 602 | @Callable(d) | |
603 | 603 | func WithdrawBigStakeReward () = { | |
604 | 604 | let t = (1440 * 1) | |
605 | 605 | let ar = (toBase58String(d.caller.bytes) + "_LastBigStakerRewardBlock") | |
606 | 606 | let as = (toBase58String(d.caller.bytes) + "_BigStaker") | |
607 | 607 | let U = (toBase58String(d.caller.bytes) + "_Earnings") | |
608 | 608 | let at = 10 | |
609 | 609 | let au = { | |
610 | 610 | let g = getInteger(this, U) | |
611 | 611 | if ($isInstanceOf(g, "Int")) | |
612 | 612 | then { | |
613 | 613 | let h = g | |
614 | 614 | h | |
615 | 615 | } | |
616 | 616 | else 0 | |
617 | 617 | } | |
618 | 618 | let av = { | |
619 | 619 | let g = getInteger(this, ar) | |
620 | 620 | if ($isInstanceOf(g, "Int")) | |
621 | 621 | then { | |
622 | 622 | let h = g | |
623 | 623 | h | |
624 | 624 | } | |
625 | 625 | else 0 | |
626 | 626 | } | |
627 | 627 | let aw = { | |
628 | 628 | let g = getInteger(this, "BigStakerRewardTotal") | |
629 | 629 | if ($isInstanceOf(g, "Int")) | |
630 | 630 | then { | |
631 | 631 | let h = g | |
632 | 632 | h | |
633 | 633 | } | |
634 | 634 | else 0 | |
635 | 635 | } | |
636 | 636 | let m = { | |
637 | 637 | let g = getInteger(this, "FundBox") | |
638 | 638 | if ($isInstanceOf(g, "Int")) | |
639 | 639 | then { | |
640 | 640 | let h = g | |
641 | 641 | h | |
642 | 642 | } | |
643 | 643 | else 0 | |
644 | 644 | } | |
645 | 645 | let n = { | |
646 | 646 | let g = getInteger(this, "PrizeHeight") | |
647 | 647 | if ($isInstanceOf(g, "Int")) | |
648 | 648 | then { | |
649 | 649 | let h = g | |
650 | 650 | h | |
651 | 651 | } | |
652 | 652 | else 0 | |
653 | 653 | } | |
654 | 654 | let o = if (if ((n == 0)) | |
655 | 655 | then (m == 0) | |
656 | 656 | else false) | |
657 | 657 | then 0 | |
658 | 658 | else if (if ((n == 0)) | |
659 | 659 | then (m != 0) | |
660 | 660 | else false) | |
661 | 661 | then height | |
662 | 662 | else if (if ((n != 0)) | |
663 | 663 | then (m != 0) | |
664 | 664 | else false) | |
665 | 665 | then n | |
666 | 666 | else 0 | |
667 | 667 | let G = { | |
668 | 668 | let g = getInteger(this, "Delay") | |
669 | 669 | if ($isInstanceOf(g, "Int")) | |
670 | 670 | then { | |
671 | 671 | let h = g | |
672 | 672 | h | |
673 | 673 | } | |
674 | 674 | else 0 | |
675 | 675 | } | |
676 | 676 | let C = { | |
677 | 677 | let g = getInteger(this, "HighestPush") | |
678 | 678 | if ($isInstanceOf(g, "Int")) | |
679 | 679 | then { | |
680 | 680 | let h = g | |
681 | 681 | h | |
682 | 682 | } | |
683 | 683 | else 0 | |
684 | 684 | } | |
685 | 685 | let H = getStringValue(this, "HighestPushAddress") | |
686 | 686 | let O = if (if ((height > ((o + G) + t))) | |
687 | 687 | then (C > 0) | |
688 | 688 | else false) | |
689 | 689 | then "" | |
690 | 690 | else H | |
691 | 691 | let P = if (if ((height > ((o + G) + t))) | |
692 | 692 | then (C > 0) | |
693 | 693 | else false) | |
694 | 694 | then height | |
695 | 695 | else o | |
696 | 696 | let e = toBase58String(d.caller.bytes) | |
697 | 697 | let ap = { | |
698 | 698 | let g = getInteger(this, as) | |
699 | 699 | if ($isInstanceOf(g, "Int")) | |
700 | 700 | then { | |
701 | 701 | let h = g | |
702 | 702 | h | |
703 | 703 | } | |
704 | 704 | else 0 | |
705 | 705 | } | |
706 | 706 | let aj = (aw - ap) | |
707 | 707 | let ax = if ((0 > ((au / 1000) * (1000 - ((1000 * (height - av)) / (at * 1440)))))) | |
708 | 708 | then (1000 * 100000000) | |
709 | 709 | else ((au / 1000) * (1000 - ((1000 * (height - av)) / (at * 1440)))) | |
710 | 710 | if ((0 > ap)) | |
711 | 711 | then throw(((("Can't withdraw negative amount " + toString((au - (1000 * 100000000)))) + " ... ") + toString(ap))) | |
712 | 712 | else if (if (if (((1000 * 100000000) > au)) | |
713 | 713 | then true | |
714 | 714 | else (1 > ap)) | |
715 | 715 | then true | |
716 | 716 | else (0 > (au - ax))) | |
717 | 717 | then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you have: " + toString((au / 100000000)))) | |
718 | 718 | else if ((aj > 0)) | |
719 | 719 | then [IntegerEntry(as, 0), IntegerEntry("BigStakerRewardTotal", aj), IntegerEntry(U, (au - ax)), IntegerEntry("PrizeHeight", o), IntegerEntry(ar, height), StringEntry("HighestPushAddress", O), ScriptTransfer(d.caller, ap, a)] | |
720 | 720 | else throw("Balance Error, Total Big Stakers cannot be negative, Operation won't be authorized") | |
721 | 721 | } | |
722 | 722 | ||
723 | 723 | ||
724 | 724 | ||
725 | 725 | @Callable(d) | |
726 | 726 | func HarvestGovernToiken (ap) = { | |
727 | 727 | let i = assetBalance(this, a) | |
728 | 728 | let U = (toBase58String(d.caller.bytes) + "_Earnings") | |
729 | 729 | let l = { | |
730 | 730 | let g = getInteger(this, "StakeBalance") | |
731 | 731 | if ($isInstanceOf(g, "Int")) | |
732 | 732 | then { | |
733 | 733 | let h = g | |
734 | 734 | h | |
735 | 735 | } | |
736 | 736 | else 0 | |
737 | 737 | } | |
738 | 738 | let m = { | |
739 | 739 | let g = getInteger(this, "FundBox") | |
740 | 740 | if ($isInstanceOf(g, "Int")) | |
741 | 741 | then { | |
742 | 742 | let h = g | |
743 | 743 | h | |
744 | 744 | } | |
745 | 745 | else 0 | |
746 | 746 | } | |
747 | 747 | let n = { | |
748 | 748 | let g = getInteger(this, "PrizeHeight") | |
749 | 749 | if ($isInstanceOf(g, "Int")) | |
750 | 750 | then { | |
751 | 751 | let h = g | |
752 | 752 | h | |
753 | 753 | } | |
754 | 754 | else 0 | |
755 | 755 | } | |
756 | 756 | let o = if (if ((n == 0)) | |
757 | 757 | then (m == 0) | |
758 | 758 | else false) | |
759 | 759 | then 0 | |
760 | 760 | else if (if ((n == 0)) | |
761 | 761 | then (m != 0) | |
762 | 762 | else false) | |
763 | 763 | then height | |
764 | 764 | else if (if ((n != 0)) | |
765 | 765 | then (m != 0) | |
766 | 766 | else false) | |
767 | 767 | then n | |
768 | 768 | else 0 | |
769 | 769 | let e = toBase58String(d.caller.bytes) | |
770 | 770 | let aq = { | |
771 | 771 | let g = getInteger(this, U) | |
772 | 772 | if ($isInstanceOf(g, "Int")) | |
773 | 773 | then { | |
774 | 774 | let h = g | |
775 | 775 | h | |
776 | 776 | } | |
777 | 777 | else 0 | |
778 | 778 | } | |
779 | 779 | let p = (aq - ap) | |
780 | 780 | if ((0 > ap)) | |
781 | 781 | then throw("Can't withdraw negative amount") | |
782 | 782 | else if ((0 > p)) | |
783 | 783 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((aq / 100000000)))) | |
784 | 784 | else [IntegerEntry(U, p), IntegerEntry("PrizeHeight", o), ScriptTransfer(d.caller, ap, b)] | |
785 | 785 | } | |
786 | 786 | ||
787 | 787 | ||
788 | 788 | ||
789 | 789 | @Callable(d) | |
790 | 790 | func delayprize () = { | |
791 | 791 | let ay = (1440 * 1) | |
792 | 792 | let t = (1440 * 1) | |
793 | 793 | let U = ((toBase58String(d.caller.bytes) + "_") + toBase58String(b)) | |
794 | 794 | let az = assetBalance(Address(d.caller.bytes), b) | |
795 | 795 | let i = assetBalance(this, a) | |
796 | 796 | let l = { | |
797 | 797 | let g = getInteger(this, "StakeBalance") | |
798 | 798 | if ($isInstanceOf(g, "Int")) | |
799 | 799 | then { | |
800 | 800 | let h = g | |
801 | 801 | h | |
802 | 802 | } | |
803 | 803 | else 0 | |
804 | 804 | } | |
805 | 805 | let m = { | |
806 | 806 | let g = getInteger(this, "FundBox") | |
807 | 807 | if ($isInstanceOf(g, "Int")) | |
808 | 808 | then { | |
809 | 809 | let h = g | |
810 | 810 | h | |
811 | 811 | } | |
812 | 812 | else 0 | |
813 | 813 | } | |
814 | 814 | let n = { | |
815 | 815 | let g = getInteger(this, "PrizeHeight") | |
816 | 816 | if ($isInstanceOf(g, "Int")) | |
817 | 817 | then { | |
818 | 818 | let h = g | |
819 | 819 | h | |
820 | 820 | } | |
821 | 821 | else 0 | |
822 | 822 | } | |
823 | 823 | let G = { | |
824 | 824 | let g = getInteger(this, "Delay") | |
825 | 825 | if ($isInstanceOf(g, "Int")) | |
826 | 826 | then { | |
827 | 827 | let h = g | |
828 | 828 | h | |
829 | 829 | } | |
830 | 830 | else 0 | |
831 | 831 | } | |
832 | 832 | let o = if (if ((n == 0)) | |
833 | 833 | then (m == 0) | |
834 | 834 | else false) | |
835 | 835 | then 0 | |
836 | 836 | else if (if ((n == 0)) | |
837 | 837 | then (m != 0) | |
838 | 838 | else false) | |
839 | 839 | then height | |
840 | 840 | else if (if ((n != 0)) | |
841 | 841 | then (m != 0) | |
842 | 842 | else false) | |
843 | 843 | then n | |
844 | 844 | else 0 | |
845 | 845 | let C = { | |
846 | 846 | let g = getInteger(this, "HighestPush") | |
847 | 847 | if ($isInstanceOf(g, "Int")) | |
848 | 848 | then { | |
849 | 849 | let h = g | |
850 | 850 | h | |
851 | 851 | } | |
852 | 852 | else 0 | |
853 | 853 | } | |
854 | 854 | let H = getStringValue(this, "HighestPushAddress") | |
855 | 855 | let O = if (if ((height > ((o + G) + t))) | |
856 | 856 | then (C > 0) | |
857 | 857 | else false) | |
858 | 858 | then "" | |
859 | 859 | else H | |
860 | 860 | let P = if (if ((height > ((o + G) + t))) | |
861 | 861 | then (C > 0) | |
862 | 862 | else false) | |
863 | 863 | then height | |
864 | 864 | else o | |
865 | 865 | let aA = { | |
866 | 866 | let g = getInteger(this, "DelayCost") | |
867 | 867 | if ($isInstanceOf(g, "Int")) | |
868 | 868 | then { | |
869 | 869 | let h = g | |
870 | 870 | h | |
871 | 871 | } | |
872 | 872 | else 10 | |
873 | 873 | } | |
874 | 874 | let x = if ((size(d.payments) == 1)) | |
875 | 875 | then d.payments[0] | |
876 | 876 | else throw("Attached payment is required") | |
877 | 877 | let L = { | |
878 | 878 | let g = getInteger(this, "DevBox") | |
879 | 879 | if ($isInstanceOf(g, "Int")) | |
880 | 880 | then { | |
881 | 881 | let h = g | |
882 | 882 | h | |
883 | 883 | } | |
884 | 884 | else 0 | |
885 | 885 | } | |
886 | 886 | if (if (isDefined(x.assetId)) | |
887 | 887 | then (x.assetId == b) | |
888 | 888 | else false) | |
889 | 889 | then if ((m > 0)) | |
890 | 890 | then { | |
891 | 891 | let au = x.amount | |
892 | 892 | let f = (L + ((x.amount * 5) / 1000)) | |
893 | 893 | let aB = if ((aA == 0)) | |
894 | 894 | then 1000000000 | |
895 | 895 | else (2 * aA) | |
896 | 896 | if ((au >= aB)) | |
897 | 897 | then { | |
898 | 898 | let N = (G + ay) | |
899 | 899 | [IntegerEntry("Delay", N), IntegerEntry("DelayCost", aB), IntegerEntry("PrizeHeight", P), IntegerEntry("DevBox", f), StringEntry("HighestPushAddress", O)] | |
900 | 900 | } | |
901 | 901 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(aB)) + "TROIKAs")) | |
902 | 902 | } | |
903 | 903 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
904 | 904 | else throw("Can Use only Troika Token to Delay Reward") | |
905 | 905 | } | |
906 | 906 | ||
907 | 907 | ||
908 | 908 | ||
909 | 909 | @Callable(d) | |
910 | 910 | func ClaimPrize () = { | |
911 | 911 | let T = (toBase58String(d.caller.bytes) + "_Staking") | |
912 | 912 | let y = (toBase58String(d.caller.bytes) + "_Push") | |
913 | 913 | let E = (toBase58String(d.caller.bytes) + "_UserLastStakeBlock") | |
914 | 914 | let r = (1440 * 7) | |
915 | 915 | let u = 3 | |
916 | 916 | let aC = assetBalance(this, b) | |
917 | 917 | let i = assetBalance(this, a) | |
918 | 918 | let l = { | |
919 | 919 | let g = getInteger(this, "StakeBalance") | |
920 | 920 | if ($isInstanceOf(g, "Int")) | |
921 | 921 | then { | |
922 | 922 | let h = g | |
923 | 923 | h | |
924 | 924 | } | |
925 | 925 | else 0 | |
926 | 926 | } | |
927 | 927 | let m = { | |
928 | 928 | let g = getInteger(this, "FundBox") | |
929 | 929 | if ($isInstanceOf(g, "Int")) | |
930 | 930 | then { | |
931 | 931 | let h = g | |
932 | 932 | h | |
933 | 933 | } | |
934 | 934 | else 0 | |
935 | 935 | } | |
936 | 936 | let ae = { | |
937 | 937 | let g = getInteger(this, y) | |
938 | 938 | if ($isInstanceOf(g, "Int")) | |
939 | 939 | then { | |
940 | 940 | let h = g | |
941 | 941 | h | |
942 | 942 | } | |
943 | 943 | else 0 | |
944 | 944 | } | |
945 | 945 | let J = { | |
946 | 946 | let g = getInteger(this, E) | |
947 | 947 | if ($isInstanceOf(g, "Int")) | |
948 | 948 | then { | |
949 | 949 | let h = g | |
950 | 950 | h | |
951 | 951 | } | |
952 | 952 | else 0 | |
953 | 953 | } | |
954 | 954 | let aD = { | |
955 | 955 | let g = getInteger(this, T) | |
956 | 956 | if ($isInstanceOf(g, "Int")) | |
957 | 957 | then { | |
958 | 958 | let h = g | |
959 | 959 | h | |
960 | 960 | } | |
961 | 961 | else 0 | |
962 | 962 | } | |
963 | 963 | let G = { | |
964 | 964 | let g = getInteger(this, "Delay") | |
965 | 965 | if ($isInstanceOf(g, "Int")) | |
966 | 966 | then { | |
967 | 967 | let h = g | |
968 | 968 | h | |
969 | 969 | } | |
970 | 970 | else 0 | |
971 | 971 | } | |
972 | 972 | let aE = getStringValue(this, "HighestPushAddress") | |
973 | 973 | let aF = { | |
974 | 974 | let g = getInteger(this, "PrizeHeight") | |
975 | 975 | if ($isInstanceOf(g, "Int")) | |
976 | 976 | then { | |
977 | 977 | let h = g | |
978 | 978 | h | |
979 | 979 | } | |
980 | 980 | else 0 | |
981 | 981 | } | |
982 | 982 | let C = { | |
983 | 983 | let g = getInteger(this, "HighestPush") | |
984 | 984 | if ($isInstanceOf(g, "Int")) | |
985 | 985 | then { | |
986 | 986 | let h = g | |
987 | 987 | h | |
988 | 988 | } | |
989 | 989 | else 0 | |
990 | 990 | } | |
991 | 991 | let A = (toBase58String(d.caller.bytes) + "_refs") | |
992 | 992 | let B = { | |
993 | 993 | let g = getInteger(this, A) | |
994 | 994 | if ($isInstanceOf(g, "Int")) | |
995 | 995 | then { | |
996 | 996 | let h = g | |
997 | 997 | h | |
998 | 998 | } | |
999 | 999 | else 0 | |
1000 | 1000 | } | |
1001 | 1001 | if (if ((m == 0)) | |
1002 | 1002 | then true | |
1003 | 1003 | else (10000000000 > aC)) | |
1004 | 1004 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
1005 | 1005 | else if ((toBase58String(d.caller.bytes) != aE)) | |
1006 | 1006 | then throw("You are not the winner hence cannot claim the reward ") | |
1007 | 1007 | else if (if ((100000000 > aD)) | |
1008 | 1008 | then (r > J) | |
1009 | 1009 | else false) | |
1010 | 1010 | then throw("You have to Stake ASIMI Token to claim reward ") | |
1011 | 1011 | else if (if ((height > (aF + G))) | |
1012 | 1012 | then (ae >= C) | |
1013 | 1013 | else false) | |
1014 | 1014 | then if ((B >= u)) | |
1015 | 1015 | then [IntegerEntry(aE, m), IntegerEntry("FundBox", 0), IntegerEntry("HighestPush", 0), IntegerEntry(y, 0), StringEntry("HighestPushAddress", ""), IntegerEntry("PrizeHeight", 0), IntegerEntry("Delay", 0), IntegerEntry("DelayCost", 0), StringEntry("LastWinner", aE), IntegerEntry("LastPrize", m), ScriptTransfer(d.caller, m, a), ScriptTransfer(d.caller, 1000000000, b)] | |
1016 | 1016 | else throw((("You have to have " + toString(u)) + " referrals already staking for a minimum of 10 days to Claim the prize")) | |
1017 | 1017 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
1018 | 1018 | } | |
1019 | 1019 | ||
1020 | 1020 | ||
1021 | 1021 | ||
1022 | 1022 | @Callable(d) | |
1023 | 1023 | func Addmentor (aG) = { | |
1024 | 1024 | let aH = (toBase58String(d.caller.bytes) + "_Mentor") | |
1025 | 1025 | if ((aG != "")) | |
1026 | 1026 | then [StringEntry(aH, aG)] | |
1027 | 1027 | else throw("Mentor's Address cannot be empty") | |
1028 | 1028 | } | |
1029 | 1029 | ||
1030 | 1030 | ||
1031 | 1031 | ||
1032 | 1032 | @Callable(d) | |
1033 | 1033 | func GetLikesPackage (aI,aJ) = { | |
1034 | 1034 | let x = if ((size(d.payments) == 2)) | |
1035 | 1035 | then d.payments[0] | |
1036 | 1036 | else throw("Attached payment is required") | |
1037 | 1037 | if (if ((d.payments[0].assetId == a)) | |
1038 | 1038 | then (d.payments[1].assetId == b) | |
1039 | 1039 | else false) | |
1040 | 1040 | then if ((x.amount > c)) | |
1041 | 1041 | then [IntegerEntry((toString(aI) + "_Twitt2Like"), aJ)] | |
1042 | 1042 | else throw(("Amount should be :" + toString((x.amount / 100000000)))) | |
1043 | 1043 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
1044 | 1044 | } | |
1045 | 1045 | ||
1046 | 1046 |
github/deemru/w8io/026f985 106.55 ms ◑