tx · EsWipJkWg31SbEz43Z5kTHfbMGEAed7qzis3Vfaddqug

3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u:  -0.01440000 Waves

2021.01.27 00:58 [1371057] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves

{ "type": 13, "id": "EsWipJkWg31SbEz43Z5kTHfbMGEAed7qzis3Vfaddqug", "fee": 1440000, "feeAssetId": null, "timestamp": 1611698324614, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "3BVxffT9UMGiUCZ9VknERMPETnrvG32GJVmp3E4ZDpkVdcSZfPxgnZKoCXCMq9kNbrwPCQeAC6N7rBoMGR7Et62N" ], "script": "base64:AAIDAAAAAAAAABYIARIAEgASABIDCgEBEgMKAQESABIAAAAAAAAAAAcAAAABaQEAAAAMUmVzZXRBY2NvdW50AAAAAAQAAAALU3Rha2VkVG9rZW4BAAAAILXRKGG85gSnPN40vyincnte9/w4CJZnKBhuOOwELCGyBAAAAAtHb3Zlcm5Ub2tlbgEAAAAgEID4OLobvW7l4Eafs479e9fJOrvsYRoAST8NKMW+XbkEAAAACFVzZXJQdXNoCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAFX1B1c2gJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACURlbGF5Q29zdAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFRGVsYXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAC0hpZ2hlc3RQdXNoAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABJIaWdoZXN0UHVzaEFkZHJlc3MAA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gR292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIGFuZC9vciB3YWl0IHRpbGwgY291bnRvd24gaXMgZmluaXNoZWQAAAAA+2Pwqg==", "height": 1371057, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D4LBUtpmB1LdV1VxfHpoNa6LuXf42wSAZrF4waGHtXV Next: 6FQBHugKwzAASznYSYsgE2muvwf1WZAjeHQtWQDzPuSe Diff:
OldNewDifferences
113113 then true
114114 else (height > ((PrizeHeightValue + NewDelay) + 20))
115115 else false)
116- then throw(((("Checks: " + UserPush) + " | ") + toString(UserPushvalue)))
116+ then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastStakeBlock, height), DataEntry("PrizeHeight", height), DataEntry("Delay", NewDelay)])
117117 else throw(((((((((((((((((((((("Your Push dot not comply one of the following conditions: " + "<br> 1. Positive Value <br> 2. Must Staked ASIMI Token for a minimum of week <br> ") + "3. Should be Higher than last Highest Push <br> 4. Should wait required time between Pushes") + toString((height - UserLastStakeBlockValue))) + " > ") + toString((1440 * minStakeBlock))) + " _ ") + toString((height - UserLastPushBlockValue))) + " > ") + toString(minPushBlock)) + " _ ") + toString(UserPushvalue)) + " > ") + toString(HighestPushValue)) + "_") + toString(height)) + " < ") + toString((PrizeHeightValue + NewDelay))) + " _ ") + toString(height)) + " > ") + toString(((PrizeHeightValue + NewDelay) + 10))))
118118 }
119119 else throw("Can deposit only positive amounts of ASIMI Token")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func ResetAccount () = {
88 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
99 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
1010 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
1111 WriteSet([DataEntry("DelayCost", 0), DataEntry("Delay", 0), DataEntry("HighestPush", 0), DataEntry("HighestPushAddress", 0), DataEntry(UserPush, 0)])
1212 }
1313
1414
1515
1616 @Callable(i)
1717 func PushReward () = {
1818 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
1919 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
2020 let minPushBlock = 10
2121 let minStakeBlock = 0
2222 let DelayAfterPush = 20
2323 let pmt = extract(i.payment)
2424 if (if ((pmt.amount > 0))
2525 then (pmt.assetId == GovernToken)
2626 else false)
2727 then {
2828 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
2929 let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock")
3030 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
3131 let UserStake = (toBase58String(i.caller.bytes) + "_Staking")
3232 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
3333 let StakeBalance = match getInteger(this, "StakeBalance") {
3434 case a: Int =>
3535 a
3636 case _ =>
3737 0
3838 }
3939 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
4040 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
4141 case a: Int =>
4242 a
4343 case _ =>
4444 0
4545 }
4646 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
4747 then (PrizeAmount == 0)
4848 else false)
4949 then 0
5050 else if (if ((HeightTransactFundBox == 0))
5151 then (PrizeAmount != 0)
5252 else false)
5353 then height
5454 else if (if ((HeightTransactFundBox != 0))
5555 then (PrizeAmount != 0)
5656 else false)
5757 then HeightTransactFundBox
5858 else 0
5959 let HighestPushValue = match getInteger(this, "HighestPush") {
6060 case a: Int =>
6161 a
6262 case _ =>
6363 0
6464 }
6565 let UserLastPushOldValue = match getInteger(this, UserPush) {
6666 case a: Int =>
6767 a
6868 case _ =>
6969 0
7070 }
7171 let ActualDelay = match getInteger(this, "Delay") {
7272 case a: Int =>
7373 a
7474 case _ =>
7575 0
7676 }
7777 let NewDelay = (ActualDelay + DelayAfterPush)
7878 let HighestPushAddress = match getInteger(this, "HighestPushAddress") {
7979 case a: Int =>
8080 a
8181 case _ =>
8282 0
8383 }
8484 let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) {
8585 case a: Int =>
8686 a
8787 case _ =>
8888 0
8989 }
9090 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
9191 case a: Int =>
9292 a
9393 case _ =>
9494 0
9595 }
9696 let UserStakeValue = match getInteger(this, UserStake) {
9797 case a: Int =>
9898 a
9999 case _ =>
100100 0
101101 }
102102 let UserPushvalue = (pmt.amount + UserLastPushOldValue)
103103 if (if (if (if (if (if ((UserPushvalue > 0))
104104 then ((height - UserLastStakeBlockValue) > (1440 * minStakeBlock))
105105 else false)
106106 then ((height - UserLastPushBlockValue) > minPushBlock)
107107 else false)
108108 then (UserPushvalue > HighestPushValue)
109109 else false)
110110 then (UserStakeValue > 0)
111111 else false)
112112 then if (((PrizeHeightValue + NewDelay) > height))
113113 then true
114114 else (height > ((PrizeHeightValue + NewDelay) + 20))
115115 else false)
116- then throw(((("Checks: " + UserPush) + " | ") + toString(UserPushvalue)))
116+ then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastStakeBlock, height), DataEntry("PrizeHeight", height), DataEntry("Delay", NewDelay)])
117117 else throw(((((((((((((((((((((("Your Push dot not comply one of the following conditions: " + "<br> 1. Positive Value <br> 2. Must Staked ASIMI Token for a minimum of week <br> ") + "3. Should be Higher than last Highest Push <br> 4. Should wait required time between Pushes") + toString((height - UserLastStakeBlockValue))) + " > ") + toString((1440 * minStakeBlock))) + " _ ") + toString((height - UserLastPushBlockValue))) + " > ") + toString(minPushBlock)) + " _ ") + toString(UserPushvalue)) + " > ") + toString(HighestPushValue)) + "_") + toString(height)) + " < ") + toString((PrizeHeightValue + NewDelay))) + " _ ") + toString(height)) + " > ") + toString(((PrizeHeightValue + NewDelay) + 10))))
118118 }
119119 else throw("Can deposit only positive amounts of ASIMI Token")
120120 }
121121
122122
123123
124124 @Callable(i)
125125 func Stake () = {
126126 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
127127 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
128128 let pmt = extract(i.payment)
129129 if (if ((pmt.amount > 0))
130130 then (pmt.assetId == StakedToken)
131131 else false)
132132 then {
133133 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
134134 let UserAPY = (toBase58String(i.caller.bytes) + "_APY")
135135 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
136136 let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings")
137137 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
138138 let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions")
139139 let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight")
140140 let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) {
141141 case a: Int =>
142142 a
143143 case _ =>
144144 0
145145 }
146146 let NewUserStakeTransactions = (UserStakeTransactions + 1)
147147 let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) {
148148 case a: Int =>
149149 a
150150 case _ =>
151151 0
152152 }
153153 let newAmountStakedToken = (currentAmountStakedToken + pmt.amount)
154154 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
155155 let StakeBalance = match getInteger(this, "StakeBalance") {
156156 case a: Int =>
157157 a
158158 case _ =>
159159 0
160160 }
161161 let StakeBalanceAmount = (StakeBalance + pmt.amount)
162162 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
163163 let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) {
164164 case a: Int =>
165165 a
166166 case _ =>
167167 0
168168 }
169169 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
170170 case a: Int =>
171171 a
172172 case _ =>
173173 0
174174 }
175175 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
176176 then (PrizeAmount == 0)
177177 else false)
178178 then 0
179179 else if (if ((HeightTransactFundBox == 0))
180180 then (PrizeAmount != 0)
181181 else false)
182182 then height
183183 else if (if ((HeightTransactFundBox != 0))
184184 then (PrizeAmount != 0)
185185 else false)
186186 then HeightTransactFundBox
187187 else 0
188188 if ((100000000 > GovernTokenSmartContractBalance))
189189 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
190190 else {
191191 let Reward = if ((StakeBalance == 0))
192192 then 10000
193193 else if ((NewUserStakeTransactions > 10))
194194 then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance)))
195195 else (10000 * (1 + (newAmountStakedToken / StakeBalance)))
196196 let UserAPYValue = if ((currentAmountGovernToken > 0))
197197 then ((100 * Reward) / currentAmountGovernToken)
198198 else 0
199199 let newAmountGovernToken = (currentAmountGovernToken + Reward)
200200 ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, height)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)]))
201201 }
202202 }
203203 else throw("Can deposit only StakeToken")
204204 }
205205
206206
207207
208208 @Callable(i)
209209 func WithdrawStakedFunds (amount) = {
210210 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
211211 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
212212 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
213213 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
214214 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
215215 let StakeBalance = match getInteger(this, "StakeBalance") {
216216 case a: Int =>
217217 a
218218 case _ =>
219219 0
220220 }
221221 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
222222 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
223223 case a: Int =>
224224 a
225225 case _ =>
226226 0
227227 }
228228 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
229229 then (PrizeAmount == 0)
230230 else false)
231231 then 0
232232 else if (if ((HeightTransactFundBox == 0))
233233 then (PrizeAmount != 0)
234234 else false)
235235 then height
236236 else if (if ((HeightTransactFundBox != 0))
237237 then (PrizeAmount != 0)
238238 else false)
239239 then HeightTransactFundBox
240240 else 0
241241 let currentKey = toBase58String(i.caller.bytes)
242242 let currentAmount = match getInteger(this, UserStakedTokenKey) {
243243 case a: Int =>
244244 a
245245 case _ =>
246246 0
247247 }
248248 let newAmount = (currentAmount - amount)
249249 let StakeBalanceAmount = (StakeBalance - amount)
250250 if ((0 > amount))
251251 then throw("Can't withdraw negative amount")
252252 else if ((0 > newAmount))
253253 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000))))
254254 else if ((100000000 > assetBalance(this, GovernToken)))
255255 then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000))))
256256 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)]))
257257 }
258258
259259
260260
261261 @Callable(i)
262262 func HarvestGovernToiken (amount) = {
263263 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
264264 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
265265 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
266266 let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings")
267267 let StakeBalance = match getInteger(this, "StakeBalance") {
268268 case a: Int =>
269269 a
270270 case _ =>
271271 0
272272 }
273273 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
274274 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
275275 case a: Int =>
276276 a
277277 case _ =>
278278 0
279279 }
280280 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
281281 then (PrizeAmount == 0)
282282 else false)
283283 then 0
284284 else if (if ((HeightTransactFundBox == 0))
285285 then (PrizeAmount != 0)
286286 else false)
287287 then height
288288 else if (if ((HeightTransactFundBox != 0))
289289 then (PrizeAmount != 0)
290290 else false)
291291 then HeightTransactFundBox
292292 else 0
293293 let currentKey = toBase58String(i.caller.bytes)
294294 let currentAmount = match getInteger(this, UserGovernTokenKey) {
295295 case a: Int =>
296296 a
297297 case _ =>
298298 0
299299 }
300300 let newAmount = (currentAmount - amount)
301301 if ((0 > amount))
302302 then throw("Can't withdraw negative amount")
303303 else if ((0 > newAmount))
304304 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000))))
305305 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)]))
306306 }
307307
308308
309309
310310 @Callable(i)
311311 func delayprize () = {
312312 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
313313 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
314314 let DelayDays = 1
315315 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
316316 let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken)
317317 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
318318 let StakeBalance = match getInteger(this, "StakeBalance") {
319319 case a: Int =>
320320 a
321321 case _ =>
322322 0
323323 }
324324 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
325325 let HeightTransactFundBox = match getInteger(this, "PrizeHeight") {
326326 case a: Int =>
327327 a
328328 case _ =>
329329 0
330330 }
331331 let PrizeHeightValue = if (if ((HeightTransactFundBox == 0))
332332 then (PrizeAmount == 0)
333333 else false)
334334 then 0
335335 else if (if ((HeightTransactFundBox == 0))
336336 then (PrizeAmount != 0)
337337 else false)
338338 then height
339339 else if (if ((HeightTransactFundBox != 0))
340340 then (PrizeAmount != 0)
341341 else false)
342342 then HeightTransactFundBox
343343 else 0
344344 let ActualDelay = match getInteger(this, "Delay") {
345345 case a: Int =>
346346 a
347347 case _ =>
348348 0
349349 }
350350 let ActualDelayCost = match getInteger(this, "DelayCost") {
351351 case a: Int =>
352352 a
353353 case _ =>
354354 10
355355 }
356356 let pmt = extract(i.payment)
357357 if (if (isDefined(pmt.assetId))
358358 then (extract(pmt.assetId) == GovernToken)
359359 else false)
360360 then {
361361 let UserGovernTokenAmount = pmt.amount
362362 let NewDelayCost = if ((ActualDelayCost == 0))
363363 then 1000000000
364364 else (2 * ActualDelayCost)
365365 if ((UserGovernTokenAmount >= NewDelayCost))
366366 then {
367367 let NewDelay = (ActualDelay + (1440 * DelayDays))
368368 WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)])
369369 }
370370 else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs"))
371371 }
372372 else throw("Can Use only Troika Token to Delay Reward")
373373 }
374374
375375
376376
377377 @Callable(i)
378378 func ClaimPrize () = {
379379 let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
380380 let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
381381 let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking")
382382 let UserPush = (toBase58String(i.caller.bytes) + "_Push")
383383 let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock")
384384 let minStakeBlock = 7
385385 let ContractGovTokenBalance = assetBalance(this, GovernToken)
386386 let ContractWalletStakeBalance = assetBalance(this, StakedToken)
387387 let StakeBalance = match getInteger(this, "StakeBalance") {
388388 case a: Int =>
389389 a
390390 case _ =>
391391 0
392392 }
393393 let PrizeAmount = (ContractWalletStakeBalance - StakeBalance)
394394 let UserPushValue = match getInteger(this, UserPush) {
395395 case a: Int =>
396396 a
397397 case _ =>
398398 0
399399 }
400400 let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) {
401401 case a: Int =>
402402 a
403403 case _ =>
404404 0
405405 }
406406 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
407407 case a: Int =>
408408 a
409409 case _ =>
410410 0
411411 }
412412 let ActualDelay = match getInteger(this, "Delay") {
413413 case a: Int =>
414414 a
415415 case _ =>
416416 0
417417 }
418418 let PrizeWinner = getStringValue(this, "HighestPushAddress")
419419 let PrizeHeight = match getInteger(this, "PrizeHeight") {
420420 case a: Int =>
421421 a
422422 case _ =>
423423 0
424424 }
425425 let HighestPushValue = match getInteger(this, "HighestPush") {
426426 case a: Int =>
427427 a
428428 case _ =>
429429 0
430430 }
431431 if (if ((PrizeAmount == 0))
432432 then true
433433 else (10000000000 > ContractGovTokenBalance))
434434 then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)")
435435 else if ((toBase58String(i.caller.bytes) != PrizeWinner))
436436 then throw("You are not the winner hence cannot claim the reward ")
437437 else if (if ((100000000 > UserStakedTokenAmount))
438438 then ((1440 * minStakeBlock) > UserLastStakeBlockValue)
439439 else false)
440440 then throw("You have to Stake ASIMI Token to claim reward ")
441441 else if (if ((height > (PrizeHeight + ActualDelay)))
442442 then (UserPushValue >= HighestPushValue)
443443 else false)
444444 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)]))
445445 else throw("You have to deposit 100 GovernToken to claim Reward and/or wait till countown is finished")
446446 }
447447
448448

github/deemru/w8io/026f985 
58.52 ms