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