tx · AE59YmAfgMy97txtAuUE8jgmMUED3uBDv2EKFzRqGBr8

3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK:  -0.01000000 Waves

2021.08.11 20:50 [1654019] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
62.92 ms