tx · CfFCYw52uCUTyS566Hop89TasfVZsi1zdhKmPyDnL7KU 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.02400000 Waves 2022.07.17 14:06 [2143672] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "CfFCYw52uCUTyS566Hop89TasfVZsi1zdhKmPyDnL7KU", "fee": 2400000, "feeAssetId": null, "timestamp": 1658055998648, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "5ksRXpkWA1Gqs7ULDgQ8SqbPScHHv2i1HBtwhQ4n8uDPwECGP7QgLhQaPPgbmxn7rspxVpqcyKLZQuB7nNFshYHj" ], "script": "base64:BgIvCAISABIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBIECgIBARIDCgEBEgMKAQgEAAtTdGFrZWRUb2tlbgEg+a5dhaqgwfNcHhVklvUuRcimKrmAG+DKV13AJarHD1AAC0dvdmVyblRva2VuASABbIXC10DGLlfEc7PFC2dO3zpcxegcWHrOz/9RkZaZLQAUTGlrZVBhY2thZ2VBU0lNSUNvc3QJAGgCAAEAgMLXLwAWTGlrZVBhY2thZ2VUUk9JS0FOQ29zdAkAaAIABQCAwtcvDQFpAQtEZXZXaXRoZHJhdwAECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwMJAAACBQpjdXJyZW50S2V5AiMzUDc0YnVIdDk4Qm5vakZjYVJFSlp0Yjk4S0R5VW1aR2VtSgQMRGV2Qm94QW1vdW50BAckbWF0Y2gwCQCaCAIFBHRoaXMCBkRldkJveAMJAAECBQckbWF0Y2gwAgNJbnQEAWEFByRtYXRjaDAFAWEAAAMJAGYCAAAFDERldkJveEFtb3VudAkAAgECEk5vdCBlbm91Z2ggYmFsYW5jZQkAzAgCCQEMSW50ZWdl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kGY2FsbGVyBRxVc2VyRWFybmVkZEFwcFJUVHdpdHRUUk9JS0FOBQtHb3Zlcm5Ub2tlbgUDbmlsCQACAQI7TWluaW11bSBlYXJuaW5ncyB0byB3aXRoZHJhdyBhcmU6IDEwMCBBU0lNSSBhbmQgNTAgVHJvaWthbnMBaQEVTGlua1R3aXR0ZXJBY2MyV2FsbGV0AQ1Ud2l0dGVyVXNlcklkBBNUd2l0dGVyTGlua2VkV2FsbGV0BAckbWF0Y2gwCQCdCAIFBHRoaXMJAKwCAgUNVHdpdHRlclVzZXJJZAIHX1dhbGxldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWECBE5vbmUDCQAAAgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBRNUd2l0dGVyTGlua2VkV2FsbGV0CQACAQI6WW91IGFscmVhZHkgaGF2ZSB5b3VyIHdhbGxldCBsaW5rZWQgdG8gdGhlIFR3aXR0ZXIgYWNjb3VudAMDCQECIT0CCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMFE1R3aXR0ZXJMaW5rZWRXYWxsZXQJAQIhPQIFE1R3aXR0ZXJMaW5rZWRXYWxsZXQCBE5vbmUHCQACAQJJVGhlIHdhbGxldCB5b3UgYXJlIHVzaW5nIGlzIG5vdCB0aGUgbGlua2VkIFdhbGxldCB0byB0aGlzIFR3aXR0ZXIgYWNjb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFDVR3aXR0ZXJVc2VySWQCB19XYWxsZXQJANgEAQgIBQFpBmNhbGxlcgVieXRlcwUDbmlsABS8iN0=", "height": 2143672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJfLY1ggy7m1S4WxXadYupjAW4HK9uetJtCKj26qMW7m Next: 9MgEXhPo6fg71yoQqR3YgQWBiM3ZUGpUCbQAmRgd7rZe Diff:
Old | New | Differences | |
---|---|---|---|
911 | 911 | if ((toBase58String(i.caller.bytes) == TwitterLinkedWallet)) | |
912 | 912 | then throw("You already have your wallet linked to the Twitter account") | |
913 | 913 | else if (if ((toBase58String(i.caller.bytes) != TwitterLinkedWallet)) | |
914 | - | then ( | |
914 | + | then (TwitterLinkedWallet != "None") | |
915 | 915 | else false) | |
916 | 916 | then throw("The wallet you are using is not the linked Wallet to this Twitter account") | |
917 | 917 | else [StringEntry((TwitterUserId + "_Wallet"), toBase58String(i.caller.bytes))] |
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 LikePackageTROIKANCostValue = match getInteger(this, "LikePackageTROIKANCost") { | |
842 | 842 | case a: Int => | |
843 | 843 | a | |
844 | 844 | case _ => | |
845 | 845 | 0 | |
846 | 846 | } | |
847 | 847 | let LikePackageASIMICostValue = match getInteger(this, "LikePackageASIMICost") { | |
848 | 848 | case a: Int => | |
849 | 849 | a | |
850 | 850 | case _ => | |
851 | 851 | 0 | |
852 | 852 | } | |
853 | 853 | let pmt = if ((size(i.payments) == 2)) | |
854 | 854 | then i.payments[0] | |
855 | 855 | else throw("Attached payment is required") | |
856 | 856 | if (if ((i.payments[0].assetId == StakedToken)) | |
857 | 857 | then (i.payments[1].assetId == GovernToken) | |
858 | 858 | else false) | |
859 | 859 | then if ((i.payments[0].amount >= LikePackageASIMICostValue)) | |
860 | 860 | then if ((i.payments[1].amount >= LikePackageTROIKANCostValue)) | |
861 | 861 | then { | |
862 | 862 | let Influencer = ((toString(TwitterUserId) + "_Twitt2Like_") + toString(TwittId)) | |
863 | 863 | let InfluencerBalance = match getInteger(this, Influencer) { | |
864 | 864 | case a: Int => | |
865 | 865 | a | |
866 | 866 | case _ => | |
867 | 867 | 0 | |
868 | 868 | } | |
869 | 869 | if ((InfluencerBalance == 0)) | |
870 | 870 | then [IntegerEntry(((toString(TwitterUserId) + "_Twitt2Like_") + toString(TwittId)), ((95 * LikePackageASIMICost) / 100)), IntegerEntry("LikeTwittsDevBox", ((5 * LikePackageASIMICost) / 100))] | |
871 | 871 | else throw("Cannot acquire a new package, the prior like package has to be drained to be able to acquire a new one") | |
872 | 872 | } | |
873 | 873 | else throw(("TROIKAN Amount should be :" + toString((LikePackageASIMICost / 100000000)))) | |
874 | 874 | else throw(("ASIMI Amount should be :" + toString((LikePackageTROIKANCost / 100000000)))) | |
875 | 875 | else throw("Payments should be both ASIMI and TROIKAN tokens") | |
876 | 876 | } | |
877 | 877 | ||
878 | 878 | ||
879 | 879 | ||
880 | 880 | @Callable(i) | |
881 | 881 | func GetMyLikedTwittsRewards (UserId) = { | |
882 | 882 | let UserEarnedLikeTwittASIMI = match getInteger(this, (toString(UserId) + "_Like_Amount")) { | |
883 | 883 | case a: Int => | |
884 | 884 | a | |
885 | 885 | case _ => | |
886 | 886 | 0 | |
887 | 887 | } | |
888 | 888 | let UserEarneddAppRTTwittTROIKAN = match getInteger(this, (toString(UserId) + "_TroikandApp_RT_Amount")) { | |
889 | 889 | case a: Int => | |
890 | 890 | a | |
891 | 891 | case _ => | |
892 | 892 | 0 | |
893 | 893 | } | |
894 | 894 | if (if ((UserEarnedLikeTwittASIMI >= (1 * 100000000))) | |
895 | 895 | then (UserEarneddAppRTTwittTROIKAN >= (1 * 100000000)) | |
896 | 896 | else false) | |
897 | 897 | 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 | 898 | else throw("Minimum earnings to withdraw are: 100 ASIMI and 50 Troikans") | |
899 | 899 | } | |
900 | 900 | ||
901 | 901 | ||
902 | 902 | ||
903 | 903 | @Callable(i) | |
904 | 904 | func LinkTwitterAcc2Wallet (TwitterUserId) = { | |
905 | 905 | let TwitterLinkedWallet = match getString(this, (TwitterUserId + "_Wallet")) { | |
906 | 906 | case a: String => | |
907 | 907 | a | |
908 | 908 | case _ => | |
909 | 909 | "None" | |
910 | 910 | } | |
911 | 911 | if ((toBase58String(i.caller.bytes) == TwitterLinkedWallet)) | |
912 | 912 | then throw("You already have your wallet linked to the Twitter account") | |
913 | 913 | else if (if ((toBase58String(i.caller.bytes) != TwitterLinkedWallet)) | |
914 | - | then ( | |
914 | + | then (TwitterLinkedWallet != "None") | |
915 | 915 | else false) | |
916 | 916 | then throw("The wallet you are using is not the linked Wallet to this Twitter account") | |
917 | 917 | else [StringEntry((TwitterUserId + "_Wallet"), toBase58String(i.caller.bytes))] | |
918 | 918 | } | |
919 | 919 | ||
920 | 920 |
github/deemru/w8io/169f3d6 76.13 ms ◑