tx · 9mVaQNWXxjxh9eZZgd89ui1jY63jxmxkvVkbx1KiWhef 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2021.01.28 12:08 [1373135] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "9mVaQNWXxjxh9eZZgd89ui1jY63jxmxkvVkbx1KiWhef", "fee": 1440000, "feeAssetId": null, "timestamp": 1611824930365, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "3DdYYGq5hUpUUmnmq68TCih2Tup1nVhEEwDVLJxmUPA5kYpuTHUt3jAZs2T1npdJwmSXQS8GfgBoTYPBs9RtEFX6" ], "script": "base64:AAIDAAAAAAAAABYIARIAEgASABIDCgEBEgMKAQESABIAAAAAAAAAAAcAAAABaQEAAAAMUmVzZXRBY2NvdW50AAAAAAQAAAALU3Rha2VkVG9rZW4BAAAAILXRKGG85gSnPN40vyincnte9/w4CJZnKBhuOOwELCGyBAAAAAtHb3Zlcm5Ub2tlbgEAAAAgEID4OLobvW7l4Eafs479e9fJOrvsYRoAST8NKMW+XbkEAAAACFVzZXJQdXNoCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAFX1B1c2gJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACURlbGF5Q29zdAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFRGVsYXkAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAApQdXNoUmV3YXJkAAAAAAQAAAALU3Rha2VkVG9rZW4BAAAAILXRKGG85gSnPN40vyincnte9/w4CJZnKBhuOOwELCGyBAAAAAtHb3Zlcm5Ub2tl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AWVlvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCBhbmQvb3Igd2FpdCB0aWxsIGNvdW50b3duIGlzIGZpbmlzaGVkAAAAAN85FXc=", "height": 1373135, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4PSQjombzjeSd8RLqVnCfWbSz8RpXtHZQ4Ky8oESZmm5 Next: 4HguWLWWXqu8FLj3BrPRyquLjCwQ6aHsgWdpET9SBHbe Diff:
Old | New | Differences | |
---|---|---|---|
114 | 114 | else (height > ((PrizeHeightValue + NewDelay) + 1440)) | |
115 | 115 | else false) | |
116 | 116 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastStakeBlock, height), DataEntry("PrizeHeight", height), DataEntry("Delay", NewDelay)]) | |
117 | - | else throw((("Your Push dot not comply one of the following conditions: " + "<br> 1. Positive Value | |
118 | - | 2. Must Staked ASIMI Token for a minimum of week | |
119 | - | ") + "3. Should be Higher than last Highest Push 4. Should wait required time between Pushes | |
120 | - | ")) | |
117 | + | else throw("Your Push dot not comply one of the following conditions: | |
118 | + | 1. Positive Value | |
119 | + | 2. Must Staked ASIMI Token for a minimum of week | |
120 | + | 3. Should be Higher than last Highest Push 4. Should wait required time between Pushes | |
121 | + | ") | |
121 | 122 | } | |
122 | 123 | else throw("Can deposit only positive amounts of ASIMI Token") | |
123 | 124 | } |
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 ResetAccount () = { | |
8 | 8 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
9 | 9 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | 10 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
11 | 11 | WriteSet([DataEntry("DelayCost", 0), DataEntry("Delay", 0)]) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func PushReward () = { | |
18 | 18 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
19 | 19 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
20 | 20 | let minPushBlock = 10 | |
21 | 21 | let minStakeBlock = 0 | |
22 | 22 | let DelayAfterPush = 20 | |
23 | 23 | let pmt = extract(i.payment) | |
24 | 24 | if (if ((pmt.amount > 0)) | |
25 | 25 | then (pmt.assetId == GovernToken) | |
26 | 26 | else false) | |
27 | 27 | then { | |
28 | 28 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
29 | 29 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
30 | 30 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
31 | 31 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
32 | 32 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
33 | 33 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
34 | 34 | case a: Int => | |
35 | 35 | a | |
36 | 36 | case _ => | |
37 | 37 | 0 | |
38 | 38 | } | |
39 | 39 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
40 | 40 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
41 | 41 | case a: Int => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | 0 | |
45 | 45 | } | |
46 | 46 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
47 | 47 | then (PrizeAmount == 0) | |
48 | 48 | else false) | |
49 | 49 | then 0 | |
50 | 50 | else if (if ((HeightTransactFundBox == 0)) | |
51 | 51 | then (PrizeAmount != 0) | |
52 | 52 | else false) | |
53 | 53 | then height | |
54 | 54 | else if (if ((HeightTransactFundBox != 0)) | |
55 | 55 | then (PrizeAmount != 0) | |
56 | 56 | else false) | |
57 | 57 | then HeightTransactFundBox | |
58 | 58 | else 0 | |
59 | 59 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
60 | 60 | case a: Int => | |
61 | 61 | a | |
62 | 62 | case _ => | |
63 | 63 | 0 | |
64 | 64 | } | |
65 | 65 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
66 | 66 | case a: Int => | |
67 | 67 | a | |
68 | 68 | case _ => | |
69 | 69 | 0 | |
70 | 70 | } | |
71 | 71 | let ActualDelay = match getInteger(this, "Delay") { | |
72 | 72 | case a: Int => | |
73 | 73 | a | |
74 | 74 | case _ => | |
75 | 75 | 0 | |
76 | 76 | } | |
77 | 77 | let NewDelay = (ActualDelay + DelayAfterPush) | |
78 | 78 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
79 | 79 | case a: Int => | |
80 | 80 | a | |
81 | 81 | case _ => | |
82 | 82 | 0 | |
83 | 83 | } | |
84 | 84 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
85 | 85 | case a: Int => | |
86 | 86 | a | |
87 | 87 | case _ => | |
88 | 88 | 0 | |
89 | 89 | } | |
90 | 90 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
91 | 91 | case a: Int => | |
92 | 92 | a | |
93 | 93 | case _ => | |
94 | 94 | 0 | |
95 | 95 | } | |
96 | 96 | let UserStakeValue = match getInteger(this, UserStake) { | |
97 | 97 | case a: Int => | |
98 | 98 | a | |
99 | 99 | case _ => | |
100 | 100 | 0 | |
101 | 101 | } | |
102 | 102 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
103 | 103 | if (if (if (if (if (if ((UserPushvalue > 0)) | |
104 | 104 | then ((height - UserLastStakeBlockValue) > (1440 * minStakeBlock)) | |
105 | 105 | else false) | |
106 | 106 | then ((height - UserLastPushBlockValue) > minPushBlock) | |
107 | 107 | else false) | |
108 | 108 | then (UserPushvalue > HighestPushValue) | |
109 | 109 | else false) | |
110 | 110 | then (UserStakeValue > 0) | |
111 | 111 | else false) | |
112 | 112 | then if (((PrizeHeightValue + NewDelay) > height)) | |
113 | 113 | then true | |
114 | 114 | else (height > ((PrizeHeightValue + NewDelay) + 1440)) | |
115 | 115 | else false) | |
116 | 116 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastStakeBlock, height), DataEntry("PrizeHeight", height), DataEntry("Delay", NewDelay)]) | |
117 | - | else throw((("Your Push dot not comply one of the following conditions: " + "<br> 1. Positive Value | |
118 | - | 2. Must Staked ASIMI Token for a minimum of week | |
119 | - | ") + "3. Should be Higher than last Highest Push 4. Should wait required time between Pushes | |
120 | - | ")) | |
117 | + | else throw("Your Push dot not comply one of the following conditions: | |
118 | + | 1. Positive Value | |
119 | + | 2. Must Staked ASIMI Token for a minimum of week | |
120 | + | 3. Should be Higher than last Highest Push 4. Should wait required time between Pushes | |
121 | + | ") | |
121 | 122 | } | |
122 | 123 | else throw("Can deposit only positive amounts of ASIMI Token") | |
123 | 124 | } | |
124 | 125 | ||
125 | 126 | ||
126 | 127 | ||
127 | 128 | @Callable(i) | |
128 | 129 | func Stake () = { | |
129 | 130 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
130 | 131 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
131 | 132 | let pmt = extract(i.payment) | |
132 | 133 | if (if ((pmt.amount > 0)) | |
133 | 134 | then (pmt.assetId == StakedToken) | |
134 | 135 | else false) | |
135 | 136 | then { | |
136 | 137 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
137 | 138 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
138 | 139 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
139 | 140 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
140 | 141 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
141 | 142 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
142 | 143 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
143 | 144 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
144 | 145 | case a: Int => | |
145 | 146 | a | |
146 | 147 | case _ => | |
147 | 148 | 0 | |
148 | 149 | } | |
149 | 150 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
150 | 151 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
151 | 152 | case a: Int => | |
152 | 153 | a | |
153 | 154 | case _ => | |
154 | 155 | 0 | |
155 | 156 | } | |
156 | 157 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
157 | 158 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
158 | 159 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
159 | 160 | case a: Int => | |
160 | 161 | a | |
161 | 162 | case _ => | |
162 | 163 | 0 | |
163 | 164 | } | |
164 | 165 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
165 | 166 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
166 | 167 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
167 | 168 | case a: Int => | |
168 | 169 | a | |
169 | 170 | case _ => | |
170 | 171 | 0 | |
171 | 172 | } | |
172 | 173 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
173 | 174 | case a: Int => | |
174 | 175 | a | |
175 | 176 | case _ => | |
176 | 177 | 0 | |
177 | 178 | } | |
178 | 179 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
179 | 180 | then (PrizeAmount == 0) | |
180 | 181 | else false) | |
181 | 182 | then 0 | |
182 | 183 | else if (if ((HeightTransactFundBox == 0)) | |
183 | 184 | then (PrizeAmount != 0) | |
184 | 185 | else false) | |
185 | 186 | then height | |
186 | 187 | else if (if ((HeightTransactFundBox != 0)) | |
187 | 188 | then (PrizeAmount != 0) | |
188 | 189 | else false) | |
189 | 190 | then HeightTransactFundBox | |
190 | 191 | else 0 | |
191 | 192 | if ((100000000 > GovernTokenSmartContractBalance)) | |
192 | 193 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
193 | 194 | else { | |
194 | 195 | let Reward = if ((StakeBalance == 0)) | |
195 | 196 | then 10000 | |
196 | 197 | else if ((NewUserStakeTransactions > 10)) | |
197 | 198 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
198 | 199 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
199 | 200 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
200 | 201 | then ((100 * Reward) / currentAmountGovernToken) | |
201 | 202 | else 0 | |
202 | 203 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
203 | 204 | 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)])) | |
204 | 205 | } | |
205 | 206 | } | |
206 | 207 | else throw("Can deposit only StakeToken") | |
207 | 208 | } | |
208 | 209 | ||
209 | 210 | ||
210 | 211 | ||
211 | 212 | @Callable(i) | |
212 | 213 | func WithdrawStakedFunds (amount) = { | |
213 | 214 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
214 | 215 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
215 | 216 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
216 | 217 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
217 | 218 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
218 | 219 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
219 | 220 | case a: Int => | |
220 | 221 | a | |
221 | 222 | case _ => | |
222 | 223 | 0 | |
223 | 224 | } | |
224 | 225 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
225 | 226 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
226 | 227 | case a: Int => | |
227 | 228 | a | |
228 | 229 | case _ => | |
229 | 230 | 0 | |
230 | 231 | } | |
231 | 232 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
232 | 233 | then (PrizeAmount == 0) | |
233 | 234 | else false) | |
234 | 235 | then 0 | |
235 | 236 | else if (if ((HeightTransactFundBox == 0)) | |
236 | 237 | then (PrizeAmount != 0) | |
237 | 238 | else false) | |
238 | 239 | then height | |
239 | 240 | else if (if ((HeightTransactFundBox != 0)) | |
240 | 241 | then (PrizeAmount != 0) | |
241 | 242 | else false) | |
242 | 243 | then HeightTransactFundBox | |
243 | 244 | else 0 | |
244 | 245 | let currentKey = toBase58String(i.caller.bytes) | |
245 | 246 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
246 | 247 | case a: Int => | |
247 | 248 | a | |
248 | 249 | case _ => | |
249 | 250 | 0 | |
250 | 251 | } | |
251 | 252 | let newAmount = (currentAmount - amount) | |
252 | 253 | let StakeBalanceAmount = (StakeBalance - amount) | |
253 | 254 | if ((0 > amount)) | |
254 | 255 | then throw("Can't withdraw negative amount") | |
255 | 256 | else if ((0 > newAmount)) | |
256 | 257 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
257 | 258 | else if ((100000000 > assetBalance(this, GovernToken))) | |
258 | 259 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
259 | 260 | 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)])) | |
260 | 261 | } | |
261 | 262 | ||
262 | 263 | ||
263 | 264 | ||
264 | 265 | @Callable(i) | |
265 | 266 | func HarvestGovernToiken (amount) = { | |
266 | 267 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
267 | 268 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
268 | 269 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
269 | 270 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
270 | 271 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
271 | 272 | case a: Int => | |
272 | 273 | a | |
273 | 274 | case _ => | |
274 | 275 | 0 | |
275 | 276 | } | |
276 | 277 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
277 | 278 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
278 | 279 | case a: Int => | |
279 | 280 | a | |
280 | 281 | case _ => | |
281 | 282 | 0 | |
282 | 283 | } | |
283 | 284 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
284 | 285 | then (PrizeAmount == 0) | |
285 | 286 | else false) | |
286 | 287 | then 0 | |
287 | 288 | else if (if ((HeightTransactFundBox == 0)) | |
288 | 289 | then (PrizeAmount != 0) | |
289 | 290 | else false) | |
290 | 291 | then height | |
291 | 292 | else if (if ((HeightTransactFundBox != 0)) | |
292 | 293 | then (PrizeAmount != 0) | |
293 | 294 | else false) | |
294 | 295 | then HeightTransactFundBox | |
295 | 296 | else 0 | |
296 | 297 | let currentKey = toBase58String(i.caller.bytes) | |
297 | 298 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
298 | 299 | case a: Int => | |
299 | 300 | a | |
300 | 301 | case _ => | |
301 | 302 | 0 | |
302 | 303 | } | |
303 | 304 | let newAmount = (currentAmount - amount) | |
304 | 305 | if ((0 > amount)) | |
305 | 306 | then throw("Can't withdraw negative amount") | |
306 | 307 | else if ((0 > newAmount)) | |
307 | 308 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
308 | 309 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
309 | 310 | } | |
310 | 311 | ||
311 | 312 | ||
312 | 313 | ||
313 | 314 | @Callable(i) | |
314 | 315 | func delayprize () = { | |
315 | 316 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
316 | 317 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
317 | 318 | let DelayDays = 1 | |
318 | 319 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
319 | 320 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
320 | 321 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
321 | 322 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
322 | 323 | case a: Int => | |
323 | 324 | a | |
324 | 325 | case _ => | |
325 | 326 | 0 | |
326 | 327 | } | |
327 | 328 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
328 | 329 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
329 | 330 | case a: Int => | |
330 | 331 | a | |
331 | 332 | case _ => | |
332 | 333 | 0 | |
333 | 334 | } | |
334 | 335 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
335 | 336 | then (PrizeAmount == 0) | |
336 | 337 | else false) | |
337 | 338 | then 0 | |
338 | 339 | else if (if ((HeightTransactFundBox == 0)) | |
339 | 340 | then (PrizeAmount != 0) | |
340 | 341 | else false) | |
341 | 342 | then height | |
342 | 343 | else if (if ((HeightTransactFundBox != 0)) | |
343 | 344 | then (PrizeAmount != 0) | |
344 | 345 | else false) | |
345 | 346 | then HeightTransactFundBox | |
346 | 347 | else 0 | |
347 | 348 | let ActualDelay = match getInteger(this, "Delay") { | |
348 | 349 | case a: Int => | |
349 | 350 | a | |
350 | 351 | case _ => | |
351 | 352 | 0 | |
352 | 353 | } | |
353 | 354 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
354 | 355 | case a: Int => | |
355 | 356 | a | |
356 | 357 | case _ => | |
357 | 358 | 10 | |
358 | 359 | } | |
359 | 360 | let pmt = extract(i.payment) | |
360 | 361 | if (if (isDefined(pmt.assetId)) | |
361 | 362 | then (extract(pmt.assetId) == GovernToken) | |
362 | 363 | else false) | |
363 | 364 | then { | |
364 | 365 | let UserGovernTokenAmount = pmt.amount | |
365 | 366 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
366 | 367 | then 1000000000 | |
367 | 368 | else (2 * ActualDelayCost) | |
368 | 369 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
369 | 370 | then { | |
370 | 371 | let NewDelay = (ActualDelay + (1440 * DelayDays)) | |
371 | 372 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
372 | 373 | } | |
373 | 374 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
374 | 375 | } | |
375 | 376 | else throw("Can Use only Troika Token to Delay Reward") | |
376 | 377 | } | |
377 | 378 | ||
378 | 379 | ||
379 | 380 | ||
380 | 381 | @Callable(i) | |
381 | 382 | func ClaimPrize () = { | |
382 | 383 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
383 | 384 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
384 | 385 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
385 | 386 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
386 | 387 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
387 | 388 | let minStakeBlock = 7 | |
388 | 389 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
389 | 390 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
390 | 391 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
391 | 392 | case a: Int => | |
392 | 393 | a | |
393 | 394 | case _ => | |
394 | 395 | 0 | |
395 | 396 | } | |
396 | 397 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
397 | 398 | let UserPushValue = match getInteger(this, UserPush) { | |
398 | 399 | case a: Int => | |
399 | 400 | a | |
400 | 401 | case _ => | |
401 | 402 | 0 | |
402 | 403 | } | |
403 | 404 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
404 | 405 | case a: Int => | |
405 | 406 | a | |
406 | 407 | case _ => | |
407 | 408 | 0 | |
408 | 409 | } | |
409 | 410 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
410 | 411 | case a: Int => | |
411 | 412 | a | |
412 | 413 | case _ => | |
413 | 414 | 0 | |
414 | 415 | } | |
415 | 416 | let ActualDelay = match getInteger(this, "Delay") { | |
416 | 417 | case a: Int => | |
417 | 418 | a | |
418 | 419 | case _ => | |
419 | 420 | 0 | |
420 | 421 | } | |
421 | 422 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
422 | 423 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
423 | 424 | case a: Int => | |
424 | 425 | a | |
425 | 426 | case _ => | |
426 | 427 | 0 | |
427 | 428 | } | |
428 | 429 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
429 | 430 | case a: Int => | |
430 | 431 | a | |
431 | 432 | case _ => | |
432 | 433 | 0 | |
433 | 434 | } | |
434 | 435 | if (if ((PrizeAmount == 0)) | |
435 | 436 | then true | |
436 | 437 | else (10000000000 > ContractGovTokenBalance)) | |
437 | 438 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
438 | 439 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
439 | 440 | then throw("You are not the winner hence cannot claim the reward ") | |
440 | 441 | else if (if ((100000000 > UserStakedTokenAmount)) | |
441 | 442 | then ((1440 * minStakeBlock) > UserLastStakeBlockValue) | |
442 | 443 | else false) | |
443 | 444 | then throw("You have to Stake ASIMI Token to claim reward ") | |
444 | 445 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
445 | 446 | then (UserPushValue >= HighestPushValue) | |
446 | 447 | else false) | |
447 | 448 | 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)])) | |
448 | 449 | else throw("You have to deposit 100 GovernToken to claim Reward and/or wait till countown is finished") | |
449 | 450 | } | |
450 | 451 | ||
451 | 452 |
github/deemru/w8io/169f3d6 83.06 ms ◑