tx · 3DcyngzWj7RfopsocsfyDJBhEBYe6DiyDfkKYtVioMWA 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.01000000 Waves 2021.05.29 22:48 [1547390] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "3DcyngzWj7RfopsocsfyDJBhEBYe6DiyDfkKYtVioMWA", "fee": 1000000, "feeAssetId": null, "timestamp": 1622317711677, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "3HDUGwwvLXCBLuhSXj5iLjidsUVDXn4iznKFANnzCQkj9Y3BiLC6YA7ubNuzCyU6ENP8Qd1PrDNnjFyYVLYgBrXq" ], "script": "base64:AAIDAAAAAAAAABsIARIAEgASABIDCgEBEgMKAQESABIAEgMKAQgAAAAAAAAACAAAAAFpAQAAAAtEZXZXaXRoZHJhdwAAAAAEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALR292ZXJuVG9rZW4BAAAAIBCA+Di6G71u5eBGn7OO/XvXyTq77GEaAEk/DSjFvl25AwkAAAAAAAACBQAAAApjdXJyZW50S2V5AgAAACMzUDc0YnVIdDk4Qm5vakZjYVJFSlp0Yjk4S0R5VW1aR2VtSgQAAAAMRGV2Qm94QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAABkRldkJveAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwkAAGYAAAACAAAAAAAAAAAABQAAAAxEZXZCb3hBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdya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UgaGF2ZSB0byBiZSB0aGUgdXNlciB3aXRoIHRoZSBoaWdoZXN0IFB1c2ggYW5kIHdhaXQgdGlsbCBjb3VudG93biBpcyBmaW5pc2hlZCwgdG8gY2xhaW0gUmV3YXJkAAAAAWkBAAAACUFkZG1lbnRvcgAAAAEAAAAGTWVudG9yBAAAAAtTdGFrZWRUb2tlbgEAAAAgtdEoYbzmBKc83jS/KKdye173/DgIlmcoGG447AQsIbIEAAAAC0dvdmVyblRva2VuAQAAACAQgPg4uhu9buXgRp+zjv1718k6u+xhGgBJPw0oxb5duQQAAAARVXNlck1lbnRvckFkZHJlc3MJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAdfTWVudG9yAwkBAAAAAiE9AAAAAgUAAAAGTWVudG9yAgAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEVVzZXJNZW50b3JBZGRyZXNzBQAAAAZNZW50b3IFAAAAA25pbAkAAAIAAAABAgAAACBNZW50b3IncyBBZGRyZXNzIGNhbm5vdCBiZSBlbXB0eQAAAADrOzKc", "height": 1547390, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3TmG2oXgyFTp3ZuKhRzpsSzZV7B4byWfhXtfN52x6pAw Next: GuYBQUPbZj6R3iedPC4v1hQcGY4vnKmBjqvazWgzfdog Diff:
Old | New | Differences | |
---|---|---|---|
31 | 31 | let minPushBlock = 0 | |
32 | 32 | let minStakeBlock = (1 * 1) | |
33 | 33 | let DelayAfterPush = 5 | |
34 | - | let WaitTime = | |
34 | + | let WaitTime = 5 | |
35 | 35 | let minref = 0 | |
36 | 36 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
37 | 37 | let pmt = extract(i.payment) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func DevWithdraw () = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | 10 | if ((currentKey == "3P74buHt98BnojFcaREJZtb98KDyUmZGemJ")) | |
11 | 11 | then { | |
12 | 12 | let DevBoxAmount = match getInteger(this, "DevBox") { | |
13 | 13 | case a: Int => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | 0 | |
17 | 17 | } | |
18 | 18 | if ((0 > DevBoxAmount)) | |
19 | 19 | then throw("Not enough balance") | |
20 | 20 | else ScriptResult(WriteSet([DataEntry("DevBox", 0)]), TransferSet([ScriptTransfer(i.caller, DevBoxAmount, GovernToken)])) | |
21 | 21 | } | |
22 | 22 | else throw("You cannot withdraw as your are not the Dev.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func PushReward () = { | |
29 | 29 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
30 | 30 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
31 | 31 | let minPushBlock = 0 | |
32 | 32 | let minStakeBlock = (1 * 1) | |
33 | 33 | let DelayAfterPush = 5 | |
34 | - | let WaitTime = | |
34 | + | let WaitTime = 5 | |
35 | 35 | let minref = 0 | |
36 | 36 | let userWalletGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
37 | 37 | let pmt = extract(i.payment) | |
38 | 38 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
39 | 39 | let UserLastPushOldValue = match getInteger(this, UserPush) { | |
40 | 40 | case a: Int => | |
41 | 41 | a | |
42 | 42 | case _ => | |
43 | 43 | 0 | |
44 | 44 | } | |
45 | 45 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
46 | 46 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
47 | 47 | case a: Int => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | 0 | |
51 | 51 | } | |
52 | 52 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
53 | 53 | case a: Int => | |
54 | 54 | a | |
55 | 55 | case _ => | |
56 | 56 | 0 | |
57 | 57 | } | |
58 | 58 | if ((userWalletGovernBalance > pmt.amount)) | |
59 | 59 | then if (if (((pmt.amount + UserLastPushOldValue) > HighestPushValue)) | |
60 | 60 | then (pmt.assetId == GovernToken) | |
61 | 61 | else false) | |
62 | 62 | then { | |
63 | 63 | let UserLastPushBlock = (toBase58String(i.caller.bytes) + "_UserLastPushBlock") | |
64 | 64 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
65 | 65 | let UserStake = (toBase58String(i.caller.bytes) + "_Staking") | |
66 | 66 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
67 | 67 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
68 | 68 | case a: Int => | |
69 | 69 | a | |
70 | 70 | case _ => | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | let PrizeAmount = match getInteger(this, "FundBox") { | |
74 | 74 | case a: Int => | |
75 | 75 | a | |
76 | 76 | case _ => | |
77 | 77 | 0 | |
78 | 78 | } | |
79 | 79 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
80 | 80 | case a: Int => | |
81 | 81 | a | |
82 | 82 | case _ => | |
83 | 83 | 0 | |
84 | 84 | } | |
85 | 85 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
86 | 86 | then (PrizeAmount == 0) | |
87 | 87 | else false) | |
88 | 88 | then 0 | |
89 | 89 | else if (if ((HeightTransactFundBox == 0)) | |
90 | 90 | then (PrizeAmount != 0) | |
91 | 91 | else false) | |
92 | 92 | then height | |
93 | 93 | else if (if ((HeightTransactFundBox != 0)) | |
94 | 94 | then (PrizeAmount != 0) | |
95 | 95 | else false) | |
96 | 96 | then HeightTransactFundBox | |
97 | 97 | else 0 | |
98 | 98 | let ActualDelay = match getInteger(this, "Delay") { | |
99 | 99 | case a: Int => | |
100 | 100 | a | |
101 | 101 | case _ => | |
102 | 102 | 0 | |
103 | 103 | } | |
104 | 104 | let NewDelay = (ActualDelay + DelayAfterPush) | |
105 | 105 | let HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
106 | 106 | case a: Int => | |
107 | 107 | a | |
108 | 108 | case _ => | |
109 | 109 | 0 | |
110 | 110 | } | |
111 | 111 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
112 | 112 | case a: Int => | |
113 | 113 | a | |
114 | 114 | case _ => | |
115 | 115 | 0 | |
116 | 116 | } | |
117 | 117 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
118 | 118 | case a: Int => | |
119 | 119 | a | |
120 | 120 | case _ => | |
121 | 121 | 0 | |
122 | 122 | } | |
123 | 123 | let UserStakeValue = match getInteger(this, UserStake) { | |
124 | 124 | case a: Int => | |
125 | 125 | a | |
126 | 126 | case _ => | |
127 | 127 | 0 | |
128 | 128 | } | |
129 | 129 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
130 | 130 | case a: Int => | |
131 | 131 | a | |
132 | 132 | case _ => | |
133 | 133 | 0 | |
134 | 134 | } | |
135 | 135 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
136 | 136 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
137 | 137 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
138 | 138 | then (HighestPushValue > 0) | |
139 | 139 | else false) | |
140 | 140 | then height | |
141 | 141 | else PrizeHeightValue | |
142 | 142 | if (if ((UserPushvalue > 0)) | |
143 | 143 | then ((height - UserLastStakeBlockValue) > minStakeBlock) | |
144 | 144 | else false) | |
145 | 145 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
146 | 146 | then if ((UserStakeValue > 0)) | |
147 | 147 | then if ((UserPushvalue > HighestPushValue)) | |
148 | 148 | then if ((PrizeAmount > 0)) | |
149 | 149 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) > height)) | |
150 | 150 | then true | |
151 | 151 | else (height > ((PrizeHeightValueNew + NewDelay) + WaitTime))) | |
152 | 152 | then (HighestPushValue > 0) | |
153 | 153 | else false) | |
154 | 154 | then true | |
155 | 155 | else (HighestPushValue == 0)) | |
156 | 156 | then if ((UserRefsNumValue >= minref)) | |
157 | 157 | then WriteSet([DataEntry(UserPush, UserPushvalue), DataEntry("HighestPushAddress", toBase58String(i.caller.bytes)), DataEntry("HighestPush", UserPushvalue), DataEntry(UserLastPushBlock, height), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry("Delay", NewDelay), DataEntry("DevBox", DevBoxAmount)]) | |
158 | 158 | else throw("You have to have 10 referrals already staking for a minimum of 10 days, to push") | |
159 | 159 | else { | |
160 | 160 | let txt = if ((HighestPushValue > 0)) | |
161 | 161 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
162 | 162 | else "Unexpected error" | |
163 | 163 | throw(txt) | |
164 | 164 | } | |
165 | 165 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
166 | 166 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
167 | 167 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
168 | 168 | else throw("You have to wait 10min before you can make a new Push") | |
169 | 169 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
170 | 170 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
171 | 171 | } | |
172 | 172 | 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")) | |
173 | 173 | 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 !") | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func Stake () = { | |
180 | 180 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
181 | 181 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
182 | 182 | let pmt = extract(i.payment) | |
183 | 183 | if (if ((pmt.amount > 0)) | |
184 | 184 | then (pmt.assetId == StakedToken) | |
185 | 185 | else false) | |
186 | 186 | then { | |
187 | 187 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
188 | 188 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
189 | 189 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
190 | 190 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
191 | 191 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
192 | 192 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
193 | 193 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
194 | 194 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
195 | 195 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
196 | 196 | case a: Int => | |
197 | 197 | a | |
198 | 198 | case _ => | |
199 | 199 | 0 | |
200 | 200 | } | |
201 | 201 | let UserPushValue = match getInteger(this, UserPush) { | |
202 | 202 | case a: Int => | |
203 | 203 | a | |
204 | 204 | case _ => | |
205 | 205 | 0 | |
206 | 206 | } | |
207 | 207 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
208 | 208 | case a: Int => | |
209 | 209 | a | |
210 | 210 | case _ => | |
211 | 211 | 0 | |
212 | 212 | } | |
213 | 213 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
214 | 214 | then height | |
215 | 215 | else UserLastStakeBlockValue | |
216 | 216 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
217 | 217 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
218 | 218 | case a: Int => | |
219 | 219 | a | |
220 | 220 | case _ => | |
221 | 221 | 0 | |
222 | 222 | } | |
223 | 223 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
224 | 224 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
225 | 225 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
226 | 226 | case a: Int => | |
227 | 227 | a | |
228 | 228 | case _ => | |
229 | 229 | 0 | |
230 | 230 | } | |
231 | 231 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
232 | 232 | let PrizeAmount = match getInteger(this, "FundBox") { | |
233 | 233 | case a: Int => | |
234 | 234 | a | |
235 | 235 | case _ => | |
236 | 236 | 0 | |
237 | 237 | } | |
238 | 238 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
239 | 239 | case a: Int => | |
240 | 240 | a | |
241 | 241 | case _ => | |
242 | 242 | 0 | |
243 | 243 | } | |
244 | 244 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
245 | 245 | case a: Int => | |
246 | 246 | a | |
247 | 247 | case _ => | |
248 | 248 | 0 | |
249 | 249 | } | |
250 | 250 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
251 | 251 | then (PrizeAmount == 0) | |
252 | 252 | else false) | |
253 | 253 | then 0 | |
254 | 254 | else if (if ((HeightTransactFundBox == 0)) | |
255 | 255 | then (PrizeAmount != 0) | |
256 | 256 | else false) | |
257 | 257 | then height | |
258 | 258 | else if (if ((HeightTransactFundBox != 0)) | |
259 | 259 | then (PrizeAmount != 0) | |
260 | 260 | else false) | |
261 | 261 | then HeightTransactFundBox | |
262 | 262 | else 0 | |
263 | 263 | if ((100000000 > GovernTokenSmartContractBalance)) | |
264 | 264 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
265 | 265 | else { | |
266 | 266 | let Reward = if ((StakeBalance == 0)) | |
267 | 267 | then 10000 | |
268 | 268 | else if ((NewUserStakeTransactions > 10)) | |
269 | 269 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
270 | 270 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
271 | 271 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
272 | 272 | then ((100 * Reward) / currentAmountGovernToken) | |
273 | 273 | else 0 | |
274 | 274 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
275 | 275 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | else throw("Can deposit only StakeToken") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Callable(i) | |
284 | 284 | func WithdrawStakedFunds (amount) = { | |
285 | 285 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
286 | 286 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
287 | 287 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
288 | 288 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
289 | 289 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
290 | 290 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
291 | 291 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
292 | 292 | case a: Int => | |
293 | 293 | a | |
294 | 294 | case _ => | |
295 | 295 | 0 | |
296 | 296 | } | |
297 | 297 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
298 | 298 | case a: Int => | |
299 | 299 | a | |
300 | 300 | case _ => | |
301 | 301 | 0 | |
302 | 302 | } | |
303 | 303 | let PrizeAmount = match getInteger(this, "FundBox") { | |
304 | 304 | case a: Int => | |
305 | 305 | a | |
306 | 306 | case _ => | |
307 | 307 | 0 | |
308 | 308 | } | |
309 | 309 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
310 | 310 | case a: Int => | |
311 | 311 | a | |
312 | 312 | case _ => | |
313 | 313 | 0 | |
314 | 314 | } | |
315 | 315 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
316 | 316 | then (PrizeAmount == 0) | |
317 | 317 | else false) | |
318 | 318 | then 0 | |
319 | 319 | else if (if ((HeightTransactFundBox == 0)) | |
320 | 320 | then (PrizeAmount != 0) | |
321 | 321 | else false) | |
322 | 322 | then height | |
323 | 323 | else if (if ((HeightTransactFundBox != 0)) | |
324 | 324 | then (PrizeAmount != 0) | |
325 | 325 | else false) | |
326 | 326 | then HeightTransactFundBox | |
327 | 327 | else 0 | |
328 | 328 | let currentKey = toBase58String(i.caller.bytes) | |
329 | 329 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
330 | 330 | case a: Int => | |
331 | 331 | a | |
332 | 332 | case _ => | |
333 | 333 | 0 | |
334 | 334 | } | |
335 | 335 | let newAmount = (currentAmount - amount) | |
336 | 336 | let StakeBalanceAmount = (StakeBalance - amount) | |
337 | 337 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
338 | 338 | then 0 | |
339 | 339 | else UserLastStakeBlockValue | |
340 | 340 | if ((0 > amount)) | |
341 | 341 | then throw("Can't withdraw negative amount") | |
342 | 342 | else if ((0 > newAmount)) | |
343 | 343 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
344 | 344 | else if ((100000000 > assetBalance(this, GovernToken))) | |
345 | 345 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
346 | 346 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(i) | |
352 | 352 | func HarvestGovernToiken (amount) = { | |
353 | 353 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
354 | 354 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
355 | 355 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
356 | 356 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
357 | 357 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
358 | 358 | case a: Int => | |
359 | 359 | a | |
360 | 360 | case _ => | |
361 | 361 | 0 | |
362 | 362 | } | |
363 | 363 | let PrizeAmount = match getInteger(this, "FundBox") { | |
364 | 364 | case a: Int => | |
365 | 365 | a | |
366 | 366 | case _ => | |
367 | 367 | 0 | |
368 | 368 | } | |
369 | 369 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
370 | 370 | case a: Int => | |
371 | 371 | a | |
372 | 372 | case _ => | |
373 | 373 | 0 | |
374 | 374 | } | |
375 | 375 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
376 | 376 | then (PrizeAmount == 0) | |
377 | 377 | else false) | |
378 | 378 | then 0 | |
379 | 379 | else if (if ((HeightTransactFundBox == 0)) | |
380 | 380 | then (PrizeAmount != 0) | |
381 | 381 | else false) | |
382 | 382 | then height | |
383 | 383 | else if (if ((HeightTransactFundBox != 0)) | |
384 | 384 | then (PrizeAmount != 0) | |
385 | 385 | else false) | |
386 | 386 | then HeightTransactFundBox | |
387 | 387 | else 0 | |
388 | 388 | let currentKey = toBase58String(i.caller.bytes) | |
389 | 389 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
390 | 390 | case a: Int => | |
391 | 391 | a | |
392 | 392 | case _ => | |
393 | 393 | 0 | |
394 | 394 | } | |
395 | 395 | let newAmount = (currentAmount - amount) | |
396 | 396 | if ((0 > amount)) | |
397 | 397 | then throw("Can't withdraw negative amount") | |
398 | 398 | else if ((0 > newAmount)) | |
399 | 399 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
400 | 400 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func delayprize () = { | |
407 | 407 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
408 | 408 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
409 | 409 | let DelayDays = (1 * 1) | |
410 | 410 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
411 | 411 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
412 | 412 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
413 | 413 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
414 | 414 | case a: Int => | |
415 | 415 | a | |
416 | 416 | case _ => | |
417 | 417 | 0 | |
418 | 418 | } | |
419 | 419 | let PrizeAmount = match getInteger(this, "FundBox") { | |
420 | 420 | case a: Int => | |
421 | 421 | a | |
422 | 422 | case _ => | |
423 | 423 | 0 | |
424 | 424 | } | |
425 | 425 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
426 | 426 | case a: Int => | |
427 | 427 | a | |
428 | 428 | case _ => | |
429 | 429 | 0 | |
430 | 430 | } | |
431 | 431 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
432 | 432 | then (PrizeAmount == 0) | |
433 | 433 | else false) | |
434 | 434 | then 0 | |
435 | 435 | else if (if ((HeightTransactFundBox == 0)) | |
436 | 436 | then (PrizeAmount != 0) | |
437 | 437 | else false) | |
438 | 438 | then height | |
439 | 439 | else if (if ((HeightTransactFundBox != 0)) | |
440 | 440 | then (PrizeAmount != 0) | |
441 | 441 | else false) | |
442 | 442 | then HeightTransactFundBox | |
443 | 443 | else 0 | |
444 | 444 | let ActualDelay = match getInteger(this, "Delay") { | |
445 | 445 | case a: Int => | |
446 | 446 | a | |
447 | 447 | case _ => | |
448 | 448 | 0 | |
449 | 449 | } | |
450 | 450 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
451 | 451 | case a: Int => | |
452 | 452 | a | |
453 | 453 | case _ => | |
454 | 454 | 10 | |
455 | 455 | } | |
456 | 456 | let pmt = extract(i.payment) | |
457 | 457 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
458 | 458 | case a: Int => | |
459 | 459 | a | |
460 | 460 | case _ => | |
461 | 461 | 0 | |
462 | 462 | } | |
463 | 463 | if (if (isDefined(pmt.assetId)) | |
464 | 464 | then (extract(pmt.assetId) == GovernToken) | |
465 | 465 | else false) | |
466 | 466 | then if ((PrizeAmount > 0)) | |
467 | 467 | then { | |
468 | 468 | let UserGovernTokenAmount = pmt.amount | |
469 | 469 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
470 | 470 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
471 | 471 | then 1000000000 | |
472 | 472 | else (2 * ActualDelayCost) | |
473 | 473 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
474 | 474 | then { | |
475 | 475 | let NewDelay = (ActualDelay + DelayDays) | |
476 | 476 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry("DevBox", DevBoxAmount)]) | |
477 | 477 | } | |
478 | 478 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
479 | 479 | } | |
480 | 480 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
481 | 481 | else throw("Can Use only Troika Token to Delay Reward") | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | ||
486 | 486 | @Callable(i) | |
487 | 487 | func ClaimPrize () = { | |
488 | 488 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
489 | 489 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
490 | 490 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
491 | 491 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
492 | 492 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
493 | 493 | let minStakeBlock = 7 | |
494 | 494 | let minref = 0 | |
495 | 495 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
496 | 496 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
497 | 497 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
498 | 498 | case a: Int => | |
499 | 499 | a | |
500 | 500 | case _ => | |
501 | 501 | 0 | |
502 | 502 | } | |
503 | 503 | let PrizeAmount = match getInteger(this, "FundBox") { | |
504 | 504 | case a: Int => | |
505 | 505 | a | |
506 | 506 | case _ => | |
507 | 507 | 0 | |
508 | 508 | } | |
509 | 509 | let UserPushValue = match getInteger(this, UserPush) { | |
510 | 510 | case a: Int => | |
511 | 511 | a | |
512 | 512 | case _ => | |
513 | 513 | 0 | |
514 | 514 | } | |
515 | 515 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
516 | 516 | case a: Int => | |
517 | 517 | a | |
518 | 518 | case _ => | |
519 | 519 | 0 | |
520 | 520 | } | |
521 | 521 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
522 | 522 | case a: Int => | |
523 | 523 | a | |
524 | 524 | case _ => | |
525 | 525 | 0 | |
526 | 526 | } | |
527 | 527 | let ActualDelay = match getInteger(this, "Delay") { | |
528 | 528 | case a: Int => | |
529 | 529 | a | |
530 | 530 | case _ => | |
531 | 531 | 0 | |
532 | 532 | } | |
533 | 533 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
534 | 534 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
535 | 535 | case a: Int => | |
536 | 536 | a | |
537 | 537 | case _ => | |
538 | 538 | 0 | |
539 | 539 | } | |
540 | 540 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
541 | 541 | case a: Int => | |
542 | 542 | a | |
543 | 543 | case _ => | |
544 | 544 | 0 | |
545 | 545 | } | |
546 | 546 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
547 | 547 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
548 | 548 | case a: Int => | |
549 | 549 | a | |
550 | 550 | case _ => | |
551 | 551 | 0 | |
552 | 552 | } | |
553 | 553 | if (if ((PrizeAmount == 0)) | |
554 | 554 | then true | |
555 | 555 | else (10000000000 > ContractGovTokenBalance)) | |
556 | 556 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
557 | 557 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
558 | 558 | then throw("You are not the winner hence cannot claim the reward ") | |
559 | 559 | else if (if ((100000000 > UserStakedTokenAmount)) | |
560 | 560 | then (minStakeBlock > UserLastStakeBlockValue) | |
561 | 561 | else false) | |
562 | 562 | then throw("You have to Stake ASIMI Token to claim reward ") | |
563 | 563 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
564 | 564 | then (UserPushValue >= HighestPushValue) | |
565 | 565 | else false) | |
566 | 566 | then if ((UserRefsNumValue >= minref)) | |
567 | 567 | then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry("FundBox", 0), DataEntry("HighestPush", 0), DataEntry(UserPush, 0), DataEntry("HighestPushAddress", ""), DataEntry("PrizeHeight", 0), DataEntry("Delay", 0), DataEntry("DelayCost", 0), DataEntry("LastWinner", PrizeWinner), DataEntry("LastPrize", PrizeAmount)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 1000000000, GovernToken)])) | |
568 | 568 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
569 | 569 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
570 | 570 | } | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | ||
574 | 574 | @Callable(i) | |
575 | 575 | func Addmentor (Mentor) = { | |
576 | 576 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
577 | 577 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
578 | 578 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
579 | 579 | if ((Mentor != "")) | |
580 | 580 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
581 | 581 | else throw("Mentor's Address cannot be empty") | |
582 | 582 | } | |
583 | 583 | ||
584 | 584 |
github/deemru/w8io/026f985 56.79 ms ◑