tx · HVbcxFovytuL9rnKMz4wVBHUFCpYyvvTyPTQBGFvftT9 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.02200000 Waves 2022.06.30 19:00 [2119376] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "HVbcxFovytuL9rnKMz4wVBHUFCpYyvvTyPTQBGFvftT9", "fee": 2200000, "feeAssetId": null, "timestamp": 1656604811012, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "2qaMa8GSpT87sJK4zUug82Gc1MZwSsAHq8bX6CTorDB38oP3jzJ7AoB4CsH1H8t57wJpCaKq1ERCJbRmwcyUyMPL" ], "script": "base64:BgIlCAISABIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBIECgIBAQQAC1N0YWtlZFRva2VuASD5rl2FqqDB81weFWSW9S5FyKYquYAb4MpXXcAlqscPUAALR292ZXJuVG9rZW4BIAFshcLXQMYuV8Rzs8ULZ07fOlzF6BxYes7P/1GRlpktABRMaWtlUGFja2FnZUFTSU1JQ29zdAkAaAIAAQCAwtcvABZMaWtlUGFja2FnZVRST0lLQU5Db3N0CQBoAgAFAIDC1y8LAWkBC0RldldpdGhkcmF3AAQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzAwkAAAIFCmN1cnJlbnRLZXkCIzNQNzRidUh0OThCbm9qRmNhUkVKWnRiOThLRHlVbVpHZW1KBAxEZXZCb3hBbW91bnQEByRtYXRjaDAJAJoIAgUEdGhpcwIGRGV2Qm94AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAUBYQAAAwkAZgIAAAUMRGV2Qm94QW1vdW50CQACAQISTm90IGVub3VnaCBiYWxhbmNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgZEZXZC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AAZhbW91bnQFFExpa2VQYWNrYWdlQVNJTUlDb3N0AwkAZgIICQCRAwIIBQFpCHBheW1lbnRzAAEGYW1vdW50BRZMaWtlUGFja2FnZVRST0lLQU5Db3N0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKQDAQUNVHdpdHRlclVzZXJJZAILX1R3aXR0Mkxpa2UFB1R3aXR0SWQFA25pbAkAAgEJAKwCAgIaVFJPSUtBTiBBbW91bnQgc2hvdWxkIGJlIDoJAKQDAQkAaQIFFExpa2VQYWNrYWdlQVNJTUlDb3N0AIDC1y8JAAIBCQCsAgICGEFTSU1JIEFtb3VudCBzaG91bGQgYmUgOgkApAMBCQBpAgUWTGlrZVBhY2thZ2VUUk9JS0FOQ29zdACAwtcvCQACAQIwUGF5bWVudHMgc2hvdWxkIGJlIGJvdGggQVNJTUkgYW5kIFRST0lLQU4gdG9rZW5zAO0PfoY=", "height": 2119376, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 36TRPKwFZJAffd4d7R6NVJuvoJcJZSTjzyWCSrqhLDeQ Next: CYZ6yBqYG4GyyKqpr19H8PVkY2717cFPrKsNfLTjotof Diff:
Old | New | Differences | |
---|---|---|---|
844 | 844 | if (if ((i.payments[0].assetId == StakedToken)) | |
845 | 845 | then (i.payments[1].assetId == GovernToken) | |
846 | 846 | else false) | |
847 | - | then | |
848 | - | then (i.payments[1].amount > LikePackageTROIKANCost) | |
849 | - | | |
850 | - | | |
851 | - | else throw(("Amount should be :" + toString(( | |
847 | + | then if ((i.payments[0].amount > LikePackageASIMICost)) | |
848 | + | then if ((i.payments[1].amount > LikePackageTROIKANCost)) | |
849 | + | then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)] | |
850 | + | else throw(("TROIKAN Amount should be :" + toString((LikePackageASIMICost / 100000000)))) | |
851 | + | else throw(("ASIMI Amount should be :" + toString((LikePackageTROIKANCost / 100000000)))) | |
852 | 852 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
853 | 853 | } | |
854 | 854 |
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 | 459 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
460 | 460 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
461 | 461 | then (HighestPushValue > 0) | |
462 | 462 | else false) | |
463 | 463 | then "" | |
464 | 464 | else HighestPushAddress | |
465 | 465 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
466 | 466 | then (HighestPushValue > 0) | |
467 | 467 | else false) | |
468 | 468 | then height | |
469 | 469 | else PrizeHeightValue | |
470 | 470 | let currentKey = toBase58String(i.caller.bytes) | |
471 | 471 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
472 | 472 | case a: Int => | |
473 | 473 | a | |
474 | 474 | case _ => | |
475 | 475 | 0 | |
476 | 476 | } | |
477 | 477 | let newAmount = (currentAmount - amount) | |
478 | 478 | let StakeBalanceAmount = (StakeBalance - amount) | |
479 | 479 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
480 | 480 | then 0 | |
481 | 481 | else UserLastStakeBlockValue | |
482 | 482 | if ((0 > amount)) | |
483 | 483 | then throw("Can't withdraw negative amount") | |
484 | 484 | else if ((0 > newAmount)) | |
485 | 485 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
486 | 486 | else if ((100000000 > assetBalance(this, GovernToken))) | |
487 | 487 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
488 | 488 | 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 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | ||
493 | 493 | @Callable(i) | |
494 | 494 | func WithdrawBigStakeReward () = { | |
495 | 495 | let WaitTime = (1440 * 1) | |
496 | 496 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "_LastBigStakerRewardBlock") | |
497 | 497 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
498 | 498 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
499 | 499 | let LimiWithdrawReward = 10 | |
500 | 500 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
501 | 501 | case a: Int => | |
502 | 502 | a | |
503 | 503 | case _ => | |
504 | 504 | 0 | |
505 | 505 | } | |
506 | 506 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
507 | 507 | case a: Int => | |
508 | 508 | a | |
509 | 509 | case _ => | |
510 | 510 | 0 | |
511 | 511 | } | |
512 | 512 | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
513 | 513 | case a: Int => | |
514 | 514 | a | |
515 | 515 | case _ => | |
516 | 516 | 0 | |
517 | 517 | } | |
518 | 518 | let PrizeAmount = match getInteger(this, "FundBox") { | |
519 | 519 | case a: Int => | |
520 | 520 | a | |
521 | 521 | case _ => | |
522 | 522 | 0 | |
523 | 523 | } | |
524 | 524 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
525 | 525 | case a: Int => | |
526 | 526 | a | |
527 | 527 | case _ => | |
528 | 528 | 0 | |
529 | 529 | } | |
530 | 530 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
531 | 531 | then (PrizeAmount == 0) | |
532 | 532 | else false) | |
533 | 533 | then 0 | |
534 | 534 | else if (if ((HeightTransactFundBox == 0)) | |
535 | 535 | then (PrizeAmount != 0) | |
536 | 536 | else false) | |
537 | 537 | then height | |
538 | 538 | else if (if ((HeightTransactFundBox != 0)) | |
539 | 539 | then (PrizeAmount != 0) | |
540 | 540 | else false) | |
541 | 541 | then HeightTransactFundBox | |
542 | 542 | else 0 | |
543 | 543 | let ActualDelay = match getInteger(this, "Delay") { | |
544 | 544 | case a: Int => | |
545 | 545 | a | |
546 | 546 | case _ => | |
547 | 547 | 0 | |
548 | 548 | } | |
549 | 549 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
550 | 550 | case a: Int => | |
551 | 551 | a | |
552 | 552 | case _ => | |
553 | 553 | 0 | |
554 | 554 | } | |
555 | 555 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
556 | 556 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
557 | 557 | then (HighestPushValue > 0) | |
558 | 558 | else false) | |
559 | 559 | then "" | |
560 | 560 | else HighestPushAddress | |
561 | 561 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
562 | 562 | then (HighestPushValue > 0) | |
563 | 563 | else false) | |
564 | 564 | then height | |
565 | 565 | else PrizeHeightValue | |
566 | 566 | let currentKey = toBase58String(i.caller.bytes) | |
567 | 567 | let amount = match getInteger(this, BigStakerReward) { | |
568 | 568 | case a: Int => | |
569 | 569 | a | |
570 | 570 | case _ => | |
571 | 571 | 0 | |
572 | 572 | } | |
573 | 573 | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
574 | 574 | let BigStakerRewardTax = if ((0 > ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))))) | |
575 | 575 | then (1000 * 100000000) | |
576 | 576 | else ((UserGovernTokenAmount / 1000) * (1000 - ((1000 * (height - LastBigStakerRewardBlockValue)) / (LimiWithdrawReward * 1440)))) | |
577 | 577 | if ((0 > amount)) | |
578 | 578 | then throw(((("Can't withdraw negative amount " + toString((UserGovernTokenAmount - (1000 * 100000000)))) + " ... ") + toString(amount))) | |
579 | 579 | else if (if (if (((1000 * 100000000) > UserGovernTokenAmount)) | |
580 | 580 | then true | |
581 | 581 | else (1 > amount)) | |
582 | 582 | then true | |
583 | 583 | else (0 > (UserGovernTokenAmount - BigStakerRewardTax))) | |
584 | 584 | then throw(("No ASIMI reward available, or Not enough Earned Troikan Tokens to do transaction, you have: " + toString((UserGovernTokenAmount / 100000000)))) | |
585 | 585 | else if ((StakeBalanceAmount > 0)) | |
586 | 586 | 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 | 587 | else throw("Balance Error, Total Big Stakers cannot be negative, Operation won't be authorized") | |
588 | 588 | } | |
589 | 589 | ||
590 | 590 | ||
591 | 591 | ||
592 | 592 | @Callable(i) | |
593 | 593 | func HarvestGovernToiken (amount) = { | |
594 | 594 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
595 | 595 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
596 | 596 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
597 | 597 | case a: Int => | |
598 | 598 | a | |
599 | 599 | case _ => | |
600 | 600 | 0 | |
601 | 601 | } | |
602 | 602 | let PrizeAmount = match getInteger(this, "FundBox") { | |
603 | 603 | case a: Int => | |
604 | 604 | a | |
605 | 605 | case _ => | |
606 | 606 | 0 | |
607 | 607 | } | |
608 | 608 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
609 | 609 | case a: Int => | |
610 | 610 | a | |
611 | 611 | case _ => | |
612 | 612 | 0 | |
613 | 613 | } | |
614 | 614 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
615 | 615 | then (PrizeAmount == 0) | |
616 | 616 | else false) | |
617 | 617 | then 0 | |
618 | 618 | else if (if ((HeightTransactFundBox == 0)) | |
619 | 619 | then (PrizeAmount != 0) | |
620 | 620 | else false) | |
621 | 621 | then height | |
622 | 622 | else if (if ((HeightTransactFundBox != 0)) | |
623 | 623 | then (PrizeAmount != 0) | |
624 | 624 | else false) | |
625 | 625 | then HeightTransactFundBox | |
626 | 626 | else 0 | |
627 | 627 | let currentKey = toBase58String(i.caller.bytes) | |
628 | 628 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
629 | 629 | case a: Int => | |
630 | 630 | a | |
631 | 631 | case _ => | |
632 | 632 | 0 | |
633 | 633 | } | |
634 | 634 | let newAmount = (currentAmount - amount) | |
635 | 635 | if ((0 > amount)) | |
636 | 636 | then throw("Can't withdraw negative amount") | |
637 | 637 | else if ((0 > newAmount)) | |
638 | 638 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
639 | 639 | else [IntegerEntry(UserGovernTokenKey, newAmount), IntegerEntry("PrizeHeight", PrizeHeightValue), ScriptTransfer(i.caller, amount, GovernToken)] | |
640 | 640 | } | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | ||
644 | 644 | @Callable(i) | |
645 | 645 | func delayprize () = { | |
646 | 646 | let DelayDays = (1440 * 1) | |
647 | 647 | let WaitTime = (1440 * 1) | |
648 | 648 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
649 | 649 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
650 | 650 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
651 | 651 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
652 | 652 | case a: Int => | |
653 | 653 | a | |
654 | 654 | case _ => | |
655 | 655 | 0 | |
656 | 656 | } | |
657 | 657 | let PrizeAmount = match getInteger(this, "FundBox") { | |
658 | 658 | case a: Int => | |
659 | 659 | a | |
660 | 660 | case _ => | |
661 | 661 | 0 | |
662 | 662 | } | |
663 | 663 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
664 | 664 | case a: Int => | |
665 | 665 | a | |
666 | 666 | case _ => | |
667 | 667 | 0 | |
668 | 668 | } | |
669 | 669 | let ActualDelay = match getInteger(this, "Delay") { | |
670 | 670 | case a: Int => | |
671 | 671 | a | |
672 | 672 | case _ => | |
673 | 673 | 0 | |
674 | 674 | } | |
675 | 675 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
676 | 676 | then (PrizeAmount == 0) | |
677 | 677 | else false) | |
678 | 678 | then 0 | |
679 | 679 | else if (if ((HeightTransactFundBox == 0)) | |
680 | 680 | then (PrizeAmount != 0) | |
681 | 681 | else false) | |
682 | 682 | then height | |
683 | 683 | else if (if ((HeightTransactFundBox != 0)) | |
684 | 684 | then (PrizeAmount != 0) | |
685 | 685 | else false) | |
686 | 686 | then HeightTransactFundBox | |
687 | 687 | else 0 | |
688 | 688 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
689 | 689 | case a: Int => | |
690 | 690 | a | |
691 | 691 | case _ => | |
692 | 692 | 0 | |
693 | 693 | } | |
694 | 694 | let HighestPushAddress = getStringValue(this, "HighestPushAddress") | |
695 | 695 | let HighestPushAddressValue = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
696 | 696 | then (HighestPushValue > 0) | |
697 | 697 | else false) | |
698 | 698 | then "" | |
699 | 699 | else HighestPushAddress | |
700 | 700 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
701 | 701 | then (HighestPushValue > 0) | |
702 | 702 | else false) | |
703 | 703 | then height | |
704 | 704 | else PrizeHeightValue | |
705 | 705 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
706 | 706 | case a: Int => | |
707 | 707 | a | |
708 | 708 | case _ => | |
709 | 709 | 10 | |
710 | 710 | } | |
711 | 711 | let pmt = if ((size(i.payments) == 1)) | |
712 | 712 | then i.payments[0] | |
713 | 713 | else throw("Attached payment is required") | |
714 | 714 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
715 | 715 | case a: Int => | |
716 | 716 | a | |
717 | 717 | case _ => | |
718 | 718 | 0 | |
719 | 719 | } | |
720 | 720 | if (if (isDefined(pmt.assetId)) | |
721 | 721 | then (pmt.assetId == GovernToken) | |
722 | 722 | else false) | |
723 | 723 | then if ((PrizeAmount > 0)) | |
724 | 724 | then { | |
725 | 725 | let UserGovernTokenAmount = pmt.amount | |
726 | 726 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
727 | 727 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
728 | 728 | then 1000000000 | |
729 | 729 | else (2 * ActualDelayCost) | |
730 | 730 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
731 | 731 | then { | |
732 | 732 | let NewDelay = (ActualDelay + DelayDays) | |
733 | 733 | [IntegerEntry("Delay", NewDelay), IntegerEntry("DelayCost", NewDelayCost), IntegerEntry("PrizeHeight", PrizeHeightValueNew), IntegerEntry("DevBox", DevBoxAmount), StringEntry("HighestPushAddress", HighestPushAddressValue)] | |
734 | 734 | } | |
735 | 735 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
736 | 736 | } | |
737 | 737 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
738 | 738 | else throw("Can Use only Troika Token to Delay Reward") | |
739 | 739 | } | |
740 | 740 | ||
741 | 741 | ||
742 | 742 | ||
743 | 743 | @Callable(i) | |
744 | 744 | func ClaimPrize () = { | |
745 | 745 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
746 | 746 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
747 | 747 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
748 | 748 | let minStakeBlock = (1440 * 7) | |
749 | 749 | let minref = 3 | |
750 | 750 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
751 | 751 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
752 | 752 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
753 | 753 | case a: Int => | |
754 | 754 | a | |
755 | 755 | case _ => | |
756 | 756 | 0 | |
757 | 757 | } | |
758 | 758 | let PrizeAmount = match getInteger(this, "FundBox") { | |
759 | 759 | case a: Int => | |
760 | 760 | a | |
761 | 761 | case _ => | |
762 | 762 | 0 | |
763 | 763 | } | |
764 | 764 | let UserPushValue = match getInteger(this, UserPush) { | |
765 | 765 | case a: Int => | |
766 | 766 | a | |
767 | 767 | case _ => | |
768 | 768 | 0 | |
769 | 769 | } | |
770 | 770 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
771 | 771 | case a: Int => | |
772 | 772 | a | |
773 | 773 | case _ => | |
774 | 774 | 0 | |
775 | 775 | } | |
776 | 776 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
777 | 777 | case a: Int => | |
778 | 778 | a | |
779 | 779 | case _ => | |
780 | 780 | 0 | |
781 | 781 | } | |
782 | 782 | let ActualDelay = match getInteger(this, "Delay") { | |
783 | 783 | case a: Int => | |
784 | 784 | a | |
785 | 785 | case _ => | |
786 | 786 | 0 | |
787 | 787 | } | |
788 | 788 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
789 | 789 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
790 | 790 | case a: Int => | |
791 | 791 | a | |
792 | 792 | case _ => | |
793 | 793 | 0 | |
794 | 794 | } | |
795 | 795 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
796 | 796 | case a: Int => | |
797 | 797 | a | |
798 | 798 | case _ => | |
799 | 799 | 0 | |
800 | 800 | } | |
801 | 801 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
802 | 802 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
803 | 803 | case a: Int => | |
804 | 804 | a | |
805 | 805 | case _ => | |
806 | 806 | 0 | |
807 | 807 | } | |
808 | 808 | if (if ((PrizeAmount == 0)) | |
809 | 809 | then true | |
810 | 810 | else (10000000000 > ContractGovTokenBalance)) | |
811 | 811 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
812 | 812 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
813 | 813 | then throw("You are not the winner hence cannot claim the reward ") | |
814 | 814 | else if (if ((100000000 > UserStakedTokenAmount)) | |
815 | 815 | then (minStakeBlock > UserLastStakeBlockValue) | |
816 | 816 | else false) | |
817 | 817 | then throw("You have to Stake ASIMI Token to claim reward ") | |
818 | 818 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
819 | 819 | then (UserPushValue >= HighestPushValue) | |
820 | 820 | else false) | |
821 | 821 | then if ((UserRefsNumValue >= minref)) | |
822 | 822 | 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 | 823 | else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days to Claim the prize")) | |
824 | 824 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
825 | 825 | } | |
826 | 826 | ||
827 | 827 | ||
828 | 828 | ||
829 | 829 | @Callable(i) | |
830 | 830 | func Addmentor (Mentor) = { | |
831 | 831 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
832 | 832 | if ((Mentor != "")) | |
833 | 833 | then [StringEntry(UserMentorAddress, Mentor)] | |
834 | 834 | else throw("Mentor's Address cannot be empty") | |
835 | 835 | } | |
836 | 836 | ||
837 | 837 | ||
838 | 838 | ||
839 | 839 | @Callable(i) | |
840 | 840 | func GetLikesPackage (TwitterUserId,TwittId) = { | |
841 | 841 | let pmt = if ((size(i.payments) == 2)) | |
842 | 842 | then i.payments[0] | |
843 | 843 | else throw("Attached payment is required") | |
844 | 844 | if (if ((i.payments[0].assetId == StakedToken)) | |
845 | 845 | then (i.payments[1].assetId == GovernToken) | |
846 | 846 | else false) | |
847 | - | then | |
848 | - | then (i.payments[1].amount > LikePackageTROIKANCost) | |
849 | - | | |
850 | - | | |
851 | - | else throw(("Amount should be :" + toString(( | |
847 | + | then if ((i.payments[0].amount > LikePackageASIMICost)) | |
848 | + | then if ((i.payments[1].amount > LikePackageTROIKANCost)) | |
849 | + | then [IntegerEntry((toString(TwitterUserId) + "_Twitt2Like"), TwittId)] | |
850 | + | else throw(("TROIKAN Amount should be :" + toString((LikePackageASIMICost / 100000000)))) | |
851 | + | else throw(("ASIMI Amount should be :" + toString((LikePackageTROIKANCost / 100000000)))) | |
852 | 852 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
853 | 853 | } | |
854 | 854 | ||
855 | 855 |
github/deemru/w8io/026f985 93.60 ms ◑