tx · 3fkjMnDVBW8bpWpwt41RALKwRcmuNA9JtLzpcMxcPdFp 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.01000000 Waves 2021.12.12 15:07 [1831013] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "3fkjMnDVBW8bpWpwt41RALKwRcmuNA9JtLzpcMxcPdFp", "fee": 1000000, "feeAssetId": null, "timestamp": 1639310847976, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "2hvCuMMpwuA3pJj3YbR4iK3eawEkpp1ZdbBZhYcMcL2cW5TzbcqkKkYeBpDdB3CHL4pKgF3i6ngeNbnX8LYAyK7p" ], "script": "base64:AAIDAAAAAAAAB5EIARIAEgASABIAEgMKAQESABIDCgEBEgASABIDCgEIGhUKAUESEFVzZXJSZWZzTnVtVmFsdWUaFQoBQhIQSGlnaGVzdFB1c2hWYWx1ZRoWCgFDEhFVc2VyTGFzdFB1c2hCbG9jaxoXCgFEEhJVc2VyTGFzdFN0YWtlQmxvY2saDgoBRRIJVXNlclN0YWtlGhAKAUYSC0FjdHVhbERlbGF5GhcKAUcSEkhpZ2hlc3RQdXNoQWRkcmVzcxobCgFIEhZVc2VyTGFzdFB1c2hCbG9ja1ZhbHVlGhwKAUkSF1VzZXJMYXN0U3Rha2VCbG9ja1ZhbHVlGhMKAUoSDlVzZXJTdGFrZVZhbHVlGhIKAUsSDURldkJveEJhbGFuY2UaEgoBTBINVXNlclB1c2h2YWx1ZRoNCgFNEghOZXdEZWxheRocCgFOEhdIaWdoZXN0UHVzaEFkZHJlc3NWYWx1ZRoYCgFPEhNQcml6ZUhlaWdodFZhbHVlTmV3GggKAVASA3R4dBokCgFREh9Hb3Zlcm5Ub2tlblNtYXJ0Q29udHJhY3RCYWxhbmNlGgw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": 0 } View: original | compacted Prev: HFd9kqtVUzVqHfngeHJwL2ibxGvVkxSxhf39YmKHVFvY Next: Gpo71KTbe64iuzP356o9GCBzoqkRhij4ajqDKmanW7tB Diff:
Old | New | Differences | |
---|---|---|---|
590 | 590 | let BigStakerRewardTax = if ((0 > ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))))) | |
591 | 591 | then (1000 * 100000000) | |
592 | 592 | else ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))) | |
593 | - | if (( | |
594 | - | then throw("Can't withdraw negative amount ") | |
593 | + | if ((amount > 0)) | |
594 | + | then throw(("Can't withdraw negative amount " + toString(BigStakerRewardTax))) | |
595 | 595 | else if (if (((1000 * 100000000) > UserGovernTokenAmount)) | |
596 | - | then | |
597 | - | else | |
596 | + | then (1 > amount) | |
597 | + | else false) | |
598 | 598 | then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((UserGovernTokenAmount / 100000000)))) | |
599 | 599 | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakerRewardTotal", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(LastBigStakerRewardBlock, height), DataEntry("HighestPushAddress", HighestPushAddressValue)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
600 | 600 | } |
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'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
10 | 10 | if ((currentKey == "3Mu3nwxzGzeQBGxCKLyJcSDKmRiCea9FQSJ")) | |
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), DataEntry("Delay", 0), DataEntry("FundBox", 0), DataEntry("BigStakerRewardTotal", 0), DataEntry("PrizeHeight", height), DataEntry("StakeBalance", 0), DataEntry("MaxDeposit", 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 WithdrawWeeklyEarning () = { | |
29 | 29 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
30 | 30 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
31 | 31 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
32 | 32 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
33 | 33 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_WeekEarning") | |
34 | 34 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
35 | 35 | case a: Int => | |
36 | 36 | a | |
37 | 37 | case _ => | |
38 | 38 | 0 | |
39 | 39 | } | |
40 | 40 | let PrizeAmount = match getInteger(this, "FundBox") { | |
41 | 41 | case a: Int => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | 0 | |
45 | 45 | } | |
46 | 46 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
47 | 47 | case a: Int => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | 0 | |
51 | 51 | } | |
52 | 52 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
53 | 53 | then (PrizeAmount == 0) | |
54 | 54 | else false) | |
55 | 55 | then 0 | |
56 | 56 | else if (if ((HeightTransactFundBox == 0)) | |
57 | 57 | then (PrizeAmount != 0) | |
58 | 58 | else false) | |
59 | 59 | then height | |
60 | 60 | else if (if ((HeightTransactFundBox != 0)) | |
61 | 61 | then (PrizeAmount != 0) | |
62 | 62 | else false) | |
63 | 63 | then HeightTransactFundBox | |
64 | 64 | else 0 | |
65 | 65 | let currentKey = toBase58String(i.caller.bytes) | |
66 | 66 | let newAmount = match getInteger(this, UserGovernTokenKey) { | |
67 | 67 | case a: Int => | |
68 | 68 | a | |
69 | 69 | case _ => | |
70 | 70 | 0 | |
71 | 71 | } | |
72 | 72 | if ((0 > newAmount)) | |
73 | 73 | then throw("Can't withdraw negative amount") | |
74 | 74 | else if ((0 > newAmount)) | |
75 | 75 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((newAmount / 100000000)))) | |
76 | 76 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry("MaxDeposit", 0)]), TransferSet([ScriptTransfer(i.caller, newAmount, StakedToken)])) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | ||
81 | 81 | @Callable(i) | |
82 | 82 | func PushReward () = { | |
83 | 83 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
84 | 84 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
85 | 85 | let minPushBlock = 10 | |
86 | 86 | let minStakeBlock = (7 * 1440) | |
87 | 87 | let DelayAfterPush = 1 | |
88 | 88 | let WaitTime = (1 * 1) | |
89 | 89 | let minref = 0 | |
90 | 90 | let FirstPushTimer = 1 | |
91 | 91 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
92 | 92 | let pmt = extract(i.payment) | |
93 | 93 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
94 | 94 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
95 | 95 | case a: Int => | |
96 | 96 | a | |
97 | 97 | case _ => | |
98 | 98 | 0 | |
99 | 99 | } | |
100 | 100 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
101 | 101 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
102 | 102 | case a: Int => | |
103 | 103 | a | |
104 | 104 | case _ => | |
105 | 105 | 0 | |
106 | 106 | } | |
107 | 107 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
108 | 108 | case a: Int => | |
109 | 109 | a | |
110 | 110 | case _ => | |
111 | 111 | 0 | |
112 | 112 | } | |
113 | 113 | if ((userWalletGovernBalance > pmt.amount)) | |
114 | 114 | then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue)) | |
115 | 115 | then (pmt.assetId == GovernToken) | |
116 | 116 | else false) | |
117 | 117 | then { | |
118 | 118 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
119 | 119 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
120 | 120 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
121 | 121 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
122 | 122 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
123 | 123 | case a: Int => | |
124 | 124 | a | |
125 | 125 | case _ => | |
126 | 126 | 0 | |
127 | 127 | } | |
128 | 128 | let PrizeAmount = match getInteger(this, "FundBox") { | |
129 | 129 | case a: Int => | |
130 | 130 | a | |
131 | 131 | case _ => | |
132 | 132 | 0 | |
133 | 133 | } | |
134 | 134 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
135 | 135 | case a: Int => | |
136 | 136 | a | |
137 | 137 | case _ => | |
138 | 138 | 0 | |
139 | 139 | } | |
140 | 140 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
141 | 141 | then (PrizeAmount == 0) | |
142 | 142 | else false) | |
143 | 143 | then 0 | |
144 | 144 | else if (if ((HeightTransactFundBox == 0)) | |
145 | 145 | then (PrizeAmount != 0) | |
146 | 146 | else false) | |
147 | 147 | then height | |
148 | 148 | else if (if ((HeightTransactFundBox != 0)) | |
149 | 149 | then (PrizeAmount != 0) | |
150 | 150 | else false) | |
151 | 151 | then HeightTransactFundBox | |
152 | 152 | else 0 | |
153 | 153 | let ActualDelay = match getInteger(this, "Delay") { | |
154 | 154 | case a: Int => | |
155 | 155 | a | |
156 | 156 | case _ => | |
157 | 157 | 0 | |
158 | 158 | } | |
159 | 159 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
160 | 160 | case a: Int => | |
161 | 161 | a | |
162 | 162 | case _ => | |
163 | 163 | 0 | |
164 | 164 | } | |
165 | 165 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
166 | 166 | case a: Int => | |
167 | 167 | a | |
168 | 168 | case _ => | |
169 | 169 | 0 | |
170 | 170 | } | |
171 | 171 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
172 | 172 | case a: Int => | |
173 | 173 | a | |
174 | 174 | case _ => | |
175 | 175 | 0 | |
176 | 176 | } | |
177 | 177 | let UserStakeValue = match getInteger(this, UserStake) { | |
178 | 178 | case a: Int => | |
179 | 179 | a | |
180 | 180 | case _ => | |
181 | 181 | 0 | |
182 | 182 | } | |
183 | 183 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
184 | 184 | case a: Int => | |
185 | 185 | a | |
186 | 186 | case _ => | |
187 | 187 | 0 | |
188 | 188 | } | |
189 | 189 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
190 | 190 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
191 | 191 | let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
192 | 192 | then (HighestPushValue > 0) | |
193 | 193 | else false) | |
194 | 194 | then FirstPushTimer | |
195 | 195 | else (ActualDelay + DelayAfterPush) | |
196 | 196 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
197 | 197 | then (HighestPushValue > 0) | |
198 | 198 | else false) | |
199 | 199 | then "" | |
200 | 200 | else HighestPushAddress | |
201 | 201 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
202 | 202 | then (HighestPushValue > 0) | |
203 | 203 | else false) | |
204 | 204 | then height | |
205 | 205 | else PrizeHeightValue | |
206 | 206 | if (if ((UserPushvalue > 0)) | |
207 | 207 | then ((height - UserLastStakeBlockValue) > minStakeBlock) | |
208 | 208 | else false) | |
209 | 209 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
210 | 210 | then if ((UserStakeValue > 0)) | |
211 | 211 | then if ((UserPushvalue > HighestPushValue)) | |
212 | 212 | then if ((PrizeAmount > 0)) | |
213 | 213 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) >= height)) | |
214 | 214 | then true | |
215 | 215 | else (height >= ((PrizeHeightValueNew + NewDelay) + WaitTime))) | |
216 | 216 | then (HighestPushValue > 0) | |
217 | 217 | else false) | |
218 | 218 | then true | |
219 | 219 | else (HighestPushValue == 0)) | |
220 | 220 | then if ((UserRefsNumValue >= minref)) | |
221 | 221 | 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)]) | |
222 | 222 | else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days, to push")) | |
223 | 223 | else { | |
224 | 224 | let txt = if ((HighestPushValue > 0)) | |
225 | 225 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
226 | 226 | else "Unexpected error" | |
227 | 227 | throw(txt) | |
228 | 228 | } | |
229 | 229 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
230 | 230 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
231 | 231 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
232 | 232 | else throw("You have to wait 10min before you can make a new Push") | |
233 | 233 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
234 | 234 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
235 | 235 | } | |
236 | 236 | 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")) | |
237 | 237 | 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 !") | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | ||
242 | 242 | @Callable(i) | |
243 | 243 | func Stake () = { | |
244 | 244 | let WaitTime = (1 * 1) | |
245 | 245 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
246 | 246 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
247 | 247 | let pmt = extract(i.payment) | |
248 | 248 | if (if ((pmt.amount > 0)) | |
249 | 249 | then (pmt.assetId == StakedToken) | |
250 | 250 | else false) | |
251 | 251 | then { | |
252 | 252 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
253 | 253 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
254 | 254 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
255 | 255 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
256 | 256 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
257 | 257 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
258 | 258 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
259 | 259 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
260 | 260 | let UserWeekEarnings = (toBase58String(i.caller.bytes) + "_WeekEarning") | |
261 | 261 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
262 | 262 | case a: Int => | |
263 | 263 | a | |
264 | 264 | case _ => | |
265 | 265 | 0 | |
266 | 266 | } | |
267 | 267 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
268 | 268 | let MaxDepositBlock = match getInteger(this, "MaxDepositBlock") { | |
269 | 269 | case a: Int => | |
270 | 270 | a | |
271 | 271 | case _ => | |
272 | 272 | 0 | |
273 | 273 | } | |
274 | 274 | let MaxDeposit = match getInteger(this, "MaxDeposit") { | |
275 | 275 | case a: Int => | |
276 | 276 | a | |
277 | 277 | case _ => | |
278 | 278 | 0 | |
279 | 279 | } | |
280 | 280 | let MaxDepositerValue = if ((pmt.amount > MaxDeposit)) | |
281 | 281 | then toBase58String(i.caller.bytes) | |
282 | 282 | else MaxDepositer | |
283 | 283 | let MaxDepositValue = if ((pmt.amount > MaxDeposit)) | |
284 | 284 | then pmt.amount | |
285 | 285 | else MaxDeposit | |
286 | 286 | let MaxDepositBlockValue = if ((pmt.amount > MaxDeposit)) | |
287 | 287 | then height | |
288 | 288 | else MaxDepositBlock | |
289 | 289 | let UserPushValue = match getInteger(this, UserPush) { | |
290 | 290 | case a: Int => | |
291 | 291 | a | |
292 | 292 | case _ => | |
293 | 293 | 0 | |
294 | 294 | } | |
295 | 295 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
296 | 296 | case a: Int => | |
297 | 297 | a | |
298 | 298 | case _ => | |
299 | 299 | 0 | |
300 | 300 | } | |
301 | 301 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
302 | 302 | then height | |
303 | 303 | else UserLastStakeBlockValue | |
304 | 304 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
305 | 305 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
306 | 306 | case a: Int => | |
307 | 307 | a | |
308 | 308 | case _ => | |
309 | 309 | 0 | |
310 | 310 | } | |
311 | 311 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
312 | 312 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
313 | 313 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
314 | 314 | case a: Int => | |
315 | 315 | a | |
316 | 316 | case _ => | |
317 | 317 | 0 | |
318 | 318 | } | |
319 | 319 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
320 | 320 | let PrizeAmount = match getInteger(this, "FundBox") { | |
321 | 321 | case a: Int => | |
322 | 322 | a | |
323 | 323 | case _ => | |
324 | 324 | 0 | |
325 | 325 | } | |
326 | 326 | let UserWeekEarningsValue = match getInteger(this, UserWeekEarnings) { | |
327 | 327 | case a: Int => | |
328 | 328 | a | |
329 | 329 | case _ => | |
330 | 330 | 0 | |
331 | 331 | } | |
332 | 332 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
333 | 333 | case a: Int => | |
334 | 334 | a | |
335 | 335 | case _ => | |
336 | 336 | 0 | |
337 | 337 | } | |
338 | 338 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
339 | 339 | case a: Int => | |
340 | 340 | a | |
341 | 341 | case _ => | |
342 | 342 | 0 | |
343 | 343 | } | |
344 | 344 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
345 | 345 | then (PrizeAmount == 0) | |
346 | 346 | else false) | |
347 | 347 | then 0 | |
348 | 348 | else if (if ((HeightTransactFundBox == 0)) | |
349 | 349 | then (PrizeAmount != 0) | |
350 | 350 | else false) | |
351 | 351 | then height | |
352 | 352 | else if (if ((HeightTransactFundBox != 0)) | |
353 | 353 | then (PrizeAmount != 0) | |
354 | 354 | else false) | |
355 | 355 | then HeightTransactFundBox | |
356 | 356 | else 0 | |
357 | 357 | let ActualDelay = match getInteger(this, "Delay") { | |
358 | 358 | case a: Int => | |
359 | 359 | a | |
360 | 360 | case _ => | |
361 | 361 | 0 | |
362 | 362 | } | |
363 | 363 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
364 | 364 | case a: Int => | |
365 | 365 | a | |
366 | 366 | case _ => | |
367 | 367 | 0 | |
368 | 368 | } | |
369 | 369 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
370 | 370 | case a: Int => | |
371 | 371 | a | |
372 | 372 | case _ => | |
373 | 373 | 0 | |
374 | 374 | } | |
375 | 375 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
376 | 376 | then (HighestPushValue > 0) | |
377 | 377 | else false) | |
378 | 378 | then "" | |
379 | 379 | else HighestPushAddress | |
380 | 380 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
381 | 381 | then (HighestPushValue > 0) | |
382 | 382 | else false) | |
383 | 383 | then height | |
384 | 384 | else PrizeHeightValue | |
385 | 385 | if ((100000000 > GovernTokenSmartContractBalance)) | |
386 | 386 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
387 | 387 | else { | |
388 | 388 | let Reward = if ((StakeBalance == 0)) | |
389 | 389 | then 10000 | |
390 | 390 | else if ((NewUserStakeTransactions > 10)) | |
391 | 391 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
392 | 392 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
393 | 393 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
394 | 394 | then ((100 * Reward) / currentAmountGovernToken) | |
395 | 395 | else 0 | |
396 | 396 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
397 | 397 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue), DataEntry("MaxDepositer", MaxDepositerValue), DataEntry("MaxDeposit", MaxDepositValue), DataEntry("MaxDepositBlock", MaxDepositBlockValue), DataEntry("HighestPushAddress", HighestPushAddressValue), DataEntry(UserWeekEarnings, UserWeekEarningsValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
398 | 398 | } | |
399 | 399 | } | |
400 | 400 | else throw("Can deposit only StakeToken") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func WithdrawStakedFunds (amount) = { | |
407 | 407 | let WaitTime = (1 * 1) | |
408 | 408 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
409 | 409 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
410 | 410 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
411 | 411 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
412 | 412 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
413 | 413 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
414 | 414 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
415 | 415 | case a: Int => | |
416 | 416 | a | |
417 | 417 | case _ => | |
418 | 418 | 0 | |
419 | 419 | } | |
420 | 420 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
421 | 421 | case a: Int => | |
422 | 422 | a | |
423 | 423 | case _ => | |
424 | 424 | 0 | |
425 | 425 | } | |
426 | 426 | let PrizeAmount = match getInteger(this, "FundBox") { | |
427 | 427 | case a: Int => | |
428 | 428 | a | |
429 | 429 | case _ => | |
430 | 430 | 0 | |
431 | 431 | } | |
432 | 432 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
433 | 433 | case a: Int => | |
434 | 434 | a | |
435 | 435 | case _ => | |
436 | 436 | 0 | |
437 | 437 | } | |
438 | 438 | let ActualDelay = match getInteger(this, "Delay") { | |
439 | 439 | case a: Int => | |
440 | 440 | a | |
441 | 441 | case _ => | |
442 | 442 | 0 | |
443 | 443 | } | |
444 | 444 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
445 | 445 | case a: Int => | |
446 | 446 | a | |
447 | 447 | case _ => | |
448 | 448 | 0 | |
449 | 449 | } | |
450 | 450 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
451 | 451 | then (PrizeAmount == 0) | |
452 | 452 | else false) | |
453 | 453 | then 0 | |
454 | 454 | else if (if ((HeightTransactFundBox == 0)) | |
455 | 455 | then (PrizeAmount != 0) | |
456 | 456 | else false) | |
457 | 457 | then height | |
458 | 458 | else if (if ((HeightTransactFundBox != 0)) | |
459 | 459 | then (PrizeAmount != 0) | |
460 | 460 | else false) | |
461 | 461 | then HeightTransactFundBox | |
462 | 462 | else 0 | |
463 | 463 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
464 | 464 | case a: Int => | |
465 | 465 | a | |
466 | 466 | case _ => | |
467 | 467 | 0 | |
468 | 468 | } | |
469 | 469 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
470 | 470 | then (HighestPushValue > 0) | |
471 | 471 | else false) | |
472 | 472 | then "" | |
473 | 473 | else HighestPushAddress | |
474 | 474 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
475 | 475 | then (HighestPushValue > 0) | |
476 | 476 | else false) | |
477 | 477 | then height | |
478 | 478 | else PrizeHeightValue | |
479 | 479 | let currentKey = toBase58String(i.caller.bytes) | |
480 | 480 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
481 | 481 | case a: Int => | |
482 | 482 | a | |
483 | 483 | case _ => | |
484 | 484 | 0 | |
485 | 485 | } | |
486 | 486 | let newAmount = (currentAmount - amount) | |
487 | 487 | let StakeBalanceAmount = (StakeBalance - amount) | |
488 | 488 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
489 | 489 | then 0 | |
490 | 490 | else UserLastStakeBlockValue | |
491 | 491 | if ((0 > amount)) | |
492 | 492 | then throw("Can't withdraw negative amount") | |
493 | 493 | else if ((0 > newAmount)) | |
494 | 494 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
495 | 495 | else if ((100000000 > assetBalance(this, GovernToken))) | |
496 | 496 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
497 | 497 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry("HighestPushAddress", HighestPushAddressValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | 503 | func WithdrawBigStakeReward () = { | |
504 | 504 | let WaitTime = (1 * 1) | |
505 | 505 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
506 | 506 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
507 | 507 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "_LastBigStakerRewardBlock") | |
508 | 508 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
509 | 509 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
510 | 510 | let LimiWithdrawReward = 1 | |
511 | 511 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
512 | 512 | case a: Int => | |
513 | 513 | a | |
514 | 514 | case _ => | |
515 | 515 | 0 | |
516 | 516 | } | |
517 | 517 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
518 | 518 | case a: Int => | |
519 | 519 | a | |
520 | 520 | case _ => | |
521 | 521 | 0 | |
522 | 522 | } | |
523 | 523 | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
524 | 524 | case a: Int => | |
525 | 525 | a | |
526 | 526 | case _ => | |
527 | 527 | 0 | |
528 | 528 | } | |
529 | 529 | let PrizeAmount = match getInteger(this, "FundBox") { | |
530 | 530 | case a: Int => | |
531 | 531 | a | |
532 | 532 | case _ => | |
533 | 533 | 0 | |
534 | 534 | } | |
535 | 535 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
536 | 536 | case a: Int => | |
537 | 537 | a | |
538 | 538 | case _ => | |
539 | 539 | 0 | |
540 | 540 | } | |
541 | 541 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
542 | 542 | then (PrizeAmount == 0) | |
543 | 543 | else false) | |
544 | 544 | then 0 | |
545 | 545 | else if (if ((HeightTransactFundBox == 0)) | |
546 | 546 | then (PrizeAmount != 0) | |
547 | 547 | else false) | |
548 | 548 | then height | |
549 | 549 | else if (if ((HeightTransactFundBox != 0)) | |
550 | 550 | then (PrizeAmount != 0) | |
551 | 551 | else false) | |
552 | 552 | then HeightTransactFundBox | |
553 | 553 | else 0 | |
554 | 554 | let ActualDelay = match getInteger(this, "Delay") { | |
555 | 555 | case a: Int => | |
556 | 556 | a | |
557 | 557 | case _ => | |
558 | 558 | 0 | |
559 | 559 | } | |
560 | 560 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
561 | 561 | case a: Int => | |
562 | 562 | a | |
563 | 563 | case _ => | |
564 | 564 | 0 | |
565 | 565 | } | |
566 | 566 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
567 | 567 | case a: Int => | |
568 | 568 | a | |
569 | 569 | case _ => | |
570 | 570 | 0 | |
571 | 571 | } | |
572 | 572 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
573 | 573 | then (HighestPushValue > 0) | |
574 | 574 | else false) | |
575 | 575 | then "" | |
576 | 576 | else HighestPushAddress | |
577 | 577 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
578 | 578 | then (HighestPushValue > 0) | |
579 | 579 | else false) | |
580 | 580 | then height | |
581 | 581 | else PrizeHeightValue | |
582 | 582 | let currentKey = toBase58String(i.caller.bytes) | |
583 | 583 | let amount = match getInteger(this, BigStakerReward) { | |
584 | 584 | case a: Int => | |
585 | 585 | a | |
586 | 586 | case _ => | |
587 | 587 | 0 | |
588 | 588 | } | |
589 | 589 | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
590 | 590 | let BigStakerRewardTax = if ((0 > ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))))) | |
591 | 591 | then (1000 * 100000000) | |
592 | 592 | else ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))) | |
593 | - | if (( | |
594 | - | then throw("Can't withdraw negative amount ") | |
593 | + | if ((amount > 0)) | |
594 | + | then throw(("Can't withdraw negative amount " + toString(BigStakerRewardTax))) | |
595 | 595 | else if (if (((1000 * 100000000) > UserGovernTokenAmount)) | |
596 | - | then | |
597 | - | else | |
596 | + | then (1 > amount) | |
597 | + | else false) | |
598 | 598 | then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((UserGovernTokenAmount / 100000000)))) | |
599 | 599 | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakerRewardTotal", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(LastBigStakerRewardBlock, height), DataEntry("HighestPushAddress", HighestPushAddressValue)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
600 | 600 | } | |
601 | 601 | ||
602 | 602 | ||
603 | 603 | ||
604 | 604 | @Callable(i) | |
605 | 605 | func HarvestGovernToiken (amount) = { | |
606 | 606 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
607 | 607 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
608 | 608 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
609 | 609 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
610 | 610 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
611 | 611 | case a: Int => | |
612 | 612 | a | |
613 | 613 | case _ => | |
614 | 614 | 0 | |
615 | 615 | } | |
616 | 616 | let PrizeAmount = match getInteger(this, "FundBox") { | |
617 | 617 | case a: Int => | |
618 | 618 | a | |
619 | 619 | case _ => | |
620 | 620 | 0 | |
621 | 621 | } | |
622 | 622 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
623 | 623 | case a: Int => | |
624 | 624 | a | |
625 | 625 | case _ => | |
626 | 626 | 0 | |
627 | 627 | } | |
628 | 628 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
629 | 629 | then (PrizeAmount == 0) | |
630 | 630 | else false) | |
631 | 631 | then 0 | |
632 | 632 | else if (if ((HeightTransactFundBox == 0)) | |
633 | 633 | then (PrizeAmount != 0) | |
634 | 634 | else false) | |
635 | 635 | then height | |
636 | 636 | else if (if ((HeightTransactFundBox != 0)) | |
637 | 637 | then (PrizeAmount != 0) | |
638 | 638 | else false) | |
639 | 639 | then HeightTransactFundBox | |
640 | 640 | else 0 | |
641 | 641 | let currentKey = toBase58String(i.caller.bytes) | |
642 | 642 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
643 | 643 | case a: Int => | |
644 | 644 | a | |
645 | 645 | case _ => | |
646 | 646 | 0 | |
647 | 647 | } | |
648 | 648 | let newAmount = (currentAmount - amount) | |
649 | 649 | if ((0 > amount)) | |
650 | 650 | then throw("Can't withdraw negative amount") | |
651 | 651 | else if ((0 > newAmount)) | |
652 | 652 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
653 | 653 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
654 | 654 | } | |
655 | 655 | ||
656 | 656 | ||
657 | 657 | ||
658 | 658 | @Callable(i) | |
659 | 659 | func delayprize () = { | |
660 | 660 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
661 | 661 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
662 | 662 | let DelayDays = (1 * 1) | |
663 | 663 | let WaitTime = (1 * 1) | |
664 | 664 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
665 | 665 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
666 | 666 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
667 | 667 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
668 | 668 | case a: Int => | |
669 | 669 | a | |
670 | 670 | case _ => | |
671 | 671 | 0 | |
672 | 672 | } | |
673 | 673 | let PrizeAmount = match getInteger(this, "FundBox") { | |
674 | 674 | case a: Int => | |
675 | 675 | a | |
676 | 676 | case _ => | |
677 | 677 | 0 | |
678 | 678 | } | |
679 | 679 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
680 | 680 | case a: Int => | |
681 | 681 | a | |
682 | 682 | case _ => | |
683 | 683 | 0 | |
684 | 684 | } | |
685 | 685 | let ActualDelay = match getInteger(this, "Delay") { | |
686 | 686 | case a: Int => | |
687 | 687 | a | |
688 | 688 | case _ => | |
689 | 689 | 0 | |
690 | 690 | } | |
691 | 691 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
692 | 692 | then (PrizeAmount == 0) | |
693 | 693 | else false) | |
694 | 694 | then 0 | |
695 | 695 | else if (if ((HeightTransactFundBox == 0)) | |
696 | 696 | then (PrizeAmount != 0) | |
697 | 697 | else false) | |
698 | 698 | then height | |
699 | 699 | else if (if ((HeightTransactFundBox != 0)) | |
700 | 700 | then (PrizeAmount != 0) | |
701 | 701 | else false) | |
702 | 702 | then HeightTransactFundBox | |
703 | 703 | else 0 | |
704 | 704 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
705 | 705 | case a: Int => | |
706 | 706 | a | |
707 | 707 | case _ => | |
708 | 708 | 0 | |
709 | 709 | } | |
710 | 710 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
711 | 711 | case a: Int => | |
712 | 712 | a | |
713 | 713 | case _ => | |
714 | 714 | 0 | |
715 | 715 | } | |
716 | 716 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
717 | 717 | then (HighestPushValue > 0) | |
718 | 718 | else false) | |
719 | 719 | then "" | |
720 | 720 | else HighestPushAddress | |
721 | 721 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
722 | 722 | then (HighestPushValue > 0) | |
723 | 723 | else false) | |
724 | 724 | then height | |
725 | 725 | else PrizeHeightValue | |
726 | 726 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
727 | 727 | case a: Int => | |
728 | 728 | a | |
729 | 729 | case _ => | |
730 | 730 | 10 | |
731 | 731 | } | |
732 | 732 | let pmt = extract(i.payment) | |
733 | 733 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
734 | 734 | case a: Int => | |
735 | 735 | a | |
736 | 736 | case _ => | |
737 | 737 | 0 | |
738 | 738 | } | |
739 | 739 | if (if (isDefined(pmt.assetId)) | |
740 | 740 | then (extract(pmt.assetId) == GovernToken) | |
741 | 741 | else false) | |
742 | 742 | then if ((PrizeAmount > 0)) | |
743 | 743 | then { | |
744 | 744 | let UserGovernTokenAmount = pmt.amount | |
745 | 745 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
746 | 746 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
747 | 747 | then 1000000000 | |
748 | 748 | else (2 * ActualDelayCost) | |
749 | 749 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
750 | 750 | then { | |
751 | 751 | let NewDelay = (ActualDelay + DelayDays) | |
752 | 752 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry("DevBox", DevBoxAmount), DataEntry("HighestPushAddress", HighestPushAddressValue)]) | |
753 | 753 | } | |
754 | 754 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
755 | 755 | } | |
756 | 756 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
757 | 757 | else throw("Can Use only Troika Token to Delay Reward") | |
758 | 758 | } | |
759 | 759 | ||
760 | 760 | ||
761 | 761 | ||
762 | 762 | @Callable(i) | |
763 | 763 | func ClaimPrize () = { | |
764 | 764 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
765 | 765 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
766 | 766 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
767 | 767 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
768 | 768 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
769 | 769 | let minStakeBlock = 7 | |
770 | 770 | let minref = 0 | |
771 | 771 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
772 | 772 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
773 | 773 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
774 | 774 | case a: Int => | |
775 | 775 | a | |
776 | 776 | case _ => | |
777 | 777 | 0 | |
778 | 778 | } | |
779 | 779 | let PrizeAmount = match getInteger(this, "FundBox") { | |
780 | 780 | case a: Int => | |
781 | 781 | a | |
782 | 782 | case _ => | |
783 | 783 | 0 | |
784 | 784 | } | |
785 | 785 | let UserPushValue = match getInteger(this, UserPush) { | |
786 | 786 | case a: Int => | |
787 | 787 | a | |
788 | 788 | case _ => | |
789 | 789 | 0 | |
790 | 790 | } | |
791 | 791 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
792 | 792 | case a: Int => | |
793 | 793 | a | |
794 | 794 | case _ => | |
795 | 795 | 0 | |
796 | 796 | } | |
797 | 797 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
798 | 798 | case a: Int => | |
799 | 799 | a | |
800 | 800 | case _ => | |
801 | 801 | 0 | |
802 | 802 | } | |
803 | 803 | let ActualDelay = match getInteger(this, "Delay") { | |
804 | 804 | case a: Int => | |
805 | 805 | a | |
806 | 806 | case _ => | |
807 | 807 | 0 | |
808 | 808 | } | |
809 | 809 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
810 | 810 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
811 | 811 | case a: Int => | |
812 | 812 | a | |
813 | 813 | case _ => | |
814 | 814 | 0 | |
815 | 815 | } | |
816 | 816 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
817 | 817 | case a: Int => | |
818 | 818 | a | |
819 | 819 | case _ => | |
820 | 820 | 0 | |
821 | 821 | } | |
822 | 822 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
823 | 823 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
824 | 824 | case a: Int => | |
825 | 825 | a | |
826 | 826 | case _ => | |
827 | 827 | 0 | |
828 | 828 | } | |
829 | 829 | if (if ((PrizeAmount == 0)) | |
830 | 830 | then true | |
831 | 831 | else (10000000000 > ContractGovTokenBalance)) | |
832 | 832 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
833 | 833 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
834 | 834 | then throw("You are not the winner hence cannot claim the reward ") | |
835 | 835 | else if (if ((100000000 > UserStakedTokenAmount)) | |
836 | 836 | then (minStakeBlock > UserLastStakeBlockValue) | |
837 | 837 | else false) | |
838 | 838 | then throw("You have to Stake ASIMI Token to claim reward ") | |
839 | 839 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
840 | 840 | then (UserPushValue >= HighestPushValue) | |
841 | 841 | else false) | |
842 | 842 | then if ((UserRefsNumValue >= minref)) | |
843 | 843 | 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)])) | |
844 | 844 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
845 | 845 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
846 | 846 | } | |
847 | 847 | ||
848 | 848 | ||
849 | 849 | ||
850 | 850 | @Callable(i) | |
851 | 851 | func Addmentor (Mentor) = { | |
852 | 852 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
853 | 853 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
854 | 854 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
855 | 855 | if ((Mentor != "")) | |
856 | 856 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
857 | 857 | else throw("Mentor's Address cannot be empty") | |
858 | 858 | } | |
859 | 859 | ||
860 | 860 |
github/deemru/w8io/169f3d6 102.89 ms ◑