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