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+XbkEAAAACFVzZXJQdXNoCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAFX1B1c2gJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACURlbGF5Q29zdAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFRGVsYXkAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAC0hpZ2hlc3RQdXNoAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABJIaWdoZXN0UHVzaEFkZHJlc3MAAA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R292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIGFuZC9vciB3YWl0IHRpbGwgY291bnRvd24gaXMgZmluaXNoZWQAAAAA+2Pwqg==", "height": 1371057, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D4LBUtpmB1LdV1VxfHpoNa6LuXf42wSAZrF4waGHtXV Next: 6FQBHugKwzAASznYSYsgE2muvwf1WZAjeHQtWQDzPuSe Diff:
Old | New | Differences | |
---|---|---|---|
113 | 113 | then true | |
114 | 114 | else (height > ((PrizeHeightValue + NewDelay) + 20)) | |
115 | 115 | else false) | |
116 | - | then | |
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 | 117 | 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)))) | |
118 | 118 | } | |
119 | 119 | else throw("Can deposit only positive amounts of ASIMI Token") |
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), DataEntry("HighestPush", 0), DataEntry("HighestPushAddress", 0), DataEntry(UserPush, 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) + 20)) | |
115 | 115 | else false) | |
116 | - | then | |
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 | 117 | 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)))) | |
118 | 118 | } | |
119 | 119 | else throw("Can deposit only positive amounts of ASIMI Token") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(i) | |
125 | 125 | func Stake () = { | |
126 | 126 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
127 | 127 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
128 | 128 | let pmt = extract(i.payment) | |
129 | 129 | if (if ((pmt.amount > 0)) | |
130 | 130 | then (pmt.assetId == StakedToken) | |
131 | 131 | else false) | |
132 | 132 | then { | |
133 | 133 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
134 | 134 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
135 | 135 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
136 | 136 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
137 | 137 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
138 | 138 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
139 | 139 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
140 | 140 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
141 | 141 | case a: Int => | |
142 | 142 | a | |
143 | 143 | case _ => | |
144 | 144 | 0 | |
145 | 145 | } | |
146 | 146 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
147 | 147 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
148 | 148 | case a: Int => | |
149 | 149 | a | |
150 | 150 | case _ => | |
151 | 151 | 0 | |
152 | 152 | } | |
153 | 153 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
154 | 154 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
155 | 155 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
156 | 156 | case a: Int => | |
157 | 157 | a | |
158 | 158 | case _ => | |
159 | 159 | 0 | |
160 | 160 | } | |
161 | 161 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
162 | 162 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
163 | 163 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
164 | 164 | case a: Int => | |
165 | 165 | a | |
166 | 166 | case _ => | |
167 | 167 | 0 | |
168 | 168 | } | |
169 | 169 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
170 | 170 | case a: Int => | |
171 | 171 | a | |
172 | 172 | case _ => | |
173 | 173 | 0 | |
174 | 174 | } | |
175 | 175 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
176 | 176 | then (PrizeAmount == 0) | |
177 | 177 | else false) | |
178 | 178 | then 0 | |
179 | 179 | else if (if ((HeightTransactFundBox == 0)) | |
180 | 180 | then (PrizeAmount != 0) | |
181 | 181 | else false) | |
182 | 182 | then height | |
183 | 183 | else if (if ((HeightTransactFundBox != 0)) | |
184 | 184 | then (PrizeAmount != 0) | |
185 | 185 | else false) | |
186 | 186 | then HeightTransactFundBox | |
187 | 187 | else 0 | |
188 | 188 | if ((100000000 > GovernTokenSmartContractBalance)) | |
189 | 189 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
190 | 190 | else { | |
191 | 191 | let Reward = if ((StakeBalance == 0)) | |
192 | 192 | then 10000 | |
193 | 193 | else if ((NewUserStakeTransactions > 10)) | |
194 | 194 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
195 | 195 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
196 | 196 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
197 | 197 | then ((100 * Reward) / currentAmountGovernToken) | |
198 | 198 | else 0 | |
199 | 199 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
200 | 200 | 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)])) | |
201 | 201 | } | |
202 | 202 | } | |
203 | 203 | else throw("Can deposit only StakeToken") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | 208 | @Callable(i) | |
209 | 209 | func WithdrawStakedFunds (amount) = { | |
210 | 210 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
211 | 211 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
212 | 212 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
213 | 213 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
214 | 214 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
215 | 215 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
216 | 216 | case a: Int => | |
217 | 217 | a | |
218 | 218 | case _ => | |
219 | 219 | 0 | |
220 | 220 | } | |
221 | 221 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
222 | 222 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
223 | 223 | case a: Int => | |
224 | 224 | a | |
225 | 225 | case _ => | |
226 | 226 | 0 | |
227 | 227 | } | |
228 | 228 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
229 | 229 | then (PrizeAmount == 0) | |
230 | 230 | else false) | |
231 | 231 | then 0 | |
232 | 232 | else if (if ((HeightTransactFundBox == 0)) | |
233 | 233 | then (PrizeAmount != 0) | |
234 | 234 | else false) | |
235 | 235 | then height | |
236 | 236 | else if (if ((HeightTransactFundBox != 0)) | |
237 | 237 | then (PrizeAmount != 0) | |
238 | 238 | else false) | |
239 | 239 | then HeightTransactFundBox | |
240 | 240 | else 0 | |
241 | 241 | let currentKey = toBase58String(i.caller.bytes) | |
242 | 242 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
243 | 243 | case a: Int => | |
244 | 244 | a | |
245 | 245 | case _ => | |
246 | 246 | 0 | |
247 | 247 | } | |
248 | 248 | let newAmount = (currentAmount - amount) | |
249 | 249 | let StakeBalanceAmount = (StakeBalance - amount) | |
250 | 250 | if ((0 > amount)) | |
251 | 251 | then throw("Can't withdraw negative amount") | |
252 | 252 | else if ((0 > newAmount)) | |
253 | 253 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
254 | 254 | else if ((100000000 > assetBalance(this, GovernToken))) | |
255 | 255 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
256 | 256 | 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)])) | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | ||
261 | 261 | @Callable(i) | |
262 | 262 | func HarvestGovernToiken (amount) = { | |
263 | 263 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
264 | 264 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
265 | 265 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
266 | 266 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
267 | 267 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
268 | 268 | case a: Int => | |
269 | 269 | a | |
270 | 270 | case _ => | |
271 | 271 | 0 | |
272 | 272 | } | |
273 | 273 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
274 | 274 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
275 | 275 | case a: Int => | |
276 | 276 | a | |
277 | 277 | case _ => | |
278 | 278 | 0 | |
279 | 279 | } | |
280 | 280 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
281 | 281 | then (PrizeAmount == 0) | |
282 | 282 | else false) | |
283 | 283 | then 0 | |
284 | 284 | else if (if ((HeightTransactFundBox == 0)) | |
285 | 285 | then (PrizeAmount != 0) | |
286 | 286 | else false) | |
287 | 287 | then height | |
288 | 288 | else if (if ((HeightTransactFundBox != 0)) | |
289 | 289 | then (PrizeAmount != 0) | |
290 | 290 | else false) | |
291 | 291 | then HeightTransactFundBox | |
292 | 292 | else 0 | |
293 | 293 | let currentKey = toBase58String(i.caller.bytes) | |
294 | 294 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
295 | 295 | case a: Int => | |
296 | 296 | a | |
297 | 297 | case _ => | |
298 | 298 | 0 | |
299 | 299 | } | |
300 | 300 | let newAmount = (currentAmount - amount) | |
301 | 301 | if ((0 > amount)) | |
302 | 302 | then throw("Can't withdraw negative amount") | |
303 | 303 | else if ((0 > newAmount)) | |
304 | 304 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
305 | 305 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(i) | |
311 | 311 | func delayprize () = { | |
312 | 312 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
313 | 313 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
314 | 314 | let DelayDays = 1 | |
315 | 315 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
316 | 316 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
317 | 317 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
318 | 318 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
319 | 319 | case a: Int => | |
320 | 320 | a | |
321 | 321 | case _ => | |
322 | 322 | 0 | |
323 | 323 | } | |
324 | 324 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
325 | 325 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
326 | 326 | case a: Int => | |
327 | 327 | a | |
328 | 328 | case _ => | |
329 | 329 | 0 | |
330 | 330 | } | |
331 | 331 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
332 | 332 | then (PrizeAmount == 0) | |
333 | 333 | else false) | |
334 | 334 | then 0 | |
335 | 335 | else if (if ((HeightTransactFundBox == 0)) | |
336 | 336 | then (PrizeAmount != 0) | |
337 | 337 | else false) | |
338 | 338 | then height | |
339 | 339 | else if (if ((HeightTransactFundBox != 0)) | |
340 | 340 | then (PrizeAmount != 0) | |
341 | 341 | else false) | |
342 | 342 | then HeightTransactFundBox | |
343 | 343 | else 0 | |
344 | 344 | let ActualDelay = match getInteger(this, "Delay") { | |
345 | 345 | case a: Int => | |
346 | 346 | a | |
347 | 347 | case _ => | |
348 | 348 | 0 | |
349 | 349 | } | |
350 | 350 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
351 | 351 | case a: Int => | |
352 | 352 | a | |
353 | 353 | case _ => | |
354 | 354 | 10 | |
355 | 355 | } | |
356 | 356 | let pmt = extract(i.payment) | |
357 | 357 | if (if (isDefined(pmt.assetId)) | |
358 | 358 | then (extract(pmt.assetId) == GovernToken) | |
359 | 359 | else false) | |
360 | 360 | then { | |
361 | 361 | let UserGovernTokenAmount = pmt.amount | |
362 | 362 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
363 | 363 | then 1000000000 | |
364 | 364 | else (2 * ActualDelayCost) | |
365 | 365 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
366 | 366 | then { | |
367 | 367 | let NewDelay = (ActualDelay + (1440 * DelayDays)) | |
368 | 368 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
369 | 369 | } | |
370 | 370 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
371 | 371 | } | |
372 | 372 | else throw("Can Use only Troika Token to Delay Reward") | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func ClaimPrize () = { | |
379 | 379 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
380 | 380 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
381 | 381 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
382 | 382 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
383 | 383 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
384 | 384 | let minStakeBlock = 7 | |
385 | 385 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
386 | 386 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
387 | 387 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
388 | 388 | case a: Int => | |
389 | 389 | a | |
390 | 390 | case _ => | |
391 | 391 | 0 | |
392 | 392 | } | |
393 | 393 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
394 | 394 | let UserPushValue = match getInteger(this, UserPush) { | |
395 | 395 | case a: Int => | |
396 | 396 | a | |
397 | 397 | case _ => | |
398 | 398 | 0 | |
399 | 399 | } | |
400 | 400 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
401 | 401 | case a: Int => | |
402 | 402 | a | |
403 | 403 | case _ => | |
404 | 404 | 0 | |
405 | 405 | } | |
406 | 406 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
407 | 407 | case a: Int => | |
408 | 408 | a | |
409 | 409 | case _ => | |
410 | 410 | 0 | |
411 | 411 | } | |
412 | 412 | let ActualDelay = match getInteger(this, "Delay") { | |
413 | 413 | case a: Int => | |
414 | 414 | a | |
415 | 415 | case _ => | |
416 | 416 | 0 | |
417 | 417 | } | |
418 | 418 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
419 | 419 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
420 | 420 | case a: Int => | |
421 | 421 | a | |
422 | 422 | case _ => | |
423 | 423 | 0 | |
424 | 424 | } | |
425 | 425 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
426 | 426 | case a: Int => | |
427 | 427 | a | |
428 | 428 | case _ => | |
429 | 429 | 0 | |
430 | 430 | } | |
431 | 431 | if (if ((PrizeAmount == 0)) | |
432 | 432 | then true | |
433 | 433 | else (10000000000 > ContractGovTokenBalance)) | |
434 | 434 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
435 | 435 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
436 | 436 | then throw("You are not the winner hence cannot claim the reward ") | |
437 | 437 | else if (if ((100000000 > UserStakedTokenAmount)) | |
438 | 438 | then ((1440 * minStakeBlock) > UserLastStakeBlockValue) | |
439 | 439 | else false) | |
440 | 440 | then throw("You have to Stake ASIMI Token to claim reward ") | |
441 | 441 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
442 | 442 | then (UserPushValue >= HighestPushValue) | |
443 | 443 | else false) | |
444 | 444 | 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)])) | |
445 | 445 | else throw("You have to deposit 100 GovernToken to claim Reward and/or wait till countown is finished") | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 |
github/deemru/w8io/026f985 58.52 ms ◑