tx · 7sxo9pNpmtYVDL3BkiXXeK3fLcWMRevQkGoaB7yb8yQf 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2021.05.29 14:26 [1546896] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "7sxo9pNpmtYVDL3BkiXXeK3fLcWMRevQkGoaB7yb8yQf", "fee": 1440000, "feeAssetId": null, "timestamp": 1622287600456, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "2fk1VuXQuikc3EfCdUaeCEZWzU8zftsyf6UCecNqWU3ZgGRFaQqeHC36c29rxSacZD6TGKj5rFZPoCioXEsX8kef" ], "script": "base64:AAIDAAAAAAAAABsIARIAEgASABIDCgEBEgMKAQESABIAEgMKAQgAAAAAAAAACAAAAAFpAQAAAAtEZXZXaXRoZHJhdwAAAAAEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALR292ZXJuVG9rZW4BAAAAIBCA+Di6G71u5eBGn7OO/XvXyTq77GEaAEk/DSjFvl25AwkAAAAAAAACBQAAAApjdXJyZW50S2V5AgAAACMzUDc0YnVIdDk4Qm5vakZjYVJFSlp0Yjk4S0R5VW1aR2VtSgQAAAAMRGV2Qm94QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAABkRldkJveAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwkAAGYAAAACAAAAAAAAAAAABQAAAAxEZXZCb3hBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBA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RvIGJlIHRoZSB1c2VyIHdpdGggdGhlIGhpZ2hlc3QgUHVzaCBhbmQgd2FpdCB0aWxsIGNvdW50b3duIGlzIGZpbmlzaGVkLCB0byBjbGFpbSBSZXdhcmQAAAABaQEAAAAJQWRkbWVudG9yAAAAAQAAAAZNZW50b3IEAAAAC1N0YWtlZFRva2VuAQAAACC10ShhvOYEpzzeNL8op3J7Xvf8OAiWZygYbjjsBCwhsgQAAAALR292ZXJuVG9rZW4BAAAAIBCA+Di6G71u5eBGn7OO/XvXyTq77GEaAEk/DSjFvl25BAAAABFVc2VyTWVudG9yQWRkcmVzcwkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAB19NZW50b3IDCQEAAAACIT0AAAACBQAAAAZNZW50b3ICAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAARVXNlck1lbnRvckFkZHJlc3MFAAAABk1lbnRvcgUAAAADbmlsCQAAAgAAAAECAAAAIE1lbnRvcidzIEFkZHJlc3MgY2Fubm90IGJlIGVtcHR5AAAAAMPbdbU=", "height": 1546896, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4HguWLWWXqu8FLj3BrPRyquLjCwQ6aHsgWdpET9SBHbe Next: none Full:
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 DevWithdraw () = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | 10 | if ((currentKey == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ")) | |
11 | 11 | then { | |
12 | 12 | let DevBoxAmount = match getInteger(this, "DevBox") { | |
13 | 13 | case a: Int => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | 0 | |
17 | 17 | } | |
18 | 18 | if ((0 > DevBoxAmount)) | |
19 | 19 | then throw("Not enough balance") | |
20 | 20 | else ScriptResult(WriteSet([DataEntry("DevBox", 0)]), TransferSet([ScriptTransfer(i.caller, DevBoxAmount, GovernToken)])) | |
21 | 21 | } | |
22 | 22 | else throw("You cannot withdraw as your are not the Dev.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func PushReward () = { | |
29 | 29 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
30 | 30 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
31 | 31 | let minPushBlock = 10 | |
32 | 32 | let minStakeBlock = 7 | |
33 | 33 | let DelayAfterPush = 1440 | |
34 | 34 | let minref = 0 | |
35 | 35 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
36 | 36 | let pmt = extract(i.payment) | |
37 | 37 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
38 | 38 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
39 | 39 | case a: Int => | |
40 | 40 | a | |
41 | 41 | case _ => | |
42 | 42 | 0 | |
43 | 43 | } | |
44 | 44 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
45 | 45 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
46 | 46 | case a: Int => | |
47 | 47 | a | |
48 | 48 | case _ => | |
49 | 49 | 0 | |
50 | 50 | } | |
51 | 51 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
52 | 52 | case a: Int => | |
53 | 53 | a | |
54 | 54 | case _ => | |
55 | 55 | 0 | |
56 | 56 | } | |
57 | 57 | if ((userWalletGovernBalance > pmt.amount)) | |
58 | 58 | then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue)) | |
59 | 59 | then (pmt.assetId == GovernToken) | |
60 | 60 | else false) | |
61 | 61 | then { | |
62 | 62 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
63 | 63 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
64 | 64 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
65 | 65 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
66 | 66 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
67 | 67 | case a: Int => | |
68 | 68 | a | |
69 | 69 | case _ => | |
70 | 70 | 0 | |
71 | 71 | } | |
72 | 72 | let PrizeAmount = match getInteger(this, "FundBox") { | |
73 | 73 | case a: Int => | |
74 | 74 | a | |
75 | 75 | case _ => | |
76 | 76 | 0 | |
77 | 77 | } | |
78 | 78 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
79 | 79 | case a: Int => | |
80 | 80 | a | |
81 | 81 | case _ => | |
82 | 82 | 0 | |
83 | 83 | } | |
84 | 84 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
85 | 85 | then (PrizeAmount == 0) | |
86 | 86 | else false) | |
87 | 87 | then 0 | |
88 | 88 | else if (if ((HeightTransactFundBox == 0)) | |
89 | 89 | then (PrizeAmount != 0) | |
90 | 90 | else false) | |
91 | 91 | then height | |
92 | 92 | else if (if ((HeightTransactFundBox != 0)) | |
93 | 93 | then (PrizeAmount != 0) | |
94 | 94 | else false) | |
95 | 95 | then HeightTransactFundBox | |
96 | 96 | else 0 | |
97 | 97 | let ActualDelay = match getInteger(this, "Delay") { | |
98 | 98 | case a: Int => | |
99 | 99 | a | |
100 | 100 | case _ => | |
101 | 101 | 0 | |
102 | 102 | } | |
103 | 103 | let NewDelay = (ActualDelay + DelayAfterPush) | |
104 | 104 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
105 | 105 | case a: Int => | |
106 | 106 | a | |
107 | 107 | case _ => | |
108 | 108 | 0 | |
109 | 109 | } | |
110 | 110 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
111 | 111 | case a: Int => | |
112 | 112 | a | |
113 | 113 | case _ => | |
114 | 114 | 0 | |
115 | 115 | } | |
116 | 116 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
117 | 117 | case a: Int => | |
118 | 118 | a | |
119 | 119 | case _ => | |
120 | 120 | 0 | |
121 | 121 | } | |
122 | 122 | let UserStakeValue = match getInteger(this, UserStake) { | |
123 | 123 | case a: Int => | |
124 | 124 | a | |
125 | 125 | case _ => | |
126 | 126 | 0 | |
127 | 127 | } | |
128 | 128 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
129 | 129 | case a: Int => | |
130 | 130 | a | |
131 | 131 | case _ => | |
132 | 132 | 0 | |
133 | 133 | } | |
134 | 134 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
135 | 135 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
136 | 136 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + 1440))) | |
137 | 137 | then (HighestPushValue > 0) | |
138 | 138 | else false) | |
139 | 139 | then height | |
140 | 140 | else PrizeHeightValue | |
141 | 141 | if (if ((UserPushvalue > 0)) | |
142 | 142 | then ((height - UserLastStakeBlockValue) > (1440 * minStakeBlock)) | |
143 | 143 | else false) | |
144 | 144 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
145 | 145 | then if ((UserStakeValue > 0)) | |
146 | 146 | then if ((UserPushvalue > HighestPushValue)) | |
147 | 147 | then if ((PrizeAmount > 0)) | |
148 | 148 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) > height)) | |
149 | 149 | then true | |
150 | 150 | else (height > ((PrizeHeightValueNew + NewDelay) + 1440))) | |
151 | 151 | then (HighestPushValue > 0) | |
152 | 152 | else false) | |
153 | 153 | then true | |
154 | 154 | else (HighestPushValue == 0)) | |
155 | 155 | then if ((UserRefsNumValue >= minref)) | |
156 | 156 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastPushBlock, height), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry("Delay", NewDelay), DataEntry("DevBox", DevBoxAmount)]) | |
157 | 157 | else throw("You have to have 10 referrals already staking for a minimum of 10 days, to push") | |
158 | 158 | else { | |
159 | 159 | let txt = if ((HighestPushValue > 0)) | |
160 | 160 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
161 | 161 | else "Unexpected error" | |
162 | 162 | throw(txt) | |
163 | 163 | } | |
164 | 164 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
165 | 165 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
166 | 166 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
167 | 167 | else throw("You have to wait 10min before you can make a new Push") | |
168 | 168 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
169 | 169 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
170 | 170 | } | |
171 | 171 | else throw((("Can deposit only positive amounts of Troikan Token, or Check your Wallet balance in Troika, you should have more than " + toString(HighestPushValue)) + " to push")) | |
172 | 172 | else throw("You do not have enough Troikan Tokens in your Wallet Balance, Please Harvest if you have earned Troikan wallet or transfer to your wallet necessary Troikan amount !") | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(i) | |
178 | 178 | func Stake () = { | |
179 | 179 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
180 | 180 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
181 | 181 | let pmt = extract(i.payment) | |
182 | 182 | if (if ((pmt.amount > 0)) | |
183 | 183 | then (pmt.assetId == StakedToken) | |
184 | 184 | else false) | |
185 | 185 | then { | |
186 | 186 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
187 | 187 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
188 | 188 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
189 | 189 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
190 | 190 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
191 | 191 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
192 | 192 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
193 | 193 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
194 | 194 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
195 | 195 | case a: Int => | |
196 | 196 | a | |
197 | 197 | case _ => | |
198 | 198 | 0 | |
199 | 199 | } | |
200 | 200 | let UserPushValue = match getInteger(this, UserPush) { | |
201 | 201 | case a: Int => | |
202 | 202 | a | |
203 | 203 | case _ => | |
204 | 204 | 0 | |
205 | 205 | } | |
206 | 206 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
207 | 207 | case a: Int => | |
208 | 208 | a | |
209 | 209 | case _ => | |
210 | 210 | 0 | |
211 | 211 | } | |
212 | 212 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
213 | 213 | then height | |
214 | 214 | else UserLastStakeBlockValue | |
215 | 215 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
216 | 216 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
217 | 217 | case a: Int => | |
218 | 218 | a | |
219 | 219 | case _ => | |
220 | 220 | 0 | |
221 | 221 | } | |
222 | 222 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
223 | 223 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
224 | 224 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
225 | 225 | case a: Int => | |
226 | 226 | a | |
227 | 227 | case _ => | |
228 | 228 | 0 | |
229 | 229 | } | |
230 | 230 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
231 | 231 | let PrizeAmount = match getInteger(this, "FundBox") { | |
232 | 232 | case a: Int => | |
233 | 233 | a | |
234 | 234 | case _ => | |
235 | 235 | 0 | |
236 | 236 | } | |
237 | 237 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
238 | 238 | case a: Int => | |
239 | 239 | a | |
240 | 240 | case _ => | |
241 | 241 | 0 | |
242 | 242 | } | |
243 | 243 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
244 | 244 | case a: Int => | |
245 | 245 | a | |
246 | 246 | case _ => | |
247 | 247 | 0 | |
248 | 248 | } | |
249 | 249 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
250 | 250 | then (PrizeAmount == 0) | |
251 | 251 | else false) | |
252 | 252 | then 0 | |
253 | 253 | else if (if ((HeightTransactFundBox == 0)) | |
254 | 254 | then (PrizeAmount != 0) | |
255 | 255 | else false) | |
256 | 256 | then height | |
257 | 257 | else if (if ((HeightTransactFundBox != 0)) | |
258 | 258 | then (PrizeAmount != 0) | |
259 | 259 | else false) | |
260 | 260 | then HeightTransactFundBox | |
261 | 261 | else 0 | |
262 | 262 | if ((100000000 > GovernTokenSmartContractBalance)) | |
263 | 263 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
264 | 264 | else { | |
265 | 265 | let Reward = if ((StakeBalance == 0)) | |
266 | 266 | then 10000 | |
267 | 267 | else if ((NewUserStakeTransactions > 10)) | |
268 | 268 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
269 | 269 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
270 | 270 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
271 | 271 | then ((100 * Reward) / currentAmountGovernToken) | |
272 | 272 | else 0 | |
273 | 273 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
274 | 274 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
275 | 275 | } | |
276 | 276 | } | |
277 | 277 | else throw("Can deposit only StakeToken") | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func WithdrawStakedFunds (amount) = { | |
284 | 284 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
285 | 285 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
286 | 286 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
287 | 287 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
288 | 288 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
289 | 289 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
290 | 290 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
291 | 291 | case a: Int => | |
292 | 292 | a | |
293 | 293 | case _ => | |
294 | 294 | 0 | |
295 | 295 | } | |
296 | 296 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
297 | 297 | case a: Int => | |
298 | 298 | a | |
299 | 299 | case _ => | |
300 | 300 | 0 | |
301 | 301 | } | |
302 | 302 | let PrizeAmount = match getInteger(this, "FundBox") { | |
303 | 303 | case a: Int => | |
304 | 304 | a | |
305 | 305 | case _ => | |
306 | 306 | 0 | |
307 | 307 | } | |
308 | 308 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
309 | 309 | case a: Int => | |
310 | 310 | a | |
311 | 311 | case _ => | |
312 | 312 | 0 | |
313 | 313 | } | |
314 | 314 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
315 | 315 | then (PrizeAmount == 0) | |
316 | 316 | else false) | |
317 | 317 | then 0 | |
318 | 318 | else if (if ((HeightTransactFundBox == 0)) | |
319 | 319 | then (PrizeAmount != 0) | |
320 | 320 | else false) | |
321 | 321 | then height | |
322 | 322 | else if (if ((HeightTransactFundBox != 0)) | |
323 | 323 | then (PrizeAmount != 0) | |
324 | 324 | else false) | |
325 | 325 | then HeightTransactFundBox | |
326 | 326 | else 0 | |
327 | 327 | let currentKey = toBase58String(i.caller.bytes) | |
328 | 328 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
329 | 329 | case a: Int => | |
330 | 330 | a | |
331 | 331 | case _ => | |
332 | 332 | 0 | |
333 | 333 | } | |
334 | 334 | let newAmount = (currentAmount - amount) | |
335 | 335 | let StakeBalanceAmount = (StakeBalance - amount) | |
336 | 336 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
337 | 337 | then 0 | |
338 | 338 | else UserLastStakeBlockValue | |
339 | 339 | if ((0 > amount)) | |
340 | 340 | then throw("Can't withdraw negative amount") | |
341 | 341 | else if ((0 > newAmount)) | |
342 | 342 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
343 | 343 | else if ((100000000 > assetBalance(this, GovernToken))) | |
344 | 344 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
345 | 345 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(i) | |
351 | 351 | func HarvestGovernToiken (amount) = { | |
352 | 352 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
353 | 353 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
354 | 354 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
355 | 355 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
356 | 356 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
357 | 357 | case a: Int => | |
358 | 358 | a | |
359 | 359 | case _ => | |
360 | 360 | 0 | |
361 | 361 | } | |
362 | 362 | let PrizeAmount = match getInteger(this, "FundBox") { | |
363 | 363 | case a: Int => | |
364 | 364 | a | |
365 | 365 | case _ => | |
366 | 366 | 0 | |
367 | 367 | } | |
368 | 368 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
369 | 369 | case a: Int => | |
370 | 370 | a | |
371 | 371 | case _ => | |
372 | 372 | 0 | |
373 | 373 | } | |
374 | 374 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
375 | 375 | then (PrizeAmount == 0) | |
376 | 376 | else false) | |
377 | 377 | then 0 | |
378 | 378 | else if (if ((HeightTransactFundBox == 0)) | |
379 | 379 | then (PrizeAmount != 0) | |
380 | 380 | else false) | |
381 | 381 | then height | |
382 | 382 | else if (if ((HeightTransactFundBox != 0)) | |
383 | 383 | then (PrizeAmount != 0) | |
384 | 384 | else false) | |
385 | 385 | then HeightTransactFundBox | |
386 | 386 | else 0 | |
387 | 387 | let currentKey = toBase58String(i.caller.bytes) | |
388 | 388 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
389 | 389 | case a: Int => | |
390 | 390 | a | |
391 | 391 | case _ => | |
392 | 392 | 0 | |
393 | 393 | } | |
394 | 394 | let newAmount = (currentAmount - amount) | |
395 | 395 | if ((0 > amount)) | |
396 | 396 | then throw("Can't withdraw negative amount") | |
397 | 397 | else if ((0 > newAmount)) | |
398 | 398 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
399 | 399 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(i) | |
405 | 405 | func delayprize () = { | |
406 | 406 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
407 | 407 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
408 | 408 | let DelayDays = 1 | |
409 | 409 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
410 | 410 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
411 | 411 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
412 | 412 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
413 | 413 | case a: Int => | |
414 | 414 | a | |
415 | 415 | case _ => | |
416 | 416 | 0 | |
417 | 417 | } | |
418 | 418 | let PrizeAmount = match getInteger(this, "FundBox") { | |
419 | 419 | case a: Int => | |
420 | 420 | a | |
421 | 421 | case _ => | |
422 | 422 | 0 | |
423 | 423 | } | |
424 | 424 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
425 | 425 | case a: Int => | |
426 | 426 | a | |
427 | 427 | case _ => | |
428 | 428 | 0 | |
429 | 429 | } | |
430 | 430 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
431 | 431 | then (PrizeAmount == 0) | |
432 | 432 | else false) | |
433 | 433 | then 0 | |
434 | 434 | else if (if ((HeightTransactFundBox == 0)) | |
435 | 435 | then (PrizeAmount != 0) | |
436 | 436 | else false) | |
437 | 437 | then height | |
438 | 438 | else if (if ((HeightTransactFundBox != 0)) | |
439 | 439 | then (PrizeAmount != 0) | |
440 | 440 | else false) | |
441 | 441 | then HeightTransactFundBox | |
442 | 442 | else 0 | |
443 | 443 | let ActualDelay = match getInteger(this, "Delay") { | |
444 | 444 | case a: Int => | |
445 | 445 | a | |
446 | 446 | case _ => | |
447 | 447 | 0 | |
448 | 448 | } | |
449 | 449 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
450 | 450 | case a: Int => | |
451 | 451 | a | |
452 | 452 | case _ => | |
453 | 453 | 10 | |
454 | 454 | } | |
455 | 455 | let pmt = extract(i.payment) | |
456 | 456 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
457 | 457 | case a: Int => | |
458 | 458 | a | |
459 | 459 | case _ => | |
460 | 460 | 0 | |
461 | 461 | } | |
462 | 462 | if (if (isDefined(pmt.assetId)) | |
463 | 463 | then (extract(pmt.assetId) == GovernToken) | |
464 | 464 | else false) | |
465 | 465 | then if ((PrizeAmount > 0)) | |
466 | 466 | then { | |
467 | 467 | let UserGovernTokenAmount = pmt.amount | |
468 | 468 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
469 | 469 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
470 | 470 | then 1000000000 | |
471 | 471 | else (2 * ActualDelayCost) | |
472 | 472 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
473 | 473 | then { | |
474 | 474 | let NewDelay = (ActualDelay + (1440 * DelayDays)) | |
475 | 475 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry("DevBox", DevBoxAmount)]) | |
476 | 476 | } | |
477 | 477 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
478 | 478 | } | |
479 | 479 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
480 | 480 | else throw("Can Use only Troika Token to Delay Reward") | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(i) | |
486 | 486 | func ClaimPrize () = { | |
487 | 487 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
488 | 488 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
489 | 489 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
490 | 490 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
491 | 491 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
492 | 492 | let minStakeBlock = 7 | |
493 | 493 | let minref = 0 | |
494 | 494 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
495 | 495 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
496 | 496 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
497 | 497 | case a: Int => | |
498 | 498 | a | |
499 | 499 | case _ => | |
500 | 500 | 0 | |
501 | 501 | } | |
502 | 502 | let PrizeAmount = match getInteger(this, "FundBox") { | |
503 | 503 | case a: Int => | |
504 | 504 | a | |
505 | 505 | case _ => | |
506 | 506 | 0 | |
507 | 507 | } | |
508 | 508 | let UserPushValue = match getInteger(this, UserPush) { | |
509 | 509 | case a: Int => | |
510 | 510 | a | |
511 | 511 | case _ => | |
512 | 512 | 0 | |
513 | 513 | } | |
514 | 514 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
515 | 515 | case a: Int => | |
516 | 516 | a | |
517 | 517 | case _ => | |
518 | 518 | 0 | |
519 | 519 | } | |
520 | 520 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
521 | 521 | case a: Int => | |
522 | 522 | a | |
523 | 523 | case _ => | |
524 | 524 | 0 | |
525 | 525 | } | |
526 | 526 | let ActualDelay = match getInteger(this, "Delay") { | |
527 | 527 | case a: Int => | |
528 | 528 | a | |
529 | 529 | case _ => | |
530 | 530 | 0 | |
531 | 531 | } | |
532 | 532 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
533 | 533 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
534 | 534 | case a: Int => | |
535 | 535 | a | |
536 | 536 | case _ => | |
537 | 537 | 0 | |
538 | 538 | } | |
539 | 539 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
540 | 540 | case a: Int => | |
541 | 541 | a | |
542 | 542 | case _ => | |
543 | 543 | 0 | |
544 | 544 | } | |
545 | 545 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
546 | 546 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
547 | 547 | case a: Int => | |
548 | 548 | a | |
549 | 549 | case _ => | |
550 | 550 | 0 | |
551 | 551 | } | |
552 | 552 | if (if ((PrizeAmount == 0)) | |
553 | 553 | then true | |
554 | 554 | else (10000000000 > ContractGovTokenBalance)) | |
555 | 555 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
556 | 556 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
557 | 557 | then throw("You are not the winner hence cannot claim the reward ") | |
558 | 558 | else if (if ((100000000 > UserStakedTokenAmount)) | |
559 | 559 | then ((1440 * minStakeBlock) > UserLastStakeBlockValue) | |
560 | 560 | else false) | |
561 | 561 | then throw("You have to Stake ASIMI Token to claim reward ") | |
562 | 562 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
563 | 563 | then (UserPushValue >= HighestPushValue) | |
564 | 564 | else false) | |
565 | 565 | then if ((UserRefsNumValue >= minref)) | |
566 | 566 | 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)])) | |
567 | 567 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
568 | 568 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
569 | 569 | } | |
570 | 570 | ||
571 | 571 | ||
572 | 572 | ||
573 | 573 | @Callable(i) | |
574 | 574 | func Addmentor (Mentor) = { | |
575 | 575 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
576 | 576 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
577 | 577 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
578 | 578 | if ((Mentor != "")) | |
579 | 579 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
580 | 580 | else throw("Mentor's Address cannot be empty") | |
581 | 581 | } | |
582 | 582 | ||
583 | 583 |
github/deemru/w8io/169f3d6 67.48 ms ◑