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