tx · Guwa1N5APTsD8CAJYcr7UmFAtKtXqoTqpwt95Aq7Lsz5 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.01000000 Waves 2021.07.25 14:15 [1629095] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "Guwa1N5APTsD8CAJYcr7UmFAtKtXqoTqpwt95Aq7Lsz5", "fee": 1000000, "feeAssetId": null, "timestamp": 1627211803295, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "3yVPYG8AD49raCNxritvvuhSF1RiGyienzRU4q8uHHcgFtp2KgUGnzcoStLuDYLCKjsHsnaML5CZgC8gBNiTy2Rw" ], "script": "base64:AAIDAAAAAAAABw0IARIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBoHCgJhMRIBaRoQCgJhMhIKY3VycmVudEtleRoRCgJhMxILR292ZXJuVG9rZW4aEgoCYTQSDERldkJveEFtb3VudBoNCgJhNRIHJG1hdGNoMBoHCgJhNhIBYRoRCgJhNxILU3Rha2VkVG9rZW4aEgoCYTgSDG1pblB1c2hCbG9jaxoTCgJhORINbWluU3Rha2VCbG9jaxoUCgJiMRIORGVsYXlBZnRlclB1c2gaDgoCYjISCFdhaXRUaW1lGgwKAmIzEgZtaW5yZWYaHQoCYjQSF3VzZXJXYWxsZXRHb3Zlcm5CYWxhbmNlGgkKAmI1EgNwbXQaDgoCYjYSCFVzZXJQdXNoGhoKAmI3EhRVc2VyTGFzdFB1c2hPbGRWYWx1ZRoRCgJiOBILVXNlclJlZnNOdW0aFgoCYjkSEFVzZXJSZWZzTnVtVmFsdWUaFgoCYzESEEhpZ2hlc3RQdXNoVmFsdWUaFwoCYzISEVVzZXJMYXN0UHVzaEJsb2NrGhgKAmMzEhJVc2VyTGFzdFN0YWtlQmxvY2sa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OU2NyaXB0VHJhbnNmZXIAAAADCAUAAAACYTEAAAAGY2FsbGVyBQAAAAJjNwUAAAACYTcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAmExAAAABmNhbGxlcgAAAAAAO5rKAAUAAAACYTMFAAAAA25pbAkAAAIAAAABAgAAAFlZb3UgaGF2ZSB0byBoYXZlIDEwIHJlZmVycmFscyBhbHJlYWR5IHN0YWtpbmcgZm9yIGEgbWluaW11bSBvZiAxMCBkYXlzIHRvIENsYWltIHRoZSBwcml6ZQkAAAIAAAABAgAAAGFZb3UgaGF2ZSB0byBiZSB0aGUgdXNlciB3aXRoIHRoZSBoaWdoZXN0IFB1c2ggYW5kIHdhaXQgdGlsbCBjb3VudG93biBpcyBmaW5pc2hlZCwgdG8gY2xhaW0gUmV3YXJkAAAAAmExAQAAAAlBZGRtZW50b3IAAAABAAAAAmkzBAAAAAJhNwEAAAAgtdEoYbzmBKc83jS/KKdye173/DgIlmcoGG447AQsIbIEAAAAAmEzAQAAACAQgPg4uhu9buXgRp+zjv1718k6u+xhGgBJPw0oxb5duQQAAAACaTQJAAEsAAAAAgkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwIAAAAHX01lbnRvcgMJAQAAAAIhPQAAAAIFAAAAAmkzAgAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAAmk0BQAAAAJpMwUAAAADbmlsCQAAAgAAAAECAAAAIE1lbnRvcidzIEFkZHJlc3MgY2Fubm90IGJlIGVtcHR5AAAAAMcKSBM=", "height": 1629095, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9XdmtBzhbtuE6vDfMLiZSPTocEuye5JhMAyHU39Zw7A9 Next: 26VYd4Gz6diGzEvmHd8dEoK6ND7iqBP4hGytUuGUFCGw Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | func PushReward () = { | |
29 | 29 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
30 | 30 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
31 | - | let minPushBlock = | |
32 | - | let minStakeBlock = ( | |
33 | - | let DelayAfterPush = | |
34 | - | let WaitTime = | |
31 | + | let minPushBlock = 10 | |
32 | + | let minStakeBlock = (7 * 1440) | |
33 | + | let DelayAfterPush = 60 | |
34 | + | let WaitTime = 1440 | |
35 | 35 | let minref = 0 | |
36 | 36 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
37 | 37 | let pmt = extract(i.payment) | |
101 | 101 | case _ => | |
102 | 102 | 0 | |
103 | 103 | } | |
104 | - | let NewDelay = (ActualDelay + DelayAfterPush) | |
105 | 104 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
106 | 105 | case a: Int => | |
107 | 106 | a | |
134 | 133 | } | |
135 | 134 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
136 | 135 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
136 | + | let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
137 | + | then (HighestPushValue > 0) | |
138 | + | else false) | |
139 | + | then 0 | |
140 | + | else (ActualDelay + DelayAfterPush) | |
137 | 141 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
138 | 142 | then (HighestPushValue > 0) | |
139 | 143 | else false) | |
198 | 202 | case _ => | |
199 | 203 | 0 | |
200 | 204 | } | |
205 | + | let MaxStakedDepositValue = match getInteger(this, "MaxStakedDepositValue") { | |
206 | + | case a: Int => | |
207 | + | a | |
208 | + | case _ => | |
209 | + | 0 | |
210 | + | } | |
211 | + | let MaxStakedDepositNewValue = if ((pmt.amount > MaxStakedDepositValue)) | |
212 | + | then pmt.amount | |
213 | + | else MaxStakedDepositValue | |
201 | 214 | let UserPushValue = match getInteger(this, UserPush) { | |
202 | 215 | case a: Int => | |
203 | 216 | a | |
272 | 285 | then ((100 * Reward) / currentAmountGovernToken) | |
273 | 286 | else 0 | |
274 | 287 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
275 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
288 | + | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue), DataEntry("MaxStakedDepositValue", MaxStakedDepositNewValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
276 | 289 | } | |
277 | 290 | } | |
278 | 291 | else throw("Can deposit only StakeToken") | |
356 | 369 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
357 | 370 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
358 | 371 | let LimiWithdrawReward = 10 | |
359 | - | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
360 | - | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
361 | - | case a: Int => | |
362 | - | a | |
363 | - | case _ => | |
364 | - | 0 | |
365 | - | } | |
366 | 372 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
367 | 373 | case a: Int => | |
368 | 374 | a | |
375 | 381 | case _ => | |
376 | 382 | 0 | |
377 | 383 | } | |
378 | - | let | |
384 | + | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
379 | 385 | case a: Int => | |
380 | 386 | a | |
381 | 387 | case _ => | |
413 | 419 | case _ => | |
414 | 420 | 0 | |
415 | 421 | } | |
416 | - | let StakeBalanceAmount = (BigStakersBalance - amount) | |
417 | - | let NewAmountStakedToken = (currentAmountStakedToken + amount) | |
422 | + | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
418 | 423 | let BigStakerRewardTax = if (((height - LastBigStakerRewardBlockValue) >= LimiWithdrawReward)) | |
419 | 424 | then (1 * 100000000) | |
420 | - | else if (((height - LastBigStakerRewardBlockValue) == 0)) | |
421 | - | then UserGovernTokenAmount | |
422 | - | else (((UserGovernTokenAmount / 100) * LimiWithdrawReward) / (height - LastBigStakerRewardBlockValue)) | |
425 | + | else (((UserGovernTokenAmount / 100) * LimiWithdrawReward) / (height - LastBigStakerRewardBlockValue)) | |
423 | 426 | if ((0 > amount)) | |
424 | 427 | then throw("Can't withdraw negative amount ") | |
425 | - | else if (((1 * 100000000) > UserGovernTokenAmount)) | |
426 | - | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 300 Troikans, you have: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
427 | - | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakersBalance", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserStakedTokenKey, NewAmountStakedToken), DataEntry(LastBigStakerRewardBlock, height)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
428 | + | else if (((1000 * 100000000) > UserGovernTokenAmount)) | |
429 | + | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
430 | + | else if ((BigStakerRewardTax > (1 * 100000000))) | |
431 | + | then throw(("Be careful it will cost you: " + toString((BigStakerRewardTax / 100000000)))) | |
432 | + | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakerRewardTotal", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(LastBigStakerRewardBlock, height)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
428 | 433 | } | |
429 | 434 | ||
430 | 435 | ||
487 | 492 | func delayprize () = { | |
488 | 493 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
489 | 494 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
490 | - | let DelayDays = (1 * | |
495 | + | let DelayDays = (1 * 1440) | |
491 | 496 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
492 | 497 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
493 | 498 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func DevWithdraw () = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | 10 | if ((currentKey == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ")) | |
11 | 11 | then { | |
12 | 12 | let DevBoxAmount = match getInteger(this, "DevBox") { | |
13 | 13 | case a: Int => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | 0 | |
17 | 17 | } | |
18 | 18 | if ((0 > DevBoxAmount)) | |
19 | 19 | then throw("Not enough balance") | |
20 | 20 | else ScriptResult(WriteSet([DataEntry("DevBox", 0)]), TransferSet([ScriptTransfer(i.caller, DevBoxAmount, GovernToken)])) | |
21 | 21 | } | |
22 | 22 | else throw("You cannot withdraw as your are not the Dev.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func PushReward () = { | |
29 | 29 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
30 | 30 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
31 | - | let minPushBlock = | |
32 | - | let minStakeBlock = ( | |
33 | - | let DelayAfterPush = | |
34 | - | let WaitTime = | |
31 | + | let minPushBlock = 10 | |
32 | + | let minStakeBlock = (7 * 1440) | |
33 | + | let DelayAfterPush = 60 | |
34 | + | let WaitTime = 1440 | |
35 | 35 | let minref = 0 | |
36 | 36 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
37 | 37 | let pmt = extract(i.payment) | |
38 | 38 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
39 | 39 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
40 | 40 | case a: Int => | |
41 | 41 | a | |
42 | 42 | case _ => | |
43 | 43 | 0 | |
44 | 44 | } | |
45 | 45 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
46 | 46 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
47 | 47 | case a: Int => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | 0 | |
51 | 51 | } | |
52 | 52 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
53 | 53 | case a: Int => | |
54 | 54 | a | |
55 | 55 | case _ => | |
56 | 56 | 0 | |
57 | 57 | } | |
58 | 58 | if ((userWalletGovernBalance > pmt.amount)) | |
59 | 59 | then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue)) | |
60 | 60 | then (pmt.assetId == GovernToken) | |
61 | 61 | else false) | |
62 | 62 | then { | |
63 | 63 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
64 | 64 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
65 | 65 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
66 | 66 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
67 | 67 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
68 | 68 | case a: Int => | |
69 | 69 | a | |
70 | 70 | case _ => | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | let PrizeAmount = match getInteger(this, "FundBox") { | |
74 | 74 | case a: Int => | |
75 | 75 | a | |
76 | 76 | case _ => | |
77 | 77 | 0 | |
78 | 78 | } | |
79 | 79 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
80 | 80 | case a: Int => | |
81 | 81 | a | |
82 | 82 | case _ => | |
83 | 83 | 0 | |
84 | 84 | } | |
85 | 85 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
86 | 86 | then (PrizeAmount == 0) | |
87 | 87 | else false) | |
88 | 88 | then 0 | |
89 | 89 | else if (if ((HeightTransactFundBox == 0)) | |
90 | 90 | then (PrizeAmount != 0) | |
91 | 91 | else false) | |
92 | 92 | then height | |
93 | 93 | else if (if ((HeightTransactFundBox != 0)) | |
94 | 94 | then (PrizeAmount != 0) | |
95 | 95 | else false) | |
96 | 96 | then HeightTransactFundBox | |
97 | 97 | else 0 | |
98 | 98 | let ActualDelay = match getInteger(this, "Delay") { | |
99 | 99 | case a: Int => | |
100 | 100 | a | |
101 | 101 | case _ => | |
102 | 102 | 0 | |
103 | 103 | } | |
104 | - | let NewDelay = (ActualDelay + DelayAfterPush) | |
105 | 104 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
106 | 105 | case a: Int => | |
107 | 106 | a | |
108 | 107 | case _ => | |
109 | 108 | 0 | |
110 | 109 | } | |
111 | 110 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
112 | 111 | case a: Int => | |
113 | 112 | a | |
114 | 113 | case _ => | |
115 | 114 | 0 | |
116 | 115 | } | |
117 | 116 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
118 | 117 | case a: Int => | |
119 | 118 | a | |
120 | 119 | case _ => | |
121 | 120 | 0 | |
122 | 121 | } | |
123 | 122 | let UserStakeValue = match getInteger(this, UserStake) { | |
124 | 123 | case a: Int => | |
125 | 124 | a | |
126 | 125 | case _ => | |
127 | 126 | 0 | |
128 | 127 | } | |
129 | 128 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
130 | 129 | case a: Int => | |
131 | 130 | a | |
132 | 131 | case _ => | |
133 | 132 | 0 | |
134 | 133 | } | |
135 | 134 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
136 | 135 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
136 | + | let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
137 | + | then (HighestPushValue > 0) | |
138 | + | else false) | |
139 | + | then 0 | |
140 | + | else (ActualDelay + DelayAfterPush) | |
137 | 141 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
138 | 142 | then (HighestPushValue > 0) | |
139 | 143 | else false) | |
140 | 144 | then height | |
141 | 145 | else PrizeHeightValue | |
142 | 146 | if (if ((UserPushvalue > 0)) | |
143 | 147 | then ((height - UserLastStakeBlockValue) > minStakeBlock) | |
144 | 148 | else false) | |
145 | 149 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
146 | 150 | then if ((UserStakeValue > 0)) | |
147 | 151 | then if ((UserPushvalue > HighestPushValue)) | |
148 | 152 | then if ((PrizeAmount > 0)) | |
149 | 153 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) > height)) | |
150 | 154 | then true | |
151 | 155 | else (height > ((PrizeHeightValueNew + NewDelay) + WaitTime))) | |
152 | 156 | then (HighestPushValue > 0) | |
153 | 157 | else false) | |
154 | 158 | then true | |
155 | 159 | else (HighestPushValue == 0)) | |
156 | 160 | then if ((UserRefsNumValue >= minref)) | |
157 | 161 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastPushBlock, height), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry("Delay", NewDelay), DataEntry("DevBox", DevBoxAmount)]) | |
158 | 162 | else throw("You have to have 10 referrals already staking for a minimum of 10 days, to push") | |
159 | 163 | else { | |
160 | 164 | let txt = if ((HighestPushValue > 0)) | |
161 | 165 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
162 | 166 | else "Unexpected error" | |
163 | 167 | throw(txt) | |
164 | 168 | } | |
165 | 169 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
166 | 170 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
167 | 171 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
168 | 172 | else throw("You have to wait 10min before you can make a new Push") | |
169 | 173 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
170 | 174 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
171 | 175 | } | |
172 | 176 | 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")) | |
173 | 177 | 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 !") | |
174 | 178 | } | |
175 | 179 | ||
176 | 180 | ||
177 | 181 | ||
178 | 182 | @Callable(i) | |
179 | 183 | func Stake () = { | |
180 | 184 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
181 | 185 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
182 | 186 | let pmt = extract(i.payment) | |
183 | 187 | if (if ((pmt.amount > 0)) | |
184 | 188 | then (pmt.assetId == StakedToken) | |
185 | 189 | else false) | |
186 | 190 | then { | |
187 | 191 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
188 | 192 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
189 | 193 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
190 | 194 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
191 | 195 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
192 | 196 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
193 | 197 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
194 | 198 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
195 | 199 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
196 | 200 | case a: Int => | |
197 | 201 | a | |
198 | 202 | case _ => | |
199 | 203 | 0 | |
200 | 204 | } | |
205 | + | let MaxStakedDepositValue = match getInteger(this, "MaxStakedDepositValue") { | |
206 | + | case a: Int => | |
207 | + | a | |
208 | + | case _ => | |
209 | + | 0 | |
210 | + | } | |
211 | + | let MaxStakedDepositNewValue = if ((pmt.amount > MaxStakedDepositValue)) | |
212 | + | then pmt.amount | |
213 | + | else MaxStakedDepositValue | |
201 | 214 | let UserPushValue = match getInteger(this, UserPush) { | |
202 | 215 | case a: Int => | |
203 | 216 | a | |
204 | 217 | case _ => | |
205 | 218 | 0 | |
206 | 219 | } | |
207 | 220 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
208 | 221 | case a: Int => | |
209 | 222 | a | |
210 | 223 | case _ => | |
211 | 224 | 0 | |
212 | 225 | } | |
213 | 226 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
214 | 227 | then height | |
215 | 228 | else UserLastStakeBlockValue | |
216 | 229 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
217 | 230 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
218 | 231 | case a: Int => | |
219 | 232 | a | |
220 | 233 | case _ => | |
221 | 234 | 0 | |
222 | 235 | } | |
223 | 236 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
224 | 237 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
225 | 238 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
226 | 239 | case a: Int => | |
227 | 240 | a | |
228 | 241 | case _ => | |
229 | 242 | 0 | |
230 | 243 | } | |
231 | 244 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
232 | 245 | let PrizeAmount = match getInteger(this, "FundBox") { | |
233 | 246 | case a: Int => | |
234 | 247 | a | |
235 | 248 | case _ => | |
236 | 249 | 0 | |
237 | 250 | } | |
238 | 251 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
239 | 252 | case a: Int => | |
240 | 253 | a | |
241 | 254 | case _ => | |
242 | 255 | 0 | |
243 | 256 | } | |
244 | 257 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
245 | 258 | case a: Int => | |
246 | 259 | a | |
247 | 260 | case _ => | |
248 | 261 | 0 | |
249 | 262 | } | |
250 | 263 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
251 | 264 | then (PrizeAmount == 0) | |
252 | 265 | else false) | |
253 | 266 | then 0 | |
254 | 267 | else if (if ((HeightTransactFundBox == 0)) | |
255 | 268 | then (PrizeAmount != 0) | |
256 | 269 | else false) | |
257 | 270 | then height | |
258 | 271 | else if (if ((HeightTransactFundBox != 0)) | |
259 | 272 | then (PrizeAmount != 0) | |
260 | 273 | else false) | |
261 | 274 | then HeightTransactFundBox | |
262 | 275 | else 0 | |
263 | 276 | if ((100000000 > GovernTokenSmartContractBalance)) | |
264 | 277 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
265 | 278 | else { | |
266 | 279 | let Reward = if ((StakeBalance == 0)) | |
267 | 280 | then 10000 | |
268 | 281 | else if ((NewUserStakeTransactions > 10)) | |
269 | 282 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
270 | 283 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
271 | 284 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
272 | 285 | then ((100 * Reward) / currentAmountGovernToken) | |
273 | 286 | else 0 | |
274 | 287 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
275 | - | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
288 | + | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue), DataEntry("MaxStakedDepositValue", MaxStakedDepositNewValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
276 | 289 | } | |
277 | 290 | } | |
278 | 291 | else throw("Can deposit only StakeToken") | |
279 | 292 | } | |
280 | 293 | ||
281 | 294 | ||
282 | 295 | ||
283 | 296 | @Callable(i) | |
284 | 297 | func WithdrawStakedFunds (amount) = { | |
285 | 298 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
286 | 299 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
287 | 300 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
288 | 301 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
289 | 302 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
290 | 303 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
291 | 304 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
292 | 305 | case a: Int => | |
293 | 306 | a | |
294 | 307 | case _ => | |
295 | 308 | 0 | |
296 | 309 | } | |
297 | 310 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
298 | 311 | case a: Int => | |
299 | 312 | a | |
300 | 313 | case _ => | |
301 | 314 | 0 | |
302 | 315 | } | |
303 | 316 | let PrizeAmount = match getInteger(this, "FundBox") { | |
304 | 317 | case a: Int => | |
305 | 318 | a | |
306 | 319 | case _ => | |
307 | 320 | 0 | |
308 | 321 | } | |
309 | 322 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
310 | 323 | case a: Int => | |
311 | 324 | a | |
312 | 325 | case _ => | |
313 | 326 | 0 | |
314 | 327 | } | |
315 | 328 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
316 | 329 | then (PrizeAmount == 0) | |
317 | 330 | else false) | |
318 | 331 | then 0 | |
319 | 332 | else if (if ((HeightTransactFundBox == 0)) | |
320 | 333 | then (PrizeAmount != 0) | |
321 | 334 | else false) | |
322 | 335 | then height | |
323 | 336 | else if (if ((HeightTransactFundBox != 0)) | |
324 | 337 | then (PrizeAmount != 0) | |
325 | 338 | else false) | |
326 | 339 | then HeightTransactFundBox | |
327 | 340 | else 0 | |
328 | 341 | let currentKey = toBase58String(i.caller.bytes) | |
329 | 342 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
330 | 343 | case a: Int => | |
331 | 344 | a | |
332 | 345 | case _ => | |
333 | 346 | 0 | |
334 | 347 | } | |
335 | 348 | let newAmount = (currentAmount - amount) | |
336 | 349 | let StakeBalanceAmount = (StakeBalance - amount) | |
337 | 350 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
338 | 351 | then 0 | |
339 | 352 | else UserLastStakeBlockValue | |
340 | 353 | if ((0 > amount)) | |
341 | 354 | then throw("Can't withdraw negative amount") | |
342 | 355 | else if ((0 > newAmount)) | |
343 | 356 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
344 | 357 | else if ((100000000 > assetBalance(this, GovernToken))) | |
345 | 358 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
346 | 359 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
347 | 360 | } | |
348 | 361 | ||
349 | 362 | ||
350 | 363 | ||
351 | 364 | @Callable(i) | |
352 | 365 | func WithdrawBigStakeReward () = { | |
353 | 366 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
354 | 367 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
355 | 368 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "LastBigStakerRewardBlock") | |
356 | 369 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
357 | 370 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
358 | 371 | let LimiWithdrawReward = 10 | |
359 | - | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
360 | - | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
361 | - | case a: Int => | |
362 | - | a | |
363 | - | case _ => | |
364 | - | 0 | |
365 | - | } | |
366 | 372 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
367 | 373 | case a: Int => | |
368 | 374 | a | |
369 | 375 | case _ => | |
370 | 376 | 0 | |
371 | 377 | } | |
372 | 378 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
373 | 379 | case a: Int => | |
374 | 380 | a | |
375 | 381 | case _ => | |
376 | 382 | 0 | |
377 | 383 | } | |
378 | - | let | |
384 | + | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
379 | 385 | case a: Int => | |
380 | 386 | a | |
381 | 387 | case _ => | |
382 | 388 | 0 | |
383 | 389 | } | |
384 | 390 | let PrizeAmount = match getInteger(this, "FundBox") { | |
385 | 391 | case a: Int => | |
386 | 392 | a | |
387 | 393 | case _ => | |
388 | 394 | 0 | |
389 | 395 | } | |
390 | 396 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
391 | 397 | case a: Int => | |
392 | 398 | a | |
393 | 399 | case _ => | |
394 | 400 | 0 | |
395 | 401 | } | |
396 | 402 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
397 | 403 | then (PrizeAmount == 0) | |
398 | 404 | else false) | |
399 | 405 | then 0 | |
400 | 406 | else if (if ((HeightTransactFundBox == 0)) | |
401 | 407 | then (PrizeAmount != 0) | |
402 | 408 | else false) | |
403 | 409 | then height | |
404 | 410 | else if (if ((HeightTransactFundBox != 0)) | |
405 | 411 | then (PrizeAmount != 0) | |
406 | 412 | else false) | |
407 | 413 | then HeightTransactFundBox | |
408 | 414 | else 0 | |
409 | 415 | let currentKey = toBase58String(i.caller.bytes) | |
410 | 416 | let amount = match getInteger(this, BigStakerReward) { | |
411 | 417 | case a: Int => | |
412 | 418 | a | |
413 | 419 | case _ => | |
414 | 420 | 0 | |
415 | 421 | } | |
416 | - | let StakeBalanceAmount = (BigStakersBalance - amount) | |
417 | - | let NewAmountStakedToken = (currentAmountStakedToken + amount) | |
422 | + | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
418 | 423 | let BigStakerRewardTax = if (((height - LastBigStakerRewardBlockValue) >= LimiWithdrawReward)) | |
419 | 424 | then (1 * 100000000) | |
420 | - | else if (((height - LastBigStakerRewardBlockValue) == 0)) | |
421 | - | then UserGovernTokenAmount | |
422 | - | else (((UserGovernTokenAmount / 100) * LimiWithdrawReward) / (height - LastBigStakerRewardBlockValue)) | |
425 | + | else (((UserGovernTokenAmount / 100) * LimiWithdrawReward) / (height - LastBigStakerRewardBlockValue)) | |
423 | 426 | if ((0 > amount)) | |
424 | 427 | then throw("Can't withdraw negative amount ") | |
425 | - | else if (((1 * 100000000) > UserGovernTokenAmount)) | |
426 | - | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 300 Troikans, you have: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
427 | - | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakersBalance", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserStakedTokenKey, NewAmountStakedToken), DataEntry(LastBigStakerRewardBlock, height)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
428 | + | else if (((1000 * 100000000) > UserGovernTokenAmount)) | |
429 | + | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
430 | + | else if ((BigStakerRewardTax > (1 * 100000000))) | |
431 | + | then throw(("Be careful it will cost you: " + toString((BigStakerRewardTax / 100000000)))) | |
432 | + | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakerRewardTotal", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(LastBigStakerRewardBlock, height)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
428 | 433 | } | |
429 | 434 | ||
430 | 435 | ||
431 | 436 | ||
432 | 437 | @Callable(i) | |
433 | 438 | func HarvestGovernToiken (amount) = { | |
434 | 439 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
435 | 440 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
436 | 441 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
437 | 442 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
438 | 443 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
439 | 444 | case a: Int => | |
440 | 445 | a | |
441 | 446 | case _ => | |
442 | 447 | 0 | |
443 | 448 | } | |
444 | 449 | let PrizeAmount = match getInteger(this, "FundBox") { | |
445 | 450 | case a: Int => | |
446 | 451 | a | |
447 | 452 | case _ => | |
448 | 453 | 0 | |
449 | 454 | } | |
450 | 455 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
451 | 456 | case a: Int => | |
452 | 457 | a | |
453 | 458 | case _ => | |
454 | 459 | 0 | |
455 | 460 | } | |
456 | 461 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
457 | 462 | then (PrizeAmount == 0) | |
458 | 463 | else false) | |
459 | 464 | then 0 | |
460 | 465 | else if (if ((HeightTransactFundBox == 0)) | |
461 | 466 | then (PrizeAmount != 0) | |
462 | 467 | else false) | |
463 | 468 | then height | |
464 | 469 | else if (if ((HeightTransactFundBox != 0)) | |
465 | 470 | then (PrizeAmount != 0) | |
466 | 471 | else false) | |
467 | 472 | then HeightTransactFundBox | |
468 | 473 | else 0 | |
469 | 474 | let currentKey = toBase58String(i.caller.bytes) | |
470 | 475 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
471 | 476 | case a: Int => | |
472 | 477 | a | |
473 | 478 | case _ => | |
474 | 479 | 0 | |
475 | 480 | } | |
476 | 481 | let newAmount = (currentAmount - amount) | |
477 | 482 | if ((0 > amount)) | |
478 | 483 | then throw("Can't withdraw negative amount") | |
479 | 484 | else if ((0 > newAmount)) | |
480 | 485 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
481 | 486 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
482 | 487 | } | |
483 | 488 | ||
484 | 489 | ||
485 | 490 | ||
486 | 491 | @Callable(i) | |
487 | 492 | func delayprize () = { | |
488 | 493 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
489 | 494 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
490 | - | let DelayDays = (1 * | |
495 | + | let DelayDays = (1 * 1440) | |
491 | 496 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
492 | 497 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
493 | 498 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
494 | 499 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
495 | 500 | case a: Int => | |
496 | 501 | a | |
497 | 502 | case _ => | |
498 | 503 | 0 | |
499 | 504 | } | |
500 | 505 | let PrizeAmount = match getInteger(this, "FundBox") { | |
501 | 506 | case a: Int => | |
502 | 507 | a | |
503 | 508 | case _ => | |
504 | 509 | 0 | |
505 | 510 | } | |
506 | 511 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
507 | 512 | case a: Int => | |
508 | 513 | a | |
509 | 514 | case _ => | |
510 | 515 | 0 | |
511 | 516 | } | |
512 | 517 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
513 | 518 | then (PrizeAmount == 0) | |
514 | 519 | else false) | |
515 | 520 | then 0 | |
516 | 521 | else if (if ((HeightTransactFundBox == 0)) | |
517 | 522 | then (PrizeAmount != 0) | |
518 | 523 | else false) | |
519 | 524 | then height | |
520 | 525 | else if (if ((HeightTransactFundBox != 0)) | |
521 | 526 | then (PrizeAmount != 0) | |
522 | 527 | else false) | |
523 | 528 | then HeightTransactFundBox | |
524 | 529 | else 0 | |
525 | 530 | let ActualDelay = match getInteger(this, "Delay") { | |
526 | 531 | case a: Int => | |
527 | 532 | a | |
528 | 533 | case _ => | |
529 | 534 | 0 | |
530 | 535 | } | |
531 | 536 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
532 | 537 | case a: Int => | |
533 | 538 | a | |
534 | 539 | case _ => | |
535 | 540 | 10 | |
536 | 541 | } | |
537 | 542 | let pmt = extract(i.payment) | |
538 | 543 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
539 | 544 | case a: Int => | |
540 | 545 | a | |
541 | 546 | case _ => | |
542 | 547 | 0 | |
543 | 548 | } | |
544 | 549 | if (if (isDefined(pmt.assetId)) | |
545 | 550 | then (extract(pmt.assetId) == GovernToken) | |
546 | 551 | else false) | |
547 | 552 | then if ((PrizeAmount > 0)) | |
548 | 553 | then { | |
549 | 554 | let UserGovernTokenAmount = pmt.amount | |
550 | 555 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
551 | 556 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
552 | 557 | then 1000000000 | |
553 | 558 | else (2 * ActualDelayCost) | |
554 | 559 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
555 | 560 | then { | |
556 | 561 | let NewDelay = (ActualDelay + DelayDays) | |
557 | 562 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry("DevBox", DevBoxAmount)]) | |
558 | 563 | } | |
559 | 564 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
560 | 565 | } | |
561 | 566 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
562 | 567 | else throw("Can Use only Troika Token to Delay Reward") | |
563 | 568 | } | |
564 | 569 | ||
565 | 570 | ||
566 | 571 | ||
567 | 572 | @Callable(i) | |
568 | 573 | func ClaimPrize () = { | |
569 | 574 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
570 | 575 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
571 | 576 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
572 | 577 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
573 | 578 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
574 | 579 | let minStakeBlock = 7 | |
575 | 580 | let minref = 0 | |
576 | 581 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
577 | 582 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
578 | 583 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
579 | 584 | case a: Int => | |
580 | 585 | a | |
581 | 586 | case _ => | |
582 | 587 | 0 | |
583 | 588 | } | |
584 | 589 | let PrizeAmount = match getInteger(this, "FundBox") { | |
585 | 590 | case a: Int => | |
586 | 591 | a | |
587 | 592 | case _ => | |
588 | 593 | 0 | |
589 | 594 | } | |
590 | 595 | let UserPushValue = match getInteger(this, UserPush) { | |
591 | 596 | case a: Int => | |
592 | 597 | a | |
593 | 598 | case _ => | |
594 | 599 | 0 | |
595 | 600 | } | |
596 | 601 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
597 | 602 | case a: Int => | |
598 | 603 | a | |
599 | 604 | case _ => | |
600 | 605 | 0 | |
601 | 606 | } | |
602 | 607 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
603 | 608 | case a: Int => | |
604 | 609 | a | |
605 | 610 | case _ => | |
606 | 611 | 0 | |
607 | 612 | } | |
608 | 613 | let ActualDelay = match getInteger(this, "Delay") { | |
609 | 614 | case a: Int => | |
610 | 615 | a | |
611 | 616 | case _ => | |
612 | 617 | 0 | |
613 | 618 | } | |
614 | 619 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
615 | 620 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
616 | 621 | case a: Int => | |
617 | 622 | a | |
618 | 623 | case _ => | |
619 | 624 | 0 | |
620 | 625 | } | |
621 | 626 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
622 | 627 | case a: Int => | |
623 | 628 | a | |
624 | 629 | case _ => | |
625 | 630 | 0 | |
626 | 631 | } | |
627 | 632 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
628 | 633 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
629 | 634 | case a: Int => | |
630 | 635 | a | |
631 | 636 | case _ => | |
632 | 637 | 0 | |
633 | 638 | } | |
634 | 639 | if (if ((PrizeAmount == 0)) | |
635 | 640 | then true | |
636 | 641 | else (10000000000 > ContractGovTokenBalance)) | |
637 | 642 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
638 | 643 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
639 | 644 | then throw("You are not the winner hence cannot claim the reward ") | |
640 | 645 | else if (if ((100000000 > UserStakedTokenAmount)) | |
641 | 646 | then (minStakeBlock > UserLastStakeBlockValue) | |
642 | 647 | else false) | |
643 | 648 | then throw("You have to Stake ASIMI Token to claim reward ") | |
644 | 649 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
645 | 650 | then (UserPushValue >= HighestPushValue) | |
646 | 651 | else false) | |
647 | 652 | then if ((UserRefsNumValue >= minref)) | |
648 | 653 | then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry("FundBox", 0), DataEntry("HighestPush", 0), DataEntry(UserPush, 0), DataEntry("HighestPushAddress", ""), DataEntry("PrizeHeight", 0), DataEntry("Delay", 0), DataEntry("DelayCost", 0), DataEntry("LastWinner", PrizeWinner), DataEntry("LastPrize", PrizeAmount)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 1000000000, GovernToken)])) | |
649 | 654 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
650 | 655 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
651 | 656 | } | |
652 | 657 | ||
653 | 658 | ||
654 | 659 | ||
655 | 660 | @Callable(i) | |
656 | 661 | func Addmentor (Mentor) = { | |
657 | 662 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
658 | 663 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
659 | 664 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
660 | 665 | if ((Mentor != "")) | |
661 | 666 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
662 | 667 | else throw("Mentor's Address cannot be empty") | |
663 | 668 | } | |
664 | 669 | ||
665 | 670 |
github/deemru/w8io/026f985 65.74 ms ◑