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/1GRlpktABBMaWtlUGFja2FnZVByaWNlCQBoAgABAIDC1y8LAWkBC0RldldpdGhkcmF3AAQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAwkAAAIFCmN1cnJlbnRLZXkCIzNQNzRidUh0OThCbm9qRmNhUkVKWnRiOThLRHlVbVpHZW1KBAxEZXZCb3hBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwIGRGV2Qm94AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAwkAZgIAAAUMRGV2Qm94QW1vdW50CQACAQISTm90IGVub3VnaCBiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgZEZXZCb3gAAAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZX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AMBBQ1Ud2l0dGVyVXNlcklkAgtfVHdpdHQyTGlrZQUHVHdpdHRJZAUDbmlsCQACAQISQW1vdW50IHNob3VsZCBiZSA6CQACAQIwUGF5bWVudHMgc2hvdWxkIGJlIGJvdGggQVNJTUkgYW5kIFRST0lLQU4gdG9rZW5zABIzmZs=", "height": 2117886, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5cMSHU4vjNvkGS9J4Kb6neXkmAZVShB6XHpiQ9ifsDRw Next: GxUGLb2hgZGZKjBraoFee4fs4H4hDkmd4u7QardUtamR Diff:
Old | New | Differences | |
---|---|---|---|
844 | 844 | else false) | |
845 | 845 | then if ((pmt.amount > LikePackagePrice)) | |
846 | 846 | then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)] | |
847 | - | else throw( | |
847 | + | else throw("Amount should be :") | |
848 | 848 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
849 | 849 | } | |
850 | 850 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
5 | 5 | ||
6 | 6 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
7 | 7 | ||
8 | 8 | let LikePackagePrice = (1 * 100000000) | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func DevWithdraw () = { | |
12 | 12 | let currentKey = toBase58String(i.caller.bytes) | |
13 | 13 | if ((currentKey == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ")) | |
14 | 14 | then { | |
15 | 15 | let DevBoxAmount = match getInteger(this, "DevBox") { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | if ((0 > DevBoxAmount)) | |
22 | 22 | then throw("Not enough balance") | |
23 | 23 | else [IntegerEntry("DevBox", 0), ScriptTransfer(i.caller, DevBoxAmount, GovernToken)] | |
24 | 24 | } | |
25 | 25 | else throw("You cannot withdraw as your are not the Dev.") | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(i) | |
31 | 31 | func WithdrawWeeklyEarning () = { | |
32 | 32 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
33 | 33 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
34 | 34 | let UserWeeklyEarnings = (toBase58String(i.caller.bytes) + "_WeekEarning") | |
35 | 35 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
36 | 36 | case a: Int => | |
37 | 37 | a | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | let PrizeAmount = match getInteger(this, "FundBox") { | |
42 | 42 | case a: Int => | |
43 | 43 | a | |
44 | 44 | case _ => | |
45 | 45 | 0 | |
46 | 46 | } | |
47 | 47 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
48 | 48 | case a: Int => | |
49 | 49 | a | |
50 | 50 | case _ => | |
51 | 51 | 0 | |
52 | 52 | } | |
53 | 53 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
54 | 54 | then (PrizeAmount == 0) | |
55 | 55 | else false) | |
56 | 56 | then 0 | |
57 | 57 | else if (if ((HeightTransactFundBox == 0)) | |
58 | 58 | then (PrizeAmount != 0) | |
59 | 59 | else false) | |
60 | 60 | then height | |
61 | 61 | else if (if ((HeightTransactFundBox != 0)) | |
62 | 62 | then (PrizeAmount != 0) | |
63 | 63 | else false) | |
64 | 64 | then HeightTransactFundBox | |
65 | 65 | else 0 | |
66 | 66 | let currentKey = toBase58String(i.caller.bytes) | |
67 | 67 | let newAmount = match getInteger(this, UserWeeklyEarnings) { | |
68 | 68 | case a: Int => | |
69 | 69 | a | |
70 | 70 | case _ => | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | if ((0 > newAmount)) | |
74 | 74 | then throw("Can't withdraw negative amount") | |
75 | 75 | else if ((0 > newAmount)) | |
76 | 76 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((newAmount / 100000000)))) | |
77 | 77 | else [IntegerEntry(UserWeeklyEarnings, 0), IntegerEntry("PrizeHeight", PrizeHeightValue), IntegerEntry("MaxDeposit", 0), ScriptTransfer(i.caller, newAmount, StakedToken)] | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(i) | |
83 | 83 | func PushReward () = { | |
84 | 84 | let minPushBlock = 10 | |
85 | 85 | let minStakeBlock = (7 * 1440) | |
86 | 86 | let DelayAfterPush = 60 | |
87 | 87 | let WaitTime = (1440 * 1) | |
88 | 88 | let minref = 3 | |
89 | 89 | let FirstPushTimer = (7 * 1440) | |
90 | 90 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
91 | 91 | let pmt = if ((size(i.payments) == 1)) | |
92 | 92 | then i.payments[0] | |
93 | 93 | else throw("Attached payment is required") | |
94 | 94 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
95 | 95 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
96 | 96 | case a: Int => | |
97 | 97 | a | |
98 | 98 | case _ => | |
99 | 99 | 0 | |
100 | 100 | } | |
101 | 101 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
102 | 102 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
103 | 103 | case a: Int => | |
104 | 104 | a | |
105 | 105 | case _ => | |
106 | 106 | 0 | |
107 | 107 | } | |
108 | 108 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
109 | 109 | case a: Int => | |
110 | 110 | a | |
111 | 111 | case _ => | |
112 | 112 | 0 | |
113 | 113 | } | |
114 | 114 | if ((userWalletGovernBalance > pmt.amount)) | |
115 | 115 | then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue)) | |
116 | 116 | then (pmt.assetId == GovernToken) | |
117 | 117 | else false) | |
118 | 118 | then { | |
119 | 119 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
120 | 120 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
121 | 121 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
122 | 122 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
123 | 123 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
124 | 124 | case a: Int => | |
125 | 125 | a | |
126 | 126 | case _ => | |
127 | 127 | 0 | |
128 | 128 | } | |
129 | 129 | let PrizeAmount = match getInteger(this, "FundBox") { | |
130 | 130 | case a: Int => | |
131 | 131 | a | |
132 | 132 | case _ => | |
133 | 133 | 0 | |
134 | 134 | } | |
135 | 135 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
136 | 136 | case a: Int => | |
137 | 137 | a | |
138 | 138 | case _ => | |
139 | 139 | 0 | |
140 | 140 | } | |
141 | 141 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
142 | 142 | then (PrizeAmount == 0) | |
143 | 143 | else false) | |
144 | 144 | then 0 | |
145 | 145 | else if (if ((HeightTransactFundBox == 0)) | |
146 | 146 | then (PrizeAmount != 0) | |
147 | 147 | else false) | |
148 | 148 | then height | |
149 | 149 | else if (if ((HeightTransactFundBox != 0)) | |
150 | 150 | then (PrizeAmount != 0) | |
151 | 151 | else false) | |
152 | 152 | then HeightTransactFundBox | |
153 | 153 | else 0 | |
154 | 154 | let ActualDelay = match getInteger(this, "Delay") { | |
155 | 155 | case a: Int => | |
156 | 156 | a | |
157 | 157 | case _ => | |
158 | 158 | 0 | |
159 | 159 | } | |
160 | 160 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
161 | 161 | case a: Int => | |
162 | 162 | a | |
163 | 163 | case _ => | |
164 | 164 | 0 | |
165 | 165 | } | |
166 | 166 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
167 | 167 | case a: Int => | |
168 | 168 | a | |
169 | 169 | case _ => | |
170 | 170 | 0 | |
171 | 171 | } | |
172 | 172 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
173 | 173 | case a: Int => | |
174 | 174 | a | |
175 | 175 | case _ => | |
176 | 176 | 0 | |
177 | 177 | } | |
178 | 178 | let UserStakeValue = match getInteger(this, UserStake) { | |
179 | 179 | case a: Int => | |
180 | 180 | a | |
181 | 181 | case _ => | |
182 | 182 | 0 | |
183 | 183 | } | |
184 | 184 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
185 | 185 | case a: Int => | |
186 | 186 | a | |
187 | 187 | case _ => | |
188 | 188 | 0 | |
189 | 189 | } | |
190 | 190 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
191 | 191 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
192 | 192 | let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
193 | 193 | then (HighestPushValue > 0) | |
194 | 194 | else false) | |
195 | 195 | then FirstPushTimer | |
196 | 196 | else (ActualDelay + DelayAfterPush) | |
197 | 197 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
198 | 198 | then (HighestPushValue > 0) | |
199 | 199 | else false) | |
200 | 200 | then "" | |
201 | 201 | else HighestPushAddress | |
202 | 202 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
203 | 203 | then (HighestPushValue > 0) | |
204 | 204 | else false) | |
205 | 205 | then height | |
206 | 206 | else PrizeHeightValue | |
207 | 207 | if (if ((UserPushvalue > 0)) | |
208 | 208 | then ((height - UserLastStakeBlockValue) > minStakeBlock) | |
209 | 209 | else false) | |
210 | 210 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
211 | 211 | then if ((UserStakeValue > 0)) | |
212 | 212 | then if ((UserPushvalue > HighestPushValue)) | |
213 | 213 | then if ((PrizeAmount > 0)) | |
214 | 214 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) >= height)) | |
215 | 215 | then true | |
216 | 216 | else (height >= ((PrizeHeightValueNew + NewDelay) + WaitTime))) | |
217 | 217 | then (HighestPushValue > 0) | |
218 | 218 | else false) | |
219 | 219 | then true | |
220 | 220 | else (HighestPushValue == 0)) | |
221 | 221 | then if ((UserRefsNumValue >= minref)) | |
222 | 222 | 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)] | |
223 | 223 | else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days, to push")) | |
224 | 224 | else { | |
225 | 225 | let txt = if ((HighestPushValue > 0)) | |
226 | 226 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
227 | 227 | else "Unexpected error" | |
228 | 228 | throw(txt) | |
229 | 229 | } | |
230 | 230 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
231 | 231 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
232 | 232 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
233 | 233 | else throw("You have to wait 10min before you can make a new Push") | |
234 | 234 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
235 | 235 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
236 | 236 | } | |
237 | 237 | 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")) | |
238 | 238 | 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 !") | |
239 | 239 | } | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(i) | |
244 | 244 | func Stake () = { | |
245 | 245 | let WaitTime = (1440 * 1) | |
246 | 246 | let pmt = if ((size(i.payments) == 1)) | |
247 | 247 | then i.payments[0] | |
248 | 248 | else throw("Attached payment is required") | |
249 | 249 | if (if ((pmt.amount > 0)) | |
250 | 250 | then (pmt.assetId == StakedToken) | |
251 | 251 | else false) | |
252 | 252 | then { | |
253 | 253 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
254 | 254 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
255 | 255 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
256 | 256 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
257 | 257 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
258 | 258 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
259 | 259 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
260 | 260 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
261 | 261 | let UserWeekEarnings = (toBase58String(i.caller.bytes) + "_WeekEarning") | |
262 | 262 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
263 | 263 | case a: Int => | |
264 | 264 | a | |
265 | 265 | case _ => | |
266 | 266 | 0 | |
267 | 267 | } | |
268 | 268 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
269 | 269 | let MaxDepositBlock = match getInteger(this, "MaxDepositBlock") { | |
270 | 270 | case a: Int => | |
271 | 271 | a | |
272 | 272 | case _ => | |
273 | 273 | 0 | |
274 | 274 | } | |
275 | 275 | let MaxDeposit = match getInteger(this, "MaxDeposit") { | |
276 | 276 | case a: Int => | |
277 | 277 | a | |
278 | 278 | case _ => | |
279 | 279 | 0 | |
280 | 280 | } | |
281 | 281 | let MaxDepositerValue = if ((pmt.amount > MaxDeposit)) | |
282 | 282 | then toBase58String(i.caller.bytes) | |
283 | 283 | else MaxDepositer | |
284 | 284 | let MaxDepositValue = if ((pmt.amount > MaxDeposit)) | |
285 | 285 | then pmt.amount | |
286 | 286 | else MaxDeposit | |
287 | 287 | let MaxDepositBlockValue = if ((pmt.amount > MaxDeposit)) | |
288 | 288 | then height | |
289 | 289 | else MaxDepositBlock | |
290 | 290 | let UserPushValue = match getInteger(this, UserPush) { | |
291 | 291 | case a: Int => | |
292 | 292 | a | |
293 | 293 | case _ => | |
294 | 294 | 0 | |
295 | 295 | } | |
296 | 296 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
297 | 297 | case a: Int => | |
298 | 298 | a | |
299 | 299 | case _ => | |
300 | 300 | 0 | |
301 | 301 | } | |
302 | 302 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
303 | 303 | then height | |
304 | 304 | else UserLastStakeBlockValue | |
305 | 305 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
306 | 306 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
307 | 307 | case a: Int => | |
308 | 308 | a | |
309 | 309 | case _ => | |
310 | 310 | 0 | |
311 | 311 | } | |
312 | 312 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
313 | 313 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
314 | 314 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
315 | 315 | case a: Int => | |
316 | 316 | a | |
317 | 317 | case _ => | |
318 | 318 | 0 | |
319 | 319 | } | |
320 | 320 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
321 | 321 | let PrizeAmount = match getInteger(this, "FundBox") { | |
322 | 322 | case a: Int => | |
323 | 323 | a | |
324 | 324 | case _ => | |
325 | 325 | 0 | |
326 | 326 | } | |
327 | 327 | let UserWeekEarningsValue = match getInteger(this, UserWeekEarnings) { | |
328 | 328 | case a: Int => | |
329 | 329 | a | |
330 | 330 | case _ => | |
331 | 331 | 0 | |
332 | 332 | } | |
333 | 333 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
334 | 334 | case a: Int => | |
335 | 335 | a | |
336 | 336 | case _ => | |
337 | 337 | 0 | |
338 | 338 | } | |
339 | 339 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
340 | 340 | case a: Int => | |
341 | 341 | a | |
342 | 342 | case _ => | |
343 | 343 | 0 | |
344 | 344 | } | |
345 | 345 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
346 | 346 | then (PrizeAmount == 0) | |
347 | 347 | else false) | |
348 | 348 | then 0 | |
349 | 349 | else if (if ((HeightTransactFundBox == 0)) | |
350 | 350 | then (PrizeAmount != 0) | |
351 | 351 | else false) | |
352 | 352 | then height | |
353 | 353 | else if (if ((HeightTransactFundBox != 0)) | |
354 | 354 | then (PrizeAmount != 0) | |
355 | 355 | else false) | |
356 | 356 | then HeightTransactFundBox | |
357 | 357 | else 0 | |
358 | 358 | let ActualDelay = match getInteger(this, "Delay") { | |
359 | 359 | case a: Int => | |
360 | 360 | a | |
361 | 361 | case _ => | |
362 | 362 | 0 | |
363 | 363 | } | |
364 | 364 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
365 | 365 | case a: Int => | |
366 | 366 | a | |
367 | 367 | case _ => | |
368 | 368 | 0 | |
369 | 369 | } | |
370 | 370 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
371 | 371 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
372 | 372 | then (HighestPushValue > 0) | |
373 | 373 | else false) | |
374 | 374 | then "" | |
375 | 375 | else HighestPushAddress | |
376 | 376 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
377 | 377 | then (HighestPushValue > 0) | |
378 | 378 | else false) | |
379 | 379 | then height | |
380 | 380 | else PrizeHeightValue | |
381 | 381 | if ((100000000 > GovernTokenSmartContractBalance)) | |
382 | 382 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
383 | 383 | else { | |
384 | 384 | let Reward = if ((StakeBalance == 0)) | |
385 | 385 | then 10000 | |
386 | 386 | else if ((NewUserStakeTransactions > 10)) | |
387 | 387 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
388 | 388 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
389 | 389 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
390 | 390 | then ((100 * Reward) / currentAmountGovernToken) | |
391 | 391 | else 0 | |
392 | 392 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
393 | 393 | [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)] | |
394 | 394 | } | |
395 | 395 | } | |
396 | 396 | else throw("Can deposit only StakeToken") | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(i) | |
402 | 402 | func WithdrawStakedFunds (amount) = { | |
403 | 403 | let WaitTime = (1440 * 1) | |
404 | 404 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
405 | 405 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
406 | 406 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
407 | 407 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
408 | 408 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
409 | 409 | case a: Int => | |
410 | 410 | a | |
411 | 411 | case _ => | |
412 | 412 | 0 | |
413 | 413 | } | |
414 | 414 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
415 | 415 | case a: Int => | |
416 | 416 | a | |
417 | 417 | case _ => | |
418 | 418 | 0 | |
419 | 419 | } | |
420 | 420 | let PrizeAmount = match getInteger(this, "FundBox") { | |
421 | 421 | case a: Int => | |
422 | 422 | a | |
423 | 423 | case _ => | |
424 | 424 | 0 | |
425 | 425 | } | |
426 | 426 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
427 | 427 | case a: Int => | |
428 | 428 | a | |
429 | 429 | case _ => | |
430 | 430 | 0 | |
431 | 431 | } | |
432 | 432 | let ActualDelay = match getInteger(this, "Delay") { | |
433 | 433 | case a: Int => | |
434 | 434 | a | |
435 | 435 | case _ => | |
436 | 436 | 0 | |
437 | 437 | } | |
438 | 438 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
439 | 439 | case a: Int => | |
440 | 440 | a | |
441 | 441 | case _ => | |
442 | 442 | 0 | |
443 | 443 | } | |
444 | 444 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
445 | 445 | then (PrizeAmount == 0) | |
446 | 446 | else false) | |
447 | 447 | then 0 | |
448 | 448 | else if (if ((HeightTransactFundBox == 0)) | |
449 | 449 | then (PrizeAmount != 0) | |
450 | 450 | else false) | |
451 | 451 | then height | |
452 | 452 | else if (if ((HeightTransactFundBox != 0)) | |
453 | 453 | then (PrizeAmount != 0) | |
454 | 454 | else false) | |
455 | 455 | then HeightTransactFundBox | |
456 | 456 | else 0 | |
457 | 457 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
458 | 458 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
459 | 459 | then (HighestPushValue > 0) | |
460 | 460 | else false) | |
461 | 461 | then "" | |
462 | 462 | else HighestPushAddress | |
463 | 463 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
464 | 464 | then (HighestPushValue > 0) | |
465 | 465 | else false) | |
466 | 466 | then height | |
467 | 467 | else PrizeHeightValue | |
468 | 468 | let currentKey = toBase58String(i.caller.bytes) | |
469 | 469 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
470 | 470 | case a: Int => | |
471 | 471 | a | |
472 | 472 | case _ => | |
473 | 473 | 0 | |
474 | 474 | } | |
475 | 475 | let newAmount = (currentAmount - amount) | |
476 | 476 | let StakeBalanceAmount = (StakeBalance - amount) | |
477 | 477 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
478 | 478 | then 0 | |
479 | 479 | else UserLastStakeBlockValue | |
480 | 480 | if ((0 > amount)) | |
481 | 481 | then throw("Can't withdraw negative amount") | |
482 | 482 | else if ((0 > newAmount)) | |
483 | 483 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
484 | 484 | else if ((100000000 > assetBalance(this, GovernToken))) | |
485 | 485 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
486 | 486 | 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)] | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | ||
491 | 491 | @Callable(i) | |
492 | 492 | func WithdrawBigStakeReward () = { | |
493 | 493 | let WaitTime = (1440 * 1) | |
494 | 494 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "_LastBigStakerRewardBlock") | |
495 | 495 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
496 | 496 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
497 | 497 | let LimiWithdrawReward = 10 | |
498 | 498 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
499 | 499 | case a: Int => | |
500 | 500 | a | |
501 | 501 | case _ => | |
502 | 502 | 0 | |
503 | 503 | } | |
504 | 504 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
505 | 505 | case a: Int => | |
506 | 506 | a | |
507 | 507 | case _ => | |
508 | 508 | 0 | |
509 | 509 | } | |
510 | 510 | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
511 | 511 | case a: Int => | |
512 | 512 | a | |
513 | 513 | case _ => | |
514 | 514 | 0 | |
515 | 515 | } | |
516 | 516 | let PrizeAmount = match getInteger(this, "FundBox") { | |
517 | 517 | case a: Int => | |
518 | 518 | a | |
519 | 519 | case _ => | |
520 | 520 | 0 | |
521 | 521 | } | |
522 | 522 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
523 | 523 | case a: Int => | |
524 | 524 | a | |
525 | 525 | case _ => | |
526 | 526 | 0 | |
527 | 527 | } | |
528 | 528 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
529 | 529 | then (PrizeAmount == 0) | |
530 | 530 | else false) | |
531 | 531 | then 0 | |
532 | 532 | else if (if ((HeightTransactFundBox == 0)) | |
533 | 533 | then (PrizeAmount != 0) | |
534 | 534 | else false) | |
535 | 535 | then height | |
536 | 536 | else if (if ((HeightTransactFundBox != 0)) | |
537 | 537 | then (PrizeAmount != 0) | |
538 | 538 | else false) | |
539 | 539 | then HeightTransactFundBox | |
540 | 540 | else 0 | |
541 | 541 | let ActualDelay = match getInteger(this, "Delay") { | |
542 | 542 | case a: Int => | |
543 | 543 | a | |
544 | 544 | case _ => | |
545 | 545 | 0 | |
546 | 546 | } | |
547 | 547 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
548 | 548 | case a: Int => | |
549 | 549 | a | |
550 | 550 | case _ => | |
551 | 551 | 0 | |
552 | 552 | } | |
553 | 553 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
554 | 554 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
555 | 555 | then (HighestPushValue > 0) | |
556 | 556 | else false) | |
557 | 557 | then "" | |
558 | 558 | else HighestPushAddress | |
559 | 559 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
560 | 560 | then (HighestPushValue > 0) | |
561 | 561 | else false) | |
562 | 562 | then height | |
563 | 563 | else PrizeHeightValue | |
564 | 564 | let currentKey = toBase58String(i.caller.bytes) | |
565 | 565 | let amount = match getInteger(this, BigStakerReward) { | |
566 | 566 | case a: Int => | |
567 | 567 | a | |
568 | 568 | case _ => | |
569 | 569 | 0 | |
570 | 570 | } | |
571 | 571 | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
572 | 572 | let BigStakerRewardTax = if ((0 > ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))))) | |
573 | 573 | then (1000 * 100000000) | |
574 | 574 | else ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))) | |
575 | 575 | if ((0 > amount)) | |
576 | 576 | then throw(((("Can't withdraw negative amount " + toString((UserGovernTokenAmount - (1000 * 100000000)))) + " ... ") + toString(amount))) | |
577 | 577 | else if (if (if (((1000 * 100000000) > UserGovernTokenAmount)) | |
578 | 578 | then true | |
579 | 579 | else (1 > amount)) | |
580 | 580 | then true | |
581 | 581 | else (0 > (UserGovernTokenAmount - BigStakerRewardTax))) | |
582 | 582 | then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you have: " + toString((UserGovernTokenAmount / 100000000)))) | |
583 | 583 | else if ((StakeBalanceAmount > 0)) | |
584 | 584 | 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)] | |
585 | 585 | else throw("Balance Error, Total Big Stakers cannot be negative, Operation won't be authorized") | |
586 | 586 | } | |
587 | 587 | ||
588 | 588 | ||
589 | 589 | ||
590 | 590 | @Callable(i) | |
591 | 591 | func HarvestGovernToiken (amount) = { | |
592 | 592 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
593 | 593 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
594 | 594 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
595 | 595 | case a: Int => | |
596 | 596 | a | |
597 | 597 | case _ => | |
598 | 598 | 0 | |
599 | 599 | } | |
600 | 600 | let PrizeAmount = match getInteger(this, "FundBox") { | |
601 | 601 | case a: Int => | |
602 | 602 | a | |
603 | 603 | case _ => | |
604 | 604 | 0 | |
605 | 605 | } | |
606 | 606 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
607 | 607 | case a: Int => | |
608 | 608 | a | |
609 | 609 | case _ => | |
610 | 610 | 0 | |
611 | 611 | } | |
612 | 612 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
613 | 613 | then (PrizeAmount == 0) | |
614 | 614 | else false) | |
615 | 615 | then 0 | |
616 | 616 | else if (if ((HeightTransactFundBox == 0)) | |
617 | 617 | then (PrizeAmount != 0) | |
618 | 618 | else false) | |
619 | 619 | then height | |
620 | 620 | else if (if ((HeightTransactFundBox != 0)) | |
621 | 621 | then (PrizeAmount != 0) | |
622 | 622 | else false) | |
623 | 623 | then HeightTransactFundBox | |
624 | 624 | else 0 | |
625 | 625 | let currentKey = toBase58String(i.caller.bytes) | |
626 | 626 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
627 | 627 | case a: Int => | |
628 | 628 | a | |
629 | 629 | case _ => | |
630 | 630 | 0 | |
631 | 631 | } | |
632 | 632 | let newAmount = (currentAmount - amount) | |
633 | 633 | if ((0 > amount)) | |
634 | 634 | then throw("Can't withdraw negative amount") | |
635 | 635 | else if ((0 > newAmount)) | |
636 | 636 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
637 | 637 | else [IntegerEntry(UserGovernTokenKey, newAmount), IntegerEntry("PrizeHeight", PrizeHeightValue), ScriptTransfer(i.caller, amount, GovernToken)] | |
638 | 638 | } | |
639 | 639 | ||
640 | 640 | ||
641 | 641 | ||
642 | 642 | @Callable(i) | |
643 | 643 | func delayprize () = { | |
644 | 644 | let DelayDays = (1440 * 1) | |
645 | 645 | let WaitTime = (1440 * 1) | |
646 | 646 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
647 | 647 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
648 | 648 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
649 | 649 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
650 | 650 | case a: Int => | |
651 | 651 | a | |
652 | 652 | case _ => | |
653 | 653 | 0 | |
654 | 654 | } | |
655 | 655 | let PrizeAmount = match getInteger(this, "FundBox") { | |
656 | 656 | case a: Int => | |
657 | 657 | a | |
658 | 658 | case _ => | |
659 | 659 | 0 | |
660 | 660 | } | |
661 | 661 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
662 | 662 | case a: Int => | |
663 | 663 | a | |
664 | 664 | case _ => | |
665 | 665 | 0 | |
666 | 666 | } | |
667 | 667 | let ActualDelay = match getInteger(this, "Delay") { | |
668 | 668 | case a: Int => | |
669 | 669 | a | |
670 | 670 | case _ => | |
671 | 671 | 0 | |
672 | 672 | } | |
673 | 673 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
674 | 674 | then (PrizeAmount == 0) | |
675 | 675 | else false) | |
676 | 676 | then 0 | |
677 | 677 | else if (if ((HeightTransactFundBox == 0)) | |
678 | 678 | then (PrizeAmount != 0) | |
679 | 679 | else false) | |
680 | 680 | then height | |
681 | 681 | else if (if ((HeightTransactFundBox != 0)) | |
682 | 682 | then (PrizeAmount != 0) | |
683 | 683 | else false) | |
684 | 684 | then HeightTransactFundBox | |
685 | 685 | else 0 | |
686 | 686 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
687 | 687 | case a: Int => | |
688 | 688 | a | |
689 | 689 | case _ => | |
690 | 690 | 0 | |
691 | 691 | } | |
692 | 692 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
693 | 693 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
694 | 694 | then (HighestPushValue > 0) | |
695 | 695 | else false) | |
696 | 696 | then "" | |
697 | 697 | else HighestPushAddress | |
698 | 698 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
699 | 699 | then (HighestPushValue > 0) | |
700 | 700 | else false) | |
701 | 701 | then height | |
702 | 702 | else PrizeHeightValue | |
703 | 703 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
704 | 704 | case a: Int => | |
705 | 705 | a | |
706 | 706 | case _ => | |
707 | 707 | 10 | |
708 | 708 | } | |
709 | 709 | let pmt = if ((size(i.payments) == 1)) | |
710 | 710 | then i.payments[0] | |
711 | 711 | else throw("Attached payment is required") | |
712 | 712 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
713 | 713 | case a: Int => | |
714 | 714 | a | |
715 | 715 | case _ => | |
716 | 716 | 0 | |
717 | 717 | } | |
718 | 718 | if (if (isDefined(pmt.assetId)) | |
719 | 719 | then (pmt.assetId == GovernToken) | |
720 | 720 | else false) | |
721 | 721 | then if ((PrizeAmount > 0)) | |
722 | 722 | then { | |
723 | 723 | let UserGovernTokenAmount = pmt.amount | |
724 | 724 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
725 | 725 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
726 | 726 | then 1000000000 | |
727 | 727 | else (2 * ActualDelayCost) | |
728 | 728 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
729 | 729 | then { | |
730 | 730 | let NewDelay = (ActualDelay + DelayDays) | |
731 | 731 | [IntegerEntry("Delay", NewDelay), IntegerEntry("DelayCost", NewDelayCost), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry("DevBox", DevBoxAmount), StringEntry("HighestPushAddress", HighestPushAddressValue)] | |
732 | 732 | } | |
733 | 733 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
734 | 734 | } | |
735 | 735 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
736 | 736 | else throw("Can Use only Troika Token to Delay Reward") | |
737 | 737 | } | |
738 | 738 | ||
739 | 739 | ||
740 | 740 | ||
741 | 741 | @Callable(i) | |
742 | 742 | func ClaimPrize () = { | |
743 | 743 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
744 | 744 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
745 | 745 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
746 | 746 | let minStakeBlock = (1440 * 7) | |
747 | 747 | let minref = 3 | |
748 | 748 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
749 | 749 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
750 | 750 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
751 | 751 | case a: Int => | |
752 | 752 | a | |
753 | 753 | case _ => | |
754 | 754 | 0 | |
755 | 755 | } | |
756 | 756 | let PrizeAmount = match getInteger(this, "FundBox") { | |
757 | 757 | case a: Int => | |
758 | 758 | a | |
759 | 759 | case _ => | |
760 | 760 | 0 | |
761 | 761 | } | |
762 | 762 | let UserPushValue = match getInteger(this, UserPush) { | |
763 | 763 | case a: Int => | |
764 | 764 | a | |
765 | 765 | case _ => | |
766 | 766 | 0 | |
767 | 767 | } | |
768 | 768 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
769 | 769 | case a: Int => | |
770 | 770 | a | |
771 | 771 | case _ => | |
772 | 772 | 0 | |
773 | 773 | } | |
774 | 774 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
775 | 775 | case a: Int => | |
776 | 776 | a | |
777 | 777 | case _ => | |
778 | 778 | 0 | |
779 | 779 | } | |
780 | 780 | let ActualDelay = match getInteger(this, "Delay") { | |
781 | 781 | case a: Int => | |
782 | 782 | a | |
783 | 783 | case _ => | |
784 | 784 | 0 | |
785 | 785 | } | |
786 | 786 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
787 | 787 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
788 | 788 | case a: Int => | |
789 | 789 | a | |
790 | 790 | case _ => | |
791 | 791 | 0 | |
792 | 792 | } | |
793 | 793 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
794 | 794 | case a: Int => | |
795 | 795 | a | |
796 | 796 | case _ => | |
797 | 797 | 0 | |
798 | 798 | } | |
799 | 799 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
800 | 800 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
801 | 801 | case a: Int => | |
802 | 802 | a | |
803 | 803 | case _ => | |
804 | 804 | 0 | |
805 | 805 | } | |
806 | 806 | if (if ((PrizeAmount == 0)) | |
807 | 807 | then true | |
808 | 808 | else (10000000000 > ContractGovTokenBalance)) | |
809 | 809 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
810 | 810 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
811 | 811 | then throw("You are not the winner hence cannot claim the reward ") | |
812 | 812 | else if (if ((100000000 > UserStakedTokenAmount)) | |
813 | 813 | then (minStakeBlock > UserLastStakeBlockValue) | |
814 | 814 | else false) | |
815 | 815 | then throw("You have to Stake ASIMI Token to claim reward ") | |
816 | 816 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
817 | 817 | then (UserPushValue >= HighestPushValue) | |
818 | 818 | else false) | |
819 | 819 | then if ((UserRefsNumValue >= minref)) | |
820 | 820 | 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)] | |
821 | 821 | else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days to Claim the prize")) | |
822 | 822 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
823 | 823 | } | |
824 | 824 | ||
825 | 825 | ||
826 | 826 | ||
827 | 827 | @Callable(i) | |
828 | 828 | func Addmentor (Mentor) = { | |
829 | 829 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
830 | 830 | if ((Mentor != "")) | |
831 | 831 | then [StringEntry(UserMentorAddress, Mentor)] | |
832 | 832 | else throw("Mentor's Address cannot be empty") | |
833 | 833 | } | |
834 | 834 | ||
835 | 835 | ||
836 | 836 | ||
837 | 837 | @Callable(i) | |
838 | 838 | func GetLikesPackage (TwitterUserId,TwittId) = { | |
839 | 839 | let pmt = if ((size(i.payments) == 2)) | |
840 | 840 | then i.payments[0] | |
841 | 841 | else throw("Attached payment is required") | |
842 | 842 | if (if ((i.payments[0].assetId == StakedToken)) | |
843 | 843 | then (i.payments[1].assetId == GovernToken) | |
844 | 844 | else false) | |
845 | 845 | then if ((pmt.amount > LikePackagePrice)) | |
846 | 846 | then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)] | |
847 | - | else throw( | |
847 | + | else throw("Amount should be :") | |
848 | 848 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
849 | 849 | } | |
850 | 850 | ||
851 | 851 |
github/deemru/w8io/026f985 85.92 ms ◑