tx · 7VDJDyLMXPBWzD6stgNwFXXpAif6d3Xc69hLUwmVAkHR 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.01000000 Waves 2021.08.10 20:01 [1652520] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "7VDJDyLMXPBWzD6stgNwFXXpAif6d3Xc69hLUwmVAkHR", "fee": 1000000, "feeAssetId": null, "timestamp": 1628614893380, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "5DRg1BZAiSgRkaDT9Y1QGTDsfssFsAH6VqXBfwETwgDmwTsBG57MrsnzR2ddUfHNhvTxVRWpPNkgEWkbs8hZMpMB" ], "script": "base64:AAIDAAAAAAAAB1kIARIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBoHCgJhMRIBaRoQCgJhMhIKY3VycmVudEtleRoRCgJhMxILR292ZXJuVG9rZW4aEgoCYTQSDERldkJveEFtb3VudBoNCgJhNRIHJG1hdGNoMBoHCgJhNhIBYRoRCgJhNxILU3Rha2VkVG9rZW4aEgoCYTgSDG1pblB1c2hCbG9jaxoTCgJhORINbWluU3Rha2VCbG9jaxoUCgJiMRIORGVsYXlBZnRlclB1c2gaDgoCYjISCFdhaXRUaW1lGgwKAmIzEgZtaW5yZWYaHQoCYjQSF3VzZXJXYWxsZXRHb3Zlcm5CYWxhbmNlGgkKAmI1EgNwbXQaDgoCYjYSCFVzZXJQdXNoGhoKAmI3EhRVc2VyTGFzdFB1c2hPbGRWYWx1ZRoRCgJiOBILVXNlclJlZnNOdW0aFgoCYjkSEFVzZXJSZWZzTnVtVmFsdWUaFgoCYzESEEhpZ2hlc3RQdXNoVmFsdWUaFwoCYzISEVVzZXJMYXN0UHVzaEJsb2NrGhgKAmMzEhJVc2VyTGFzdFN0YWtlQmxv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GUgdXNlciB3aXRoIHRoZSBoaWdoZXN0IFB1c2ggYW5kIHdhaXQgdGlsbCBjb3VudG93biBpcyBmaW5pc2hlZCwgdG8gY2xhaW0gUmV3YXJkAAAAAmExAQAAAAlBZGRtZW50b3IAAAABAAAAAmk3BAAAAAJhNwEAAAAg+a5dhaqgwfNcHhVklvUuRcimKrmAG+DKV13AJarHD1AEAAAAAmEzAQAAACC2ikUgda1HfHfe3ScIylr93sF2+hRqNFA399oMKwR5MAQAAAACaTgJAAEsAAAAAgkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwIAAAAHX01lbnRvcgMJAQAAAAIhPQAAAAIFAAAAAmk3AgAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAAmk4BQAAAAJpNwUAAAADbmlsCQAAAgAAAAECAAAAIE1lbnRvcidzIEFkZHJlc3MgY2Fubm90IGJlIGVtcHR5AAAAAAgY/dg=", "height": 1652520, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BWpD5WGQRxPds6vt5evHS23BDp2bXsBtJujHG8o1w4jr Next: 8EupG7MhVBUU4FBZvA73eyzP5YVBGR4aNQGPcG5W43Lm Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | 28 | func PushReward () = { | |
29 | - | let StakedToken = base58' | |
29 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
30 | 30 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
31 | 31 | let minPushBlock = 10 | |
32 | 32 | let minStakeBlock = (7 * 1440) | |
181 | 181 | ||
182 | 182 | @Callable(i) | |
183 | 183 | func Stake () = { | |
184 | - | let StakedToken = base58' | |
184 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
185 | 185 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
186 | 186 | let pmt = extract(i.payment) | |
187 | 187 | if (if ((pmt.amount > 0)) | |
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func WithdrawStakedFunds (amount) = { | |
311 | - | let StakedToken = base58' | |
311 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
312 | 312 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
313 | 313 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
314 | 314 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func WithdrawBigStakeReward () = { | |
379 | - | let StakedToken = base58' | |
379 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
380 | 380 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
381 | 381 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "LastBigStakerRewardBlock") | |
382 | 382 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
449 | 449 | ||
450 | 450 | @Callable(i) | |
451 | 451 | func HarvestGovernToiken (amount) = { | |
452 | - | let StakedToken = base58' | |
452 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
453 | 453 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
454 | 454 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
455 | 455 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
503 | 503 | ||
504 | 504 | @Callable(i) | |
505 | 505 | func delayprize () = { | |
506 | - | let StakedToken = base58' | |
506 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
507 | 507 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
508 | 508 | let DelayDays = (1 * 1440) | |
509 | 509 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
584 | 584 | ||
585 | 585 | @Callable(i) | |
586 | 586 | func ClaimPrize () = { | |
587 | - | let StakedToken = base58' | |
587 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
588 | 588 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
589 | 589 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
590 | 590 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
672 | 672 | ||
673 | 673 | @Callable(i) | |
674 | 674 | func Addmentor (Mentor) = { | |
675 | - | let StakedToken = base58' | |
675 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
676 | 676 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
677 | 677 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
678 | 678 | if ((Mentor != "")) |
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'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
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 | - | let StakedToken = base58' | |
29 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
30 | 30 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
31 | 31 | let minPushBlock = 10 | |
32 | 32 | let minStakeBlock = (7 * 1440) | |
33 | 33 | let DelayAfterPush = 60 | |
34 | 34 | let WaitTime = 1440 | |
35 | 35 | let minref = 1 | |
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 HighestPushAddress = match getInteger(this, "HighestPushAddress") { | |
105 | 105 | case a: Int => | |
106 | 106 | a | |
107 | 107 | case _ => | |
108 | 108 | 0 | |
109 | 109 | } | |
110 | 110 | let UserLastPushBlockValue = match getInteger(this, UserLastPushBlock) { | |
111 | 111 | case a: Int => | |
112 | 112 | a | |
113 | 113 | case _ => | |
114 | 114 | 0 | |
115 | 115 | } | |
116 | 116 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
117 | 117 | case a: Int => | |
118 | 118 | a | |
119 | 119 | case _ => | |
120 | 120 | 0 | |
121 | 121 | } | |
122 | 122 | let UserStakeValue = match getInteger(this, UserStake) { | |
123 | 123 | case a: Int => | |
124 | 124 | a | |
125 | 125 | case _ => | |
126 | 126 | 0 | |
127 | 127 | } | |
128 | 128 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
129 | 129 | case a: Int => | |
130 | 130 | a | |
131 | 131 | case _ => | |
132 | 132 | 0 | |
133 | 133 | } | |
134 | 134 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
135 | 135 | let UserPushvalue = (pmt.amount + UserLastPushOldValue) | |
136 | 136 | let NewDelay = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
137 | 137 | then (HighestPushValue > 0) | |
138 | 138 | else false) | |
139 | 139 | then 1440 | |
140 | 140 | else (ActualDelay + DelayAfterPush) | |
141 | 141 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + NewDelay) + WaitTime))) | |
142 | 142 | then (HighestPushValue > 0) | |
143 | 143 | else false) | |
144 | 144 | then height | |
145 | 145 | else PrizeHeightValue | |
146 | 146 | if (if ((UserPushvalue > 0)) | |
147 | 147 | then ((height - UserLastStakeBlockValue) > minStakeBlock) | |
148 | 148 | else false) | |
149 | 149 | then if (((height - UserLastPushBlockValue) > minPushBlock)) | |
150 | 150 | then if ((UserStakeValue > 0)) | |
151 | 151 | then if ((UserPushvalue > HighestPushValue)) | |
152 | 152 | then if ((PrizeAmount > 0)) | |
153 | 153 | then if (if (if (if (((PrizeHeightValueNew + NewDelay) >= height)) | |
154 | 154 | then true | |
155 | 155 | else (height >= ((PrizeHeightValueNew + NewDelay) + WaitTime))) | |
156 | 156 | then (HighestPushValue > 0) | |
157 | 157 | else false) | |
158 | 158 | then true | |
159 | 159 | else (HighestPushValue == 0)) | |
160 | 160 | then if ((UserRefsNumValue >= minref)) | |
161 | 161 | 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)]) | |
162 | 162 | else throw((("You have to have " + toString(minref)) + " referrals already staking for a minimum of 10 days, to push")) | |
163 | 163 | else { | |
164 | 164 | let txt = if ((HighestPushValue > 0)) | |
165 | 165 | then "You cannot Push after rewarding Prize and before One day has passed after award" | |
166 | 166 | else "Unexpected error" | |
167 | 167 | throw(txt) | |
168 | 168 | } | |
169 | 169 | else throw("You cannot push before the reward is unlocked, no reward has been detected yet") | |
170 | 170 | else throw("Your push in troikan token, should be Higher than last Highest Push") | |
171 | 171 | else throw("To be able to participate in Pushing for the reward you need to Stake ASIMIs in the dApp") | |
172 | 172 | else throw("You have to wait 10min before you can make a new Push") | |
173 | 173 | else throw(("Your Push dot not comply one of the following conditions: " + "1. Positive Value for Push in Troikan Toke | |
174 | 174 | 2. Must Staked ASIMI Token for a minimum of week ")) | |
175 | 175 | } | |
176 | 176 | 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")) | |
177 | 177 | 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 !") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(i) | |
183 | 183 | func Stake () = { | |
184 | - | let StakedToken = base58' | |
184 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
185 | 185 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
186 | 186 | let pmt = extract(i.payment) | |
187 | 187 | if (if ((pmt.amount > 0)) | |
188 | 188 | then (pmt.assetId == StakedToken) | |
189 | 189 | else false) | |
190 | 190 | then { | |
191 | 191 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
192 | 192 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
193 | 193 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
194 | 194 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
195 | 195 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
196 | 196 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
197 | 197 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
198 | 198 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
199 | 199 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
200 | 200 | case a: Int => | |
201 | 201 | a | |
202 | 202 | case _ => | |
203 | 203 | 0 | |
204 | 204 | } | |
205 | 205 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
206 | 206 | let MaxDepositBlock = match getInteger(this, "MaxDepositBlock") { | |
207 | 207 | case a: Int => | |
208 | 208 | a | |
209 | 209 | case _ => | |
210 | 210 | 0 | |
211 | 211 | } | |
212 | 212 | let MaxDeposit = match getInteger(this, "MaxDeposit") { | |
213 | 213 | case a: Int => | |
214 | 214 | a | |
215 | 215 | case _ => | |
216 | 216 | 0 | |
217 | 217 | } | |
218 | 218 | let MaxDepositerValue = if ((pmt.amount > MaxDeposit)) | |
219 | 219 | then toBase58String(i.caller.bytes) | |
220 | 220 | else MaxDepositer | |
221 | 221 | let MaxDepositValue = if ((pmt.amount > MaxDeposit)) | |
222 | 222 | then pmt.amount | |
223 | 223 | else MaxDeposit | |
224 | 224 | let MaxDepositBlockValue = if ((pmt.amount > MaxDeposit)) | |
225 | 225 | then height | |
226 | 226 | else MaxDepositBlock | |
227 | 227 | let UserPushValue = match getInteger(this, UserPush) { | |
228 | 228 | case a: Int => | |
229 | 229 | a | |
230 | 230 | case _ => | |
231 | 231 | 0 | |
232 | 232 | } | |
233 | 233 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
234 | 234 | case a: Int => | |
235 | 235 | a | |
236 | 236 | case _ => | |
237 | 237 | 0 | |
238 | 238 | } | |
239 | 239 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
240 | 240 | then height | |
241 | 241 | else UserLastStakeBlockValue | |
242 | 242 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
243 | 243 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
244 | 244 | case a: Int => | |
245 | 245 | a | |
246 | 246 | case _ => | |
247 | 247 | 0 | |
248 | 248 | } | |
249 | 249 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
250 | 250 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
251 | 251 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
252 | 252 | case a: Int => | |
253 | 253 | a | |
254 | 254 | case _ => | |
255 | 255 | 0 | |
256 | 256 | } | |
257 | 257 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
258 | 258 | let PrizeAmount = match getInteger(this, "FundBox") { | |
259 | 259 | case a: Int => | |
260 | 260 | a | |
261 | 261 | case _ => | |
262 | 262 | 0 | |
263 | 263 | } | |
264 | 264 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
265 | 265 | case a: Int => | |
266 | 266 | a | |
267 | 267 | case _ => | |
268 | 268 | 0 | |
269 | 269 | } | |
270 | 270 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
271 | 271 | case a: Int => | |
272 | 272 | a | |
273 | 273 | case _ => | |
274 | 274 | 0 | |
275 | 275 | } | |
276 | 276 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
277 | 277 | then (PrizeAmount == 0) | |
278 | 278 | else false) | |
279 | 279 | then 0 | |
280 | 280 | else if (if ((HeightTransactFundBox == 0)) | |
281 | 281 | then (PrizeAmount != 0) | |
282 | 282 | else false) | |
283 | 283 | then height | |
284 | 284 | else if (if ((HeightTransactFundBox != 0)) | |
285 | 285 | then (PrizeAmount != 0) | |
286 | 286 | else false) | |
287 | 287 | then HeightTransactFundBox | |
288 | 288 | else 0 | |
289 | 289 | if ((100000000 > GovernTokenSmartContractBalance)) | |
290 | 290 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
291 | 291 | else { | |
292 | 292 | let Reward = if ((StakeBalance == 0)) | |
293 | 293 | then 10000 | |
294 | 294 | else if ((NewUserStakeTransactions > 10)) | |
295 | 295 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
296 | 296 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
297 | 297 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
298 | 298 | then ((100 * Reward) / currentAmountGovernToken) | |
299 | 299 | else 0 | |
300 | 300 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
301 | 301 | 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), DataEntry("MaxDepositer", MaxDepositerValue), DataEntry("MaxDeposit", MaxDepositValue), DataEntry("MaxDepositBlock", MaxDepositBlockValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
302 | 302 | } | |
303 | 303 | } | |
304 | 304 | else throw("Can deposit only StakeToken") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func WithdrawStakedFunds (amount) = { | |
311 | - | let StakedToken = base58' | |
311 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
312 | 312 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
313 | 313 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
314 | 314 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
315 | 315 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
316 | 316 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
317 | 317 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
318 | 318 | case a: Int => | |
319 | 319 | a | |
320 | 320 | case _ => | |
321 | 321 | 0 | |
322 | 322 | } | |
323 | 323 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
324 | 324 | case a: Int => | |
325 | 325 | a | |
326 | 326 | case _ => | |
327 | 327 | 0 | |
328 | 328 | } | |
329 | 329 | let PrizeAmount = match getInteger(this, "FundBox") { | |
330 | 330 | case a: Int => | |
331 | 331 | a | |
332 | 332 | case _ => | |
333 | 333 | 0 | |
334 | 334 | } | |
335 | 335 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
336 | 336 | case a: Int => | |
337 | 337 | a | |
338 | 338 | case _ => | |
339 | 339 | 0 | |
340 | 340 | } | |
341 | 341 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
342 | 342 | then (PrizeAmount == 0) | |
343 | 343 | else false) | |
344 | 344 | then 0 | |
345 | 345 | else if (if ((HeightTransactFundBox == 0)) | |
346 | 346 | then (PrizeAmount != 0) | |
347 | 347 | else false) | |
348 | 348 | then height | |
349 | 349 | else if (if ((HeightTransactFundBox != 0)) | |
350 | 350 | then (PrizeAmount != 0) | |
351 | 351 | else false) | |
352 | 352 | then HeightTransactFundBox | |
353 | 353 | else 0 | |
354 | 354 | let currentKey = toBase58String(i.caller.bytes) | |
355 | 355 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
356 | 356 | case a: Int => | |
357 | 357 | a | |
358 | 358 | case _ => | |
359 | 359 | 0 | |
360 | 360 | } | |
361 | 361 | let newAmount = (currentAmount - amount) | |
362 | 362 | let StakeBalanceAmount = (StakeBalance - amount) | |
363 | 363 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
364 | 364 | then 0 | |
365 | 365 | else UserLastStakeBlockValue | |
366 | 366 | if ((0 > amount)) | |
367 | 367 | then throw("Can't withdraw negative amount") | |
368 | 368 | else if ((0 > newAmount)) | |
369 | 369 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
370 | 370 | else if ((100000000 > assetBalance(this, GovernToken))) | |
371 | 371 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
372 | 372 | 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)])) | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func WithdrawBigStakeReward () = { | |
379 | - | let StakedToken = base58' | |
379 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
380 | 380 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
381 | 381 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "LastBigStakerRewardBlock") | |
382 | 382 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
383 | 383 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
384 | 384 | let LimiWithdrawReward = 10 | |
385 | 385 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
386 | 386 | case a: Int => | |
387 | 387 | a | |
388 | 388 | case _ => | |
389 | 389 | 0 | |
390 | 390 | } | |
391 | 391 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
392 | 392 | case a: Int => | |
393 | 393 | a | |
394 | 394 | case _ => | |
395 | 395 | 0 | |
396 | 396 | } | |
397 | 397 | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
398 | 398 | case a: Int => | |
399 | 399 | a | |
400 | 400 | case _ => | |
401 | 401 | 0 | |
402 | 402 | } | |
403 | 403 | let PrizeAmount = match getInteger(this, "FundBox") { | |
404 | 404 | case a: Int => | |
405 | 405 | a | |
406 | 406 | case _ => | |
407 | 407 | 0 | |
408 | 408 | } | |
409 | 409 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
410 | 410 | case a: Int => | |
411 | 411 | a | |
412 | 412 | case _ => | |
413 | 413 | 0 | |
414 | 414 | } | |
415 | 415 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
416 | 416 | then (PrizeAmount == 0) | |
417 | 417 | else false) | |
418 | 418 | then 0 | |
419 | 419 | else if (if ((HeightTransactFundBox == 0)) | |
420 | 420 | then (PrizeAmount != 0) | |
421 | 421 | else false) | |
422 | 422 | then height | |
423 | 423 | else if (if ((HeightTransactFundBox != 0)) | |
424 | 424 | then (PrizeAmount != 0) | |
425 | 425 | else false) | |
426 | 426 | then HeightTransactFundBox | |
427 | 427 | else 0 | |
428 | 428 | let currentKey = toBase58String(i.caller.bytes) | |
429 | 429 | let amount = match getInteger(this, BigStakerReward) { | |
430 | 430 | case a: Int => | |
431 | 431 | a | |
432 | 432 | case _ => | |
433 | 433 | 0 | |
434 | 434 | } | |
435 | 435 | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
436 | 436 | let BigStakerRewardTax = if (((height - LastBigStakerRewardBlockValue) >= LimiWithdrawReward)) | |
437 | 437 | then (1 * 100000000) | |
438 | 438 | else (((UserGovernTokenAmount / 100) * LimiWithdrawReward) / (height - LastBigStakerRewardBlockValue)) | |
439 | 439 | if ((0 > amount)) | |
440 | 440 | then throw("Can't withdraw negative amount ") | |
441 | 441 | else if (((1000 * 100000000) > UserGovernTokenAmount)) | |
442 | 442 | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
443 | 443 | else if ((BigStakerRewardTax > (1 * 100000000))) | |
444 | 444 | then throw(("Be careful it will cost you: " + toString((BigStakerRewardTax / 100000000)))) | |
445 | 445 | else ScriptResult(WriteSet([DataEntry(BigStakerReward, 0), DataEntry("BigStakerRewardTotal", StakeBalanceAmount), DataEntry(UserGovernTokenKey, (UserGovernTokenAmount - BigStakerRewardTax)), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(LastBigStakerRewardBlock, height)]), TransferSet([ScriptTransfer(i.caller, amount, StakedToken)])) | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | ||
450 | 450 | @Callable(i) | |
451 | 451 | func HarvestGovernToiken (amount) = { | |
452 | - | let StakedToken = base58' | |
452 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
453 | 453 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
454 | 454 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
455 | 455 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
456 | 456 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
457 | 457 | case a: Int => | |
458 | 458 | a | |
459 | 459 | case _ => | |
460 | 460 | 0 | |
461 | 461 | } | |
462 | 462 | let PrizeAmount = match getInteger(this, "FundBox") { | |
463 | 463 | case a: Int => | |
464 | 464 | a | |
465 | 465 | case _ => | |
466 | 466 | 0 | |
467 | 467 | } | |
468 | 468 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
469 | 469 | case a: Int => | |
470 | 470 | a | |
471 | 471 | case _ => | |
472 | 472 | 0 | |
473 | 473 | } | |
474 | 474 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
475 | 475 | then (PrizeAmount == 0) | |
476 | 476 | else false) | |
477 | 477 | then 0 | |
478 | 478 | else if (if ((HeightTransactFundBox == 0)) | |
479 | 479 | then (PrizeAmount != 0) | |
480 | 480 | else false) | |
481 | 481 | then height | |
482 | 482 | else if (if ((HeightTransactFundBox != 0)) | |
483 | 483 | then (PrizeAmount != 0) | |
484 | 484 | else false) | |
485 | 485 | then HeightTransactFundBox | |
486 | 486 | else 0 | |
487 | 487 | let currentKey = toBase58String(i.caller.bytes) | |
488 | 488 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
489 | 489 | case a: Int => | |
490 | 490 | a | |
491 | 491 | case _ => | |
492 | 492 | 0 | |
493 | 493 | } | |
494 | 494 | let newAmount = (currentAmount - amount) | |
495 | 495 | if ((0 > amount)) | |
496 | 496 | then throw("Can't withdraw negative amount") | |
497 | 497 | else if ((0 > newAmount)) | |
498 | 498 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
499 | 499 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | ||
504 | 504 | @Callable(i) | |
505 | 505 | func delayprize () = { | |
506 | - | let StakedToken = base58' | |
506 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
507 | 507 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
508 | 508 | let DelayDays = (1 * 1440) | |
509 | 509 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
510 | 510 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
511 | 511 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
512 | 512 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
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 ActualDelayCost = match getInteger(this, "DelayCost") { | |
550 | 550 | case a: Int => | |
551 | 551 | a | |
552 | 552 | case _ => | |
553 | 553 | 10 | |
554 | 554 | } | |
555 | 555 | let pmt = extract(i.payment) | |
556 | 556 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
557 | 557 | case a: Int => | |
558 | 558 | a | |
559 | 559 | case _ => | |
560 | 560 | 0 | |
561 | 561 | } | |
562 | 562 | if (if (isDefined(pmt.assetId)) | |
563 | 563 | then (extract(pmt.assetId) == GovernToken) | |
564 | 564 | else false) | |
565 | 565 | then if ((PrizeAmount > 0)) | |
566 | 566 | then { | |
567 | 567 | let UserGovernTokenAmount = pmt.amount | |
568 | 568 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
569 | 569 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
570 | 570 | then 1000000000 | |
571 | 571 | else (2 * ActualDelayCost) | |
572 | 572 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
573 | 573 | then { | |
574 | 574 | let NewDelay = (ActualDelay + DelayDays) | |
575 | 575 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry("DevBox", DevBoxAmount)]) | |
576 | 576 | } | |
577 | 577 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
578 | 578 | } | |
579 | 579 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
580 | 580 | else throw("Can Use only Troika Token to Delay Reward") | |
581 | 581 | } | |
582 | 582 | ||
583 | 583 | ||
584 | 584 | ||
585 | 585 | @Callable(i) | |
586 | 586 | func ClaimPrize () = { | |
587 | - | let StakedToken = base58' | |
587 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
588 | 588 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
589 | 589 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
590 | 590 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
591 | 591 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
592 | 592 | let minStakeBlock = 7 | |
593 | 593 | let minref = 1 | |
594 | 594 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
595 | 595 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
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 UserPushValue = match getInteger(this, UserPush) { | |
609 | 609 | case a: Int => | |
610 | 610 | a | |
611 | 611 | case _ => | |
612 | 612 | 0 | |
613 | 613 | } | |
614 | 614 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
615 | 615 | case a: Int => | |
616 | 616 | a | |
617 | 617 | case _ => | |
618 | 618 | 0 | |
619 | 619 | } | |
620 | 620 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
621 | 621 | case a: Int => | |
622 | 622 | a | |
623 | 623 | case _ => | |
624 | 624 | 0 | |
625 | 625 | } | |
626 | 626 | let ActualDelay = match getInteger(this, "Delay") { | |
627 | 627 | case a: Int => | |
628 | 628 | a | |
629 | 629 | case _ => | |
630 | 630 | 0 | |
631 | 631 | } | |
632 | 632 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
633 | 633 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
634 | 634 | case a: Int => | |
635 | 635 | a | |
636 | 636 | case _ => | |
637 | 637 | 0 | |
638 | 638 | } | |
639 | 639 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
640 | 640 | case a: Int => | |
641 | 641 | a | |
642 | 642 | case _ => | |
643 | 643 | 0 | |
644 | 644 | } | |
645 | 645 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
646 | 646 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
647 | 647 | case a: Int => | |
648 | 648 | a | |
649 | 649 | case _ => | |
650 | 650 | 0 | |
651 | 651 | } | |
652 | 652 | if (if ((PrizeAmount == 0)) | |
653 | 653 | then true | |
654 | 654 | else (10000000000 > ContractGovTokenBalance)) | |
655 | 655 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
656 | 656 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
657 | 657 | then throw("You are not the winner hence cannot claim the reward ") | |
658 | 658 | else if (if ((100000000 > UserStakedTokenAmount)) | |
659 | 659 | then (minStakeBlock > UserLastStakeBlockValue) | |
660 | 660 | else false) | |
661 | 661 | then throw("You have to Stake ASIMI Token to claim reward ") | |
662 | 662 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
663 | 663 | then (UserPushValue >= HighestPushValue) | |
664 | 664 | else false) | |
665 | 665 | then if ((UserRefsNumValue >= minref)) | |
666 | 666 | 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)])) | |
667 | 667 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
668 | 668 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
669 | 669 | } | |
670 | 670 | ||
671 | 671 | ||
672 | 672 | ||
673 | 673 | @Callable(i) | |
674 | 674 | func Addmentor (Mentor) = { | |
675 | - | let StakedToken = base58' | |
675 | + | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
676 | 676 | let GovernToken = base58'DHZVHe6JzD61zTwH4ZnHnmo3w7oKGABXwgBt4S8KkzUP' | |
677 | 677 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
678 | 678 | if ((Mentor != "")) | |
679 | 679 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
680 | 680 | else throw("Mentor's Address cannot be empty") | |
681 | 681 | } | |
682 | 682 | ||
683 | 683 |
github/deemru/w8io/026f985 84.84 ms ◑