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