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