tx · 3zAGuNHMGR9C8GVJfFy5q89Lkh1ZGwZXwqb6K6kMHqRx

3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK:  -0.02200000 Waves

2022.06.29 18:09 [2117886] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves

{ "type": 13, "id": "3zAGuNHMGR9C8GVJfFy5q89Lkh1ZGwZXwqb6K6kMHqRx", "fee": 2200000, "feeAssetId": null, "timestamp": 1656515398685, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "5LXigBstbji4YVS9SCPv9fxsMissXKWb789buk9P1v8GTVpZLngknUWMKDECjnkUtPLq8fkBX6FF5vCrA6EjykSJ" ], "script": "base64:BgIlCAISABIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBIECgIBAQMAC1N0YWtlZFRva2VuASD5rl2FqqDB81weFWSW9S5FyKYquYAb4MpXXcAlqscPUAALR292ZXJuVG9rZW4BIAFshcLXQMYuV8Rzs8ULZ07fOlzF6BxYes7P/1GRlpktABBMaWtlUGFja2FnZVByaWNlCQBoAgABAIDC1y8LAWkBC0RldldpdGhkcmF3AAQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAwkAAAIFCmN1cnJlbnRLZXkCIzNQNzRidUh0OThCbm9qRmNhUkVKWnRiOThLRHlVbVpHZW1KBAxEZXZCb3hBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwIGRGV2Qm94AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAwkAZgIAAAUMRGV2Qm94QW1vdW50CQACAQISTm90IGVub3VnaCBiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgZEZXZCb3gAAAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZ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ApAMBBQ1Ud2l0dGVyVXNlcklkAgtfVHdpdHQyTGlrZQUHVHdpdHRJZAUDbmlsCQACAQISQW1vdW50IHNob3VsZCBiZSA6CQACAQIwUGF5bWVudHMgc2hvdWxkIGJlIGJvdGggQVNJTUkgYW5kIFRST0lLQU4gdG9rZW5zABIzmZs=", "height": 2117886, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5cMSHU4vjNvkGS9J4Kb6neXkmAZVShB6XHpiQ9ifsDRw Next: GxUGLb2hgZGZKjBraoFee4fs4H4hDkmd4u7QardUtamR Diff:
OldNewDifferences
844844 else false)
845845 then if ((pmt.amount > LikePackagePrice))
846846 then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)]
847- else throw(("Amount should be :" + toString((pmt.amount / 100000000))))
847+ else throw("Amount should be :")
848848 else throw("Payments should be both ASIMI and TROIKAN tokens")
849849 }
850850
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP'
55
66 let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN'
77
88 let LikePackagePrice = (1 * 100000000)
99
1010 @Callable(i)
1111 func DevWithdraw () = {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 if ((currentKey == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ"))
1414 then {
1515 let DevBoxAmount = match getInteger(this, "DevBox") {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 if ((0 > DevBoxAmount))
2222 then throw("Not enough balance")
2323 else [IntegerEntry("DevBox", 0), ScriptTransfer(i.caller, DevBoxAmount, GovernToken)]
2424 }
2525 else throw("You cannot withdraw as your are not the Dev.")
2626 }
2727
2828
2929
3030 @Callable(i)
3131 func WithdrawWeeklyEarning () = {
3232 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
3333 let MaxDepositer = getStringValue(this, "MaxDepositer")
3434 let UserWeeklyEarnings = (toBase58String(i.caller.bytes) + "_WeekEarning")
3535 let StakeBalance = match getInteger(this, "StakeBalance") {
3636 case a: Int =>
3737 a
3838 case _ =>
3939 0
4040 }
4141 let PrizeAmount = match getInteger(this, "FundBox") {
4242 case a: Int =>
4343 a
4444 case _ =>
4545 0
4646 }
4747 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
4848 case a: Int =>
4949 a
5050 case _ =>
5151 0
5252 }
5353 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
5454 then (PrizeAmount == 0)
5555 else false)
5656 then 0
5757 else if (if ((HeightTransactFundBox == 0))
5858 then (PrizeAmount != 0)
5959 else false)
6060 then height
6161 else if (if ((HeightTransactFundBox != 0))
6262 then (PrizeAmount != 0)
6363 else false)
6464 then HeightTransactFundBox
6565 else 0
6666 let currentKey = toBase58String(i.caller.bytes)
6767 let newAmount = match getInteger(this, UserWeeklyEarnings) {
6868 case a: Int =>
6969 a
7070 case _ =>
7171 0
7272 }
7373 if ((0 > newAmount))
7474 then throw("Can't withdraw negative amount")
7575 else if ((0 > newAmount))
7676 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((newAmount / 100000000))))
7777 else [IntegerEntry(UserWeeklyEarnings, 0), IntegerEntry("PrizeHeight", PrizeHeightValue), IntegerEntry("MaxDeposit", 0), ScriptTransfer(i.caller, newAmount, StakedToken)]
7878 }
7979
8080
8181
8282 @Callable(i)
8383 func PushReward () = {
8484 let minPushBlock = 10
8585 let minStakeBlock = (7 * 1440)
8686 let DelayAfterPush = 60
8787 let WaitTime = (1440 * 1)
8888 let minref = 3
8989 let FirstPushTimer = (7 * 1440)
9090 let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken)
9191 let pmt = if ((size(i.payments) == 1))
9292 then i.payments[0]
9393 else throw("Attached payment is required")
9494 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
9595 let UserLastPushOldValue = match getInteger(this, UserPush) {
9696 case a: Int =>
9797 a
9898 case _ =>
9999 0
100100 }
101101 let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs")
102102 let UserRefsNumValue = match getInteger(this, UserRefsNum) {
103103 case a: Int =>
104104 a
105105 case _ =>
106106 0
107107 }
108108 let HighestPushValue = match getInteger(this, "HighestPush") {
109109 case a: Int =>
110110 a
111111 case _ =>
112112 0
113113 }
114114 if ((userWalletGovernBalance > pmt.amount))
115115 then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue))
116116 then (pmt.assetId == GovernToken)
117117 else false)
118118 then {
119119 let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock")
120120 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
121121 let UserStake = (toBase58String(i.caller.bytes) + "_Staking")
122122 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
123123 let StakeBalance = match getInteger(this, "StakeBalance") {
124124 case a: Int =>
125125 a
126126 case _ =>
127127 0
128128 }
129129 let PrizeAmount = match getInteger(this, "FundBox") {
130130 case a: Int =>
131131 a
132132 case _ =>
133133 0
134134 }
135135 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
136136 case a: Int =>
137137 a
138138 case _ =>
139139 0
140140 }
141141 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
142142 then (PrizeAmount == 0)
143143 else false)
144144 then 0
145145 else if (if ((HeightTransactFundBox == 0))
146146 then (PrizeAmount != 0)
147147 else false)
148148 then height
149149 else if (if ((HeightTransactFundBox != 0))
150150 then (PrizeAmount != 0)
151151 else false)
152152 then HeightTransactFundBox
153153 else 0
154154 let ActualDelay = match getInteger(this, "Delay") {
155155 case a: Int =>
156156 a
157157 case _ =>
158158 0
159159 }
160160 let HighestPushAddress = match getInteger(this, "HighestPushAddress") {
161161 case a: Int =>
162162 a
163163 case _ =>
164164 0
165165 }
166166 let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) {
167167 case a: Int =>
168168 a
169169 case _ =>
170170 0
171171 }
172172 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
173173 case a: Int =>
174174 a
175175 case _ =>
176176 0
177177 }
178178 let UserStakeValue = match getInteger(this, UserStake) {
179179 case a: Int =>
180180 a
181181 case _ =>
182182 0
183183 }
184184 let DevBoxBalance = match getInteger(this, "DevBox") {
185185 case a: Int =>
186186 a
187187 case _ =>
188188 0
189189 }
190190 let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000))
191191 let UserPushvalue = (pmt.amount + UserLastPushOldValue)
192192 let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
193193 then (HighestPushValue > 0)
194194 else false)
195195 then FirstPushTimer
196196 else (ActualDelay + DelayAfterPush)
197197 let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime)))
198198 then (HighestPushValue > 0)
199199 else false)
200200 then ""
201201 else HighestPushAddress
202202 let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime)))
203203 then (HighestPushValue > 0)
204204 else false)
205205 then height
206206 else PrizeHeightValue
207207 if (if ((UserPushvalue > 0))
208208 then ((height - UserLastStakeBlockValue) > minStakeBlock)
209209 else false)
210210 then if (((height - UserLastPushBlockValue) > minPushBlock))
211211 then if ((UserStakeValue > 0))
212212 then if ((UserPushvalue > HighestPushValue))
213213 then if ((PrizeAmount > 0))
214214 then if (if (if (if (((PrizeHeightValueNew + NewDelay) >= height))
215215 then true
216216 else (height >= ((PrizeHeightValueNew + NewDelay) + WaitTime)))
217217 then (HighestPushValue > 0)
218218 else false)
219219 then true
220220 else (HighestPushValue == 0))
221221 then if ((UserRefsNumValue >= minref))
222222 then [IntegerEntry(UserPush, UserPushvalue), StringEntry("HighestPushAddress", toBase58String(i.caller.bytes)), IntegerEntry("HighestPush", UserPushvalue), IntegerEntry(UserLastPushBlock, height), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry("Delay", NewDelay), IntegerEntry("DevBox", DevBoxAmount)]
223223 else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days, to push"))
224224 else {
225225 let txt = if ((HighestPushValue > 0))
226226 then "You cannot Push after rewarding Prize and before One day has passed after award"
227227 else "Unexpected error"
228228 throw(txt)
229229 }
230230 else throw("You cannot push before the reward is unlocked, no reward has been detected yet")
231231 else throw("Your push in troikan token, should be Higher than last Highest Push")
232232 else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp")
233233 else throw("You have to wait 10min before you can make a new Push")
234234 else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke
235235 2. Must Staked ASIMI Token for a minimum of week "))
236236 }
237237 else throw((("Can deposit only positive amounts of Troikan Token, or Check your Wallet balance in Troika, you should have more than " + toString(HighestPushValue)) + " to push"))
238238 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 !")
239239 }
240240
241241
242242
243243 @Callable(i)
244244 func Stake () = {
245245 let WaitTime = (1440 * 1)
246246 let pmt = if ((size(i.payments) == 1))
247247 then i.payments[0]
248248 else throw("Attached payment is required")
249249 if (if ((pmt.amount > 0))
250250 then (pmt.assetId == StakedToken)
251251 else false)
252252 then {
253253 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
254254 let UserAPY = (toBase58String(i.caller.bytes) + "_APY")
255255 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
256256 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
257257 let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings")
258258 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
259259 let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions")
260260 let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight")
261261 let UserWeekEarnings = (toBase58String(i.caller.bytes) + "_WeekEarning")
262262 let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) {
263263 case a: Int =>
264264 a
265265 case _ =>
266266 0
267267 }
268268 let MaxDepositer = getStringValue(this, "MaxDepositer")
269269 let MaxDepositBlock = match getInteger(this, "MaxDepositBlock") {
270270 case a: Int =>
271271 a
272272 case _ =>
273273 0
274274 }
275275 let MaxDeposit = match getInteger(this, "MaxDeposit") {
276276 case a: Int =>
277277 a
278278 case _ =>
279279 0
280280 }
281281 let MaxDepositerValue = if ((pmt.amount > MaxDeposit))
282282 then toBase58String(i.caller.bytes)
283283 else MaxDepositer
284284 let MaxDepositValue = if ((pmt.amount > MaxDeposit))
285285 then pmt.amount
286286 else MaxDeposit
287287 let MaxDepositBlockValue = if ((pmt.amount > MaxDeposit))
288288 then height
289289 else MaxDepositBlock
290290 let UserPushValue = match getInteger(this, UserPush) {
291291 case a: Int =>
292292 a
293293 case _ =>
294294 0
295295 }
296296 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
297297 case a: Int =>
298298 a
299299 case _ =>
300300 0
301301 }
302302 let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0))
303303 then height
304304 else UserLastStakeBlockValue
305305 let NewUserStakeTransactions = (UserStakeTransactions + 1)
306306 let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) {
307307 case a: Int =>
308308 a
309309 case _ =>
310310 0
311311 }
312312 let newAmountStakedToken = (currentAmountStakedToken + pmt.amount)
313313 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
314314 let StakeBalance = match getInteger(this, "StakeBalance") {
315315 case a: Int =>
316316 a
317317 case _ =>
318318 0
319319 }
320320 let StakeBalanceAmount = (StakeBalance + pmt.amount)
321321 let PrizeAmount = match getInteger(this, "FundBox") {
322322 case a: Int =>
323323 a
324324 case _ =>
325325 0
326326 }
327327 let UserWeekEarningsValue = match getInteger(this, UserWeekEarnings) {
328328 case a: Int =>
329329 a
330330 case _ =>
331331 0
332332 }
333333 let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) {
334334 case a: Int =>
335335 a
336336 case _ =>
337337 0
338338 }
339339 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
340340 case a: Int =>
341341 a
342342 case _ =>
343343 0
344344 }
345345 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
346346 then (PrizeAmount == 0)
347347 else false)
348348 then 0
349349 else if (if ((HeightTransactFundBox == 0))
350350 then (PrizeAmount != 0)
351351 else false)
352352 then height
353353 else if (if ((HeightTransactFundBox != 0))
354354 then (PrizeAmount != 0)
355355 else false)
356356 then HeightTransactFundBox
357357 else 0
358358 let ActualDelay = match getInteger(this, "Delay") {
359359 case a: Int =>
360360 a
361361 case _ =>
362362 0
363363 }
364364 let HighestPushValue = match getInteger(this, "HighestPush") {
365365 case a: Int =>
366366 a
367367 case _ =>
368368 0
369369 }
370370 let HighestPushAddress = getStringValue(this, "HighestPushAddress")
371371 let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
372372 then (HighestPushValue > 0)
373373 else false)
374374 then ""
375375 else HighestPushAddress
376376 let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
377377 then (HighestPushValue > 0)
378378 else false)
379379 then height
380380 else PrizeHeightValue
381381 if ((100000000 > GovernTokenSmartContractBalance))
382382 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
383383 else {
384384 let Reward = if ((StakeBalance == 0))
385385 then 10000
386386 else if ((NewUserStakeTransactions > 10))
387387 then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance)))
388388 else (10000 * (1 + (newAmountStakedToken / StakeBalance)))
389389 let UserAPYValue = if ((currentAmountGovernToken > 0))
390390 then ((100 * Reward) / currentAmountGovernToken)
391391 else 0
392392 let newAmountGovernToken = (currentAmountGovernToken + Reward)
393393 [IntegerEntry(UserGovernTokenKey, newAmountGovernToken), IntegerEntry(UserStakedTokenKey, newAmountStakedToken), IntegerEntry(UserStakeTransactionsKey, NewUserStakeTransactions), IntegerEntry("StakeBalance", StakeBalanceAmount), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry(UserAPY, UserAPYValue), IntegerEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), IntegerEntry(UserPush, UserPushValue), StringEntry("MaxDepositer", MaxDepositerValue), IntegerEntry("MaxDeposit", MaxDepositValue), IntegerEntry("MaxDepositBlock", MaxDepositBlockValue), StringEntry("HighestPushAddress", HighestPushAddressValue), IntegerEntry(UserWeekEarnings, UserWeekEarningsValue), ScriptTransfer(i.caller, Reward, GovernToken)]
394394 }
395395 }
396396 else throw("Can deposit only StakeToken")
397397 }
398398
399399
400400
401401 @Callable(i)
402402 func WithdrawStakedFunds (amount) = {
403403 let WaitTime = (1440 * 1)
404404 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
405405 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
406406 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
407407 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
408408 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
409409 case a: Int =>
410410 a
411411 case _ =>
412412 0
413413 }
414414 let StakeBalance = match getInteger(this, "StakeBalance") {
415415 case a: Int =>
416416 a
417417 case _ =>
418418 0
419419 }
420420 let PrizeAmount = match getInteger(this, "FundBox") {
421421 case a: Int =>
422422 a
423423 case _ =>
424424 0
425425 }
426426 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
427427 case a: Int =>
428428 a
429429 case _ =>
430430 0
431431 }
432432 let ActualDelay = match getInteger(this, "Delay") {
433433 case a: Int =>
434434 a
435435 case _ =>
436436 0
437437 }
438438 let HighestPushValue = match getInteger(this, "HighestPush") {
439439 case a: Int =>
440440 a
441441 case _ =>
442442 0
443443 }
444444 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
445445 then (PrizeAmount == 0)
446446 else false)
447447 then 0
448448 else if (if ((HeightTransactFundBox == 0))
449449 then (PrizeAmount != 0)
450450 else false)
451451 then height
452452 else if (if ((HeightTransactFundBox != 0))
453453 then (PrizeAmount != 0)
454454 else false)
455455 then HeightTransactFundBox
456456 else 0
457457 let HighestPushAddress = getStringValue(this, "HighestPushAddress")
458458 let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
459459 then (HighestPushValue > 0)
460460 else false)
461461 then ""
462462 else HighestPushAddress
463463 let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
464464 then (HighestPushValue > 0)
465465 else false)
466466 then height
467467 else PrizeHeightValue
468468 let currentKey = toBase58String(i.caller.bytes)
469469 let currentAmount = match getInteger(this, UserStakedTokenKey) {
470470 case a: Int =>
471471 a
472472 case _ =>
473473 0
474474 }
475475 let newAmount = (currentAmount - amount)
476476 let StakeBalanceAmount = (StakeBalance - amount)
477477 let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0))
478478 then 0
479479 else UserLastStakeBlockValue
480480 if ((0 > amount))
481481 then throw("Can't withdraw negative amount")
482482 else if ((0 > newAmount))
483483 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000))))
484484 else if ((100000000 > assetBalance(this, GovernToken)))
485485 then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000))))
486486 else [IntegerEntry(UserGovernTokenKey, 100000000), IntegerEntry(UserStakedTokenKey, newAmount), IntegerEntry("StakeBalance", StakeBalanceAmount), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), StringEntry("HighestPushAddress", HighestPushAddressValue), ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)]
487487 }
488488
489489
490490
491491 @Callable(i)
492492 func WithdrawBigStakeReward () = {
493493 let WaitTime = (1440 * 1)
494494 let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "_LastBigStakerRewardBlock")
495495 let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker")
496496 let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings")
497497 let LimiWithdrawReward = 10
498498 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
499499 case a: Int =>
500500 a
501501 case _ =>
502502 0
503503 }
504504 let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) {
505505 case a: Int =>
506506 a
507507 case _ =>
508508 0
509509 }
510510 let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") {
511511 case a: Int =>
512512 a
513513 case _ =>
514514 0
515515 }
516516 let PrizeAmount = match getInteger(this, "FundBox") {
517517 case a: Int =>
518518 a
519519 case _ =>
520520 0
521521 }
522522 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
523523 case a: Int =>
524524 a
525525 case _ =>
526526 0
527527 }
528528 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
529529 then (PrizeAmount == 0)
530530 else false)
531531 then 0
532532 else if (if ((HeightTransactFundBox == 0))
533533 then (PrizeAmount != 0)
534534 else false)
535535 then height
536536 else if (if ((HeightTransactFundBox != 0))
537537 then (PrizeAmount != 0)
538538 else false)
539539 then HeightTransactFundBox
540540 else 0
541541 let ActualDelay = match getInteger(this, "Delay") {
542542 case a: Int =>
543543 a
544544 case _ =>
545545 0
546546 }
547547 let HighestPushValue = match getInteger(this, "HighestPush") {
548548 case a: Int =>
549549 a
550550 case _ =>
551551 0
552552 }
553553 let HighestPushAddress = getStringValue(this, "HighestPushAddress")
554554 let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
555555 then (HighestPushValue > 0)
556556 else false)
557557 then ""
558558 else HighestPushAddress
559559 let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
560560 then (HighestPushValue > 0)
561561 else false)
562562 then height
563563 else PrizeHeightValue
564564 let currentKey = toBase58String(i.caller.bytes)
565565 let amount = match getInteger(this, BigStakerReward) {
566566 case a: Int =>
567567 a
568568 case _ =>
569569 0
570570 }
571571 let StakeBalanceAmount = (BigStakerRewardTotalValue - amount)
572572 let BigStakerRewardTax = if ((0 > ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440))))))
573573 then (1000 * 100000000)
574574 else ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440))))
575575 if ((0 > amount))
576576 then throw(((("Can't withdraw negative amount " + toString((UserGovernTokenAmount - (1000 * 100000000)))) + " ... ") + toString(amount)))
577577 else if (if (if (((1000 * 100000000) > UserGovernTokenAmount))
578578 then true
579579 else (1 > amount))
580580 then true
581581 else (0 > (UserGovernTokenAmount - BigStakerRewardTax)))
582582 then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you have: " + toString((UserGovernTokenAmount / 100000000))))
583583 else if ((StakeBalanceAmount > 0))
584584 then [IntegerEntry(BigStakerReward, 0), IntegerEntry("BigStakerRewardTotal", StakeBalanceAmount), IntegerEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), IntegerEntry("PrizeHeight", PrizeHeightValue), IntegerEntry(LastBigStakerRewardBlock, height), StringEntry("HighestPushAddress", HighestPushAddressValue), ScriptTransfer(i.caller, amount, StakedToken)]
585585 else throw("Balance Error, Total Big Stakers cannot be negative, Operation won't be authorized")
586586 }
587587
588588
589589
590590 @Callable(i)
591591 func HarvestGovernToiken (amount) = {
592592 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
593593 let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings")
594594 let StakeBalance = match getInteger(this, "StakeBalance") {
595595 case a: Int =>
596596 a
597597 case _ =>
598598 0
599599 }
600600 let PrizeAmount = match getInteger(this, "FundBox") {
601601 case a: Int =>
602602 a
603603 case _ =>
604604 0
605605 }
606606 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
607607 case a: Int =>
608608 a
609609 case _ =>
610610 0
611611 }
612612 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
613613 then (PrizeAmount == 0)
614614 else false)
615615 then 0
616616 else if (if ((HeightTransactFundBox == 0))
617617 then (PrizeAmount != 0)
618618 else false)
619619 then height
620620 else if (if ((HeightTransactFundBox != 0))
621621 then (PrizeAmount != 0)
622622 else false)
623623 then HeightTransactFundBox
624624 else 0
625625 let currentKey = toBase58String(i.caller.bytes)
626626 let currentAmount = match getInteger(this, UserGovernTokenKey) {
627627 case a: Int =>
628628 a
629629 case _ =>
630630 0
631631 }
632632 let newAmount = (currentAmount - amount)
633633 if ((0 > amount))
634634 then throw("Can't withdraw negative amount")
635635 else if ((0 > newAmount))
636636 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000))))
637637 else [IntegerEntry(UserGovernTokenKey, newAmount), IntegerEntry("PrizeHeight", PrizeHeightValue), ScriptTransfer(i.caller, amount, GovernToken)]
638638 }
639639
640640
641641
642642 @Callable(i)
643643 func delayprize () = {
644644 let DelayDays = (1440 * 1)
645645 let WaitTime = (1440 * 1)
646646 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
647647 let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken)
648648 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
649649 let StakeBalance = match getInteger(this, "StakeBalance") {
650650 case a: Int =>
651651 a
652652 case _ =>
653653 0
654654 }
655655 let PrizeAmount = match getInteger(this, "FundBox") {
656656 case a: Int =>
657657 a
658658 case _ =>
659659 0
660660 }
661661 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
662662 case a: Int =>
663663 a
664664 case _ =>
665665 0
666666 }
667667 let ActualDelay = match getInteger(this, "Delay") {
668668 case a: Int =>
669669 a
670670 case _ =>
671671 0
672672 }
673673 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
674674 then (PrizeAmount == 0)
675675 else false)
676676 then 0
677677 else if (if ((HeightTransactFundBox == 0))
678678 then (PrizeAmount != 0)
679679 else false)
680680 then height
681681 else if (if ((HeightTransactFundBox != 0))
682682 then (PrizeAmount != 0)
683683 else false)
684684 then HeightTransactFundBox
685685 else 0
686686 let HighestPushValue = match getInteger(this, "HighestPush") {
687687 case a: Int =>
688688 a
689689 case _ =>
690690 0
691691 }
692692 let HighestPushAddress = getStringValue(this, "HighestPushAddress")
693693 let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
694694 then (HighestPushValue > 0)
695695 else false)
696696 then ""
697697 else HighestPushAddress
698698 let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime)))
699699 then (HighestPushValue > 0)
700700 else false)
701701 then height
702702 else PrizeHeightValue
703703 let ActualDelayCost = match getInteger(this, "DelayCost") {
704704 case a: Int =>
705705 a
706706 case _ =>
707707 10
708708 }
709709 let pmt = if ((size(i.payments) == 1))
710710 then i.payments[0]
711711 else throw("Attached payment is required")
712712 let DevBoxBalance = match getInteger(this, "DevBox") {
713713 case a: Int =>
714714 a
715715 case _ =>
716716 0
717717 }
718718 if (if (isDefined(pmt.assetId))
719719 then (pmt.assetId == GovernToken)
720720 else false)
721721 then if ((PrizeAmount > 0))
722722 then {
723723 let UserGovernTokenAmount = pmt.amount
724724 let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000))
725725 let NewDelayCost = if ((ActualDelayCost == 0))
726726 then 1000000000
727727 else (2 * ActualDelayCost)
728728 if ((UserGovernTokenAmount >= NewDelayCost))
729729 then {
730730 let NewDelay = (ActualDelay + DelayDays)
731731 [IntegerEntry("Delay", NewDelay), IntegerEntry("DelayCost", NewDelayCost), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry("DevBox", DevBoxAmount), StringEntry("HighestPushAddress", HighestPushAddressValue)]
732732 }
733733 else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs"))
734734 }
735735 else throw("You cannot delay the reward before reward is received! Please wait until a reward is available")
736736 else throw("Can Use only Troika Token to Delay Reward")
737737 }
738738
739739
740740
741741 @Callable(i)
742742 func ClaimPrize () = {
743743 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
744744 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
745745 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
746746 let minStakeBlock = (1440 * 7)
747747 let minref = 3
748748 let ContractGovTokenBalance = assetBalance(this, GovernToken)
749749 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
750750 let StakeBalance = match getInteger(this, "StakeBalance") {
751751 case a: Int =>
752752 a
753753 case _ =>
754754 0
755755 }
756756 let PrizeAmount = match getInteger(this, "FundBox") {
757757 case a: Int =>
758758 a
759759 case _ =>
760760 0
761761 }
762762 let UserPushValue = match getInteger(this, UserPush) {
763763 case a: Int =>
764764 a
765765 case _ =>
766766 0
767767 }
768768 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
769769 case a: Int =>
770770 a
771771 case _ =>
772772 0
773773 }
774774 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
775775 case a: Int =>
776776 a
777777 case _ =>
778778 0
779779 }
780780 let ActualDelay = match getInteger(this, "Delay") {
781781 case a: Int =>
782782 a
783783 case _ =>
784784 0
785785 }
786786 let PrizeWinner = getStringValue(this, "HighestPushAddress")
787787 let PrizeHeight = match getInteger(this, "PrizeHeight") {
788788 case a: Int =>
789789 a
790790 case _ =>
791791 0
792792 }
793793 let HighestPushValue = match getInteger(this, "HighestPush") {
794794 case a: Int =>
795795 a
796796 case _ =>
797797 0
798798 }
799799 let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs")
800800 let UserRefsNumValue = match getInteger(this, UserRefsNum) {
801801 case a: Int =>
802802 a
803803 case _ =>
804804 0
805805 }
806806 if (if ((PrizeAmount == 0))
807807 then true
808808 else (10000000000 > ContractGovTokenBalance))
809809 then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)")
810810 else if ((toBase58String(i.caller.bytes) != PrizeWinner))
811811 then throw("You are not the winner hence cannot claim the reward ")
812812 else if (if ((100000000 > UserStakedTokenAmount))
813813 then (minStakeBlock > UserLastStakeBlockValue)
814814 else false)
815815 then throw("You have to Stake ASIMI Token to claim reward ")
816816 else if (if ((height > (PrizeHeight + ActualDelay)))
817817 then (UserPushValue >= HighestPushValue)
818818 else false)
819819 then if ((UserRefsNumValue >= minref))
820820 then [IntegerEntry(PrizeWinner, PrizeAmount), IntegerEntry("FundBox", 0), IntegerEntry("HighestPush", 0), IntegerEntry(UserPush, 0), StringEntry("HighestPushAddress", ""), IntegerEntry("PrizeHeight", 0), IntegerEntry("Delay", 0), IntegerEntry("DelayCost", 0), StringEntry("LastWinner", PrizeWinner), IntegerEntry("LastPrize", PrizeAmount), ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 1000000000, GovernToken)]
821821 else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days to Claim the prize"))
822822 else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward")
823823 }
824824
825825
826826
827827 @Callable(i)
828828 func Addmentor (Mentor) = {
829829 let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor")
830830 if ((Mentor != ""))
831831 then [StringEntry(UserMentorAddress, Mentor)]
832832 else throw("Mentor's Address cannot be empty")
833833 }
834834
835835
836836
837837 @Callable(i)
838838 func GetLikesPackage (TwitterUserId,TwittId) = {
839839 let pmt = if ((size(i.payments) == 2))
840840 then i.payments[0]
841841 else throw("Attached payment is required")
842842 if (if ((i.payments[0].assetId == StakedToken))
843843 then (i.payments[1].assetId == GovernToken)
844844 else false)
845845 then if ((pmt.amount > LikePackagePrice))
846846 then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)]
847- else throw(("Amount should be :" + toString((pmt.amount / 100000000))))
847+ else throw("Amount should be :")
848848 else throw("Payments should be both ASIMI and TROIKAN tokens")
849849 }
850850
851851

github/deemru/w8io/026f985 
85.92 ms