tx · AE59YmAfgMy97txtAuUE8jgmMUED3uBDv2EKFzRqGBr8 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK: -0.01000000 Waves 2021.08.11 20:50 [1654019] smart account 3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK > SELF 0.00000000 Waves
{ "type": 13, "id": "AE59YmAfgMy97txtAuUE8jgmMUED3uBDv2EKFzRqGBr8", "fee": 1000000, "feeAssetId": null, "timestamp": 1628704236582, "version": 2, "chainId": 84, "sender": "3N9evuqxGecMq9hBmpdJu2VkMzdR5VNVrvK", "senderPublicKey": "AHY8zupoYc6HPJ5fh1gQiGE9bNZSeifFbcQQ89okxVug", "proofs": [ "2BPhBcddsYafdbnrqWuPKxscvNUyU7CH88qpJcnwQSP6465DBfSpX1uiQvD92BrJSmupeTMZkzsmjtGXfJCPZ3nK" ], "script": "base64:AAIDAAAAAAAAB1kIARIAEgASABIDCgEBEgASAwoBARIAEgASAwoBCBoHCgJhMRIBaRoQCgJhMhIKY3VycmVudEtleRoRCgJhMxILR292ZXJuVG9rZW4aEgoCYTQSDERldkJveEFtb3VudBoNCgJhNRIHJG1hdGNoMBoHCgJhNhIBYRoRCgJhNxILU3Rha2VkVG9rZW4aEgoCYTgSDG1pblB1c2hCbG9jaxoTCgJhORINbWluU3Rha2VCbG9jaxoUCgJiMRIORGVsYXlBZnRlclB1c2gaDgoCYjISCFdhaXRUaW1lGgwKAmIzEgZtaW5yZWYaHQoCYjQSF3VzZXJXYWxsZXRHb3Zlcm5CYWxhbmNlGgkKAmI1EgNwbXQaDgoCYjYSCFVzZXJQdXNoGhoKAmI3EhRVc2VyTGFzdFB1c2hPbGRWYWx1ZRoRCgJiOBILVXNlclJlZnNOdW0aFgoCYjkSEFVzZXJSZWZzTnVtVmFsdWUaFgoCYzESEEhpZ2hlc3RQdXNoVmFsdWUaFwoCYzISEVVzZXJMYXN0UHVzaEJsb2NrGhgKAmMzEhJVc2VyTGFzdFN0YWtlQmxvY2saDwoCYzQ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AAAApMYXN0V2lubmVyBQAAAAJpNQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAJTGFzdFByaXplBQAAAAJjNwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMQAAAAZjYWxsZXIFAAAAAmM3BQAAAAJhNwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAACYTEAAAAGY2FsbGVyAAAAAAA7msoABQAAAAJhMwUAAAADbmlsCQAAAgAAAAECAAAAWVlvdSBoYXZlIHRvIGhhdmUgMTAgcmVmZXJyYWxzIGFscmVhZHkgc3Rha2luZyBmb3IgYSBtaW5pbXVtIG9mIDEwIGRheXMgdG8gQ2xhaW0gdGhlIHByaXplCQAAAgAAAAECAAAAYVlvdSBoYXZlIHRvIGJlIHRoZSB1c2VyIHdpdGggdGhlIGhpZ2hlc3QgUHVzaCBhbmQgd2FpdCB0aWxsIGNvdW50b3duIGlzIGZpbmlzaGVkLCB0byBjbGFpbSBSZXdhcmQAAAACYTEBAAAACUFkZG1lbnRvcgAAAAEAAAACaTcEAAAAAmE3AQAAACD5rl2FqqDB81weFWSW9S5FyKYquYAb4MpXXcAlqscPUAQAAAACYTMBAAAAIAFshcLXQMYuV8Rzs8ULZ07fOlzF6BxYes7P/1GRlpktBAAAAAJpOAkAASwAAAACCQACWAAAAAEICAUAAAACYTEAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAdfTWVudG9yAwkBAAAAAiE9AAAAAgUAAAACaTcCAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAACaTgFAAAAAmk3BQAAAANuaWwJAAACAAAAAQIAAAAgTWVudG9yJ3MgQWRkcmVzcyBjYW5ub3QgYmUgZW1wdHkAAAAAGjh1xA==", "height": 1654019, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D61rguinTDAiuc4TU9Sj5dkMcYtcwhT77cxWFDiCK2ge Next: 4gzSr8ddgHoGzBn8NGbSjJDsSN5uSYLfKDU4e4SGx9V2 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func DevWithdraw () = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
10 | - | if ((currentKey == " | |
10 | + | if ((currentKey == "3Mu3nwxzGzeQBGxCKLyJcSDKmRiCea9FQSJ")) | |
11 | 11 | then { | |
12 | 12 | let DevBoxAmount = match getInteger(this, "DevBox") { | |
13 | 13 | case a: Int => |
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'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
10 | - | if ((currentKey == " | |
10 | + | if ((currentKey == "3Mu3nwxzGzeQBGxCKLyJcSDKmRiCea9FQSJ")) | |
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), DataEntry("Delay", 0), DataEntry("PrizeHeight", height)]), 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'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
30 | 30 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
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 | 184 | let WaitTime = (1440 * 1) | |
185 | 185 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
186 | 186 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
187 | 187 | let pmt = extract(i.payment) | |
188 | 188 | if (if ((pmt.amount > 0)) | |
189 | 189 | then (pmt.assetId == StakedToken) | |
190 | 190 | else false) | |
191 | 191 | then { | |
192 | 192 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
193 | 193 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
194 | 194 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
195 | 195 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
196 | 196 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
197 | 197 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
198 | 198 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
199 | 199 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
200 | 200 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
201 | 201 | case a: Int => | |
202 | 202 | a | |
203 | 203 | case _ => | |
204 | 204 | 0 | |
205 | 205 | } | |
206 | 206 | let MaxDepositer = getStringValue(this, "MaxDepositer") | |
207 | 207 | let MaxDepositBlock = match getInteger(this, "MaxDepositBlock") { | |
208 | 208 | case a: Int => | |
209 | 209 | a | |
210 | 210 | case _ => | |
211 | 211 | 0 | |
212 | 212 | } | |
213 | 213 | let MaxDeposit = match getInteger(this, "MaxDeposit") { | |
214 | 214 | case a: Int => | |
215 | 215 | a | |
216 | 216 | case _ => | |
217 | 217 | 0 | |
218 | 218 | } | |
219 | 219 | let MaxDepositerValue = if ((pmt.amount > MaxDeposit)) | |
220 | 220 | then toBase58String(i.caller.bytes) | |
221 | 221 | else MaxDepositer | |
222 | 222 | let MaxDepositValue = if ((pmt.amount > MaxDeposit)) | |
223 | 223 | then pmt.amount | |
224 | 224 | else MaxDeposit | |
225 | 225 | let MaxDepositBlockValue = if ((pmt.amount > MaxDeposit)) | |
226 | 226 | then height | |
227 | 227 | else MaxDepositBlock | |
228 | 228 | let UserPushValue = match getInteger(this, UserPush) { | |
229 | 229 | case a: Int => | |
230 | 230 | a | |
231 | 231 | case _ => | |
232 | 232 | 0 | |
233 | 233 | } | |
234 | 234 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
235 | 235 | case a: Int => | |
236 | 236 | a | |
237 | 237 | case _ => | |
238 | 238 | 0 | |
239 | 239 | } | |
240 | 240 | let UserLastStakeBlockNewValue = if ((UserLastStakeBlockValue == 0)) | |
241 | 241 | then height | |
242 | 242 | else UserLastStakeBlockValue | |
243 | 243 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
244 | 244 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
245 | 245 | case a: Int => | |
246 | 246 | a | |
247 | 247 | case _ => | |
248 | 248 | 0 | |
249 | 249 | } | |
250 | 250 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
251 | 251 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
252 | 252 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
253 | 253 | case a: Int => | |
254 | 254 | a | |
255 | 255 | case _ => | |
256 | 256 | 0 | |
257 | 257 | } | |
258 | 258 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
259 | 259 | let PrizeAmount = match getInteger(this, "FundBox") { | |
260 | 260 | case a: Int => | |
261 | 261 | a | |
262 | 262 | case _ => | |
263 | 263 | 0 | |
264 | 264 | } | |
265 | 265 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
266 | 266 | case a: Int => | |
267 | 267 | a | |
268 | 268 | case _ => | |
269 | 269 | 0 | |
270 | 270 | } | |
271 | 271 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
272 | 272 | case a: Int => | |
273 | 273 | a | |
274 | 274 | case _ => | |
275 | 275 | 0 | |
276 | 276 | } | |
277 | 277 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
278 | 278 | then (PrizeAmount == 0) | |
279 | 279 | else false) | |
280 | 280 | then 0 | |
281 | 281 | else if (if ((HeightTransactFundBox == 0)) | |
282 | 282 | then (PrizeAmount != 0) | |
283 | 283 | else false) | |
284 | 284 | then height | |
285 | 285 | else if (if ((HeightTransactFundBox != 0)) | |
286 | 286 | then (PrizeAmount != 0) | |
287 | 287 | else false) | |
288 | 288 | then HeightTransactFundBox | |
289 | 289 | else 0 | |
290 | 290 | let ActualDelay = match getInteger(this, "Delay") { | |
291 | 291 | case a: Int => | |
292 | 292 | a | |
293 | 293 | case _ => | |
294 | 294 | 0 | |
295 | 295 | } | |
296 | 296 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
297 | 297 | case a: Int => | |
298 | 298 | a | |
299 | 299 | case _ => | |
300 | 300 | 0 | |
301 | 301 | } | |
302 | 302 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
303 | 303 | then (HighestPushValue > 0) | |
304 | 304 | else false) | |
305 | 305 | then height | |
306 | 306 | else PrizeHeightValue | |
307 | 307 | if ((100000000 > GovernTokenSmartContractBalance)) | |
308 | 308 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
309 | 309 | else { | |
310 | 310 | let Reward = if ((StakeBalance == 0)) | |
311 | 311 | then 10000 | |
312 | 312 | else if ((NewUserStakeTransactions > 10)) | |
313 | 313 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
314 | 314 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
315 | 315 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
316 | 316 | then ((100 * Reward) / currentAmountGovernToken) | |
317 | 317 | else 0 | |
318 | 318 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
319 | 319 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry(UserAPY, UserAPYValue), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue), DataEntry(UserPush, UserPushValue), DataEntry("MaxDepositer", MaxDepositerValue), DataEntry("MaxDeposit", MaxDepositValue), DataEntry("MaxDepositBlock", MaxDepositBlockValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
320 | 320 | } | |
321 | 321 | } | |
322 | 322 | else throw("Can deposit only StakeToken") | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(i) | |
328 | 328 | func WithdrawStakedFunds (amount) = { | |
329 | 329 | let WaitTime = (1440 * 1) | |
330 | 330 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
331 | 331 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
332 | 332 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
333 | 333 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
334 | 334 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
335 | 335 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
336 | 336 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
337 | 337 | case a: Int => | |
338 | 338 | a | |
339 | 339 | case _ => | |
340 | 340 | 0 | |
341 | 341 | } | |
342 | 342 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
343 | 343 | case a: Int => | |
344 | 344 | a | |
345 | 345 | case _ => | |
346 | 346 | 0 | |
347 | 347 | } | |
348 | 348 | let PrizeAmount = match getInteger(this, "FundBox") { | |
349 | 349 | case a: Int => | |
350 | 350 | a | |
351 | 351 | case _ => | |
352 | 352 | 0 | |
353 | 353 | } | |
354 | 354 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
355 | 355 | case a: Int => | |
356 | 356 | a | |
357 | 357 | case _ => | |
358 | 358 | 0 | |
359 | 359 | } | |
360 | 360 | let ActualDelay = match getInteger(this, "Delay") { | |
361 | 361 | case a: Int => | |
362 | 362 | a | |
363 | 363 | case _ => | |
364 | 364 | 0 | |
365 | 365 | } | |
366 | 366 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
367 | 367 | case a: Int => | |
368 | 368 | a | |
369 | 369 | case _ => | |
370 | 370 | 0 | |
371 | 371 | } | |
372 | 372 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
373 | 373 | then (PrizeAmount == 0) | |
374 | 374 | else false) | |
375 | 375 | then 0 | |
376 | 376 | else if (if ((HeightTransactFundBox == 0)) | |
377 | 377 | then (PrizeAmount != 0) | |
378 | 378 | else false) | |
379 | 379 | then height | |
380 | 380 | else if (if ((HeightTransactFundBox != 0)) | |
381 | 381 | then (PrizeAmount != 0) | |
382 | 382 | else false) | |
383 | 383 | then HeightTransactFundBox | |
384 | 384 | else 0 | |
385 | 385 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
386 | 386 | then (HighestPushValue > 0) | |
387 | 387 | else false) | |
388 | 388 | then height | |
389 | 389 | else PrizeHeightValue | |
390 | 390 | let currentKey = toBase58String(i.caller.bytes) | |
391 | 391 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
392 | 392 | case a: Int => | |
393 | 393 | a | |
394 | 394 | case _ => | |
395 | 395 | 0 | |
396 | 396 | } | |
397 | 397 | let newAmount = (currentAmount - amount) | |
398 | 398 | let StakeBalanceAmount = (StakeBalance - amount) | |
399 | 399 | let UserLastStakeBlockNewValue = if ((StakeBalanceAmount == 0)) | |
400 | 400 | then 0 | |
401 | 401 | else UserLastStakeBlockValue | |
402 | 402 | if ((0 > amount)) | |
403 | 403 | then throw("Can't withdraw negative amount") | |
404 | 404 | else if ((0 > newAmount)) | |
405 | 405 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
406 | 406 | else if ((100000000 > assetBalance(this, GovernToken))) | |
407 | 407 | then throw(("Not enough Troika In Contract: " + toString((assetBalance(this, GovernToken) / 100000000)))) | |
408 | 408 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry(UserLastStakeBlock, UserLastStakeBlockNewValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | ||
413 | 413 | @Callable(i) | |
414 | 414 | func WithdrawBigStakeReward () = { | |
415 | 415 | let WaitTime = (1440 * 1) | |
416 | 416 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
417 | 417 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
418 | 418 | let LastBigStakerRewardBlock = (toBase58String(i.caller.bytes) + "LastBigStakerRewardBlock") | |
419 | 419 | let BigStakerReward = (toBase58String(i.caller.bytes) + "_BigStaker") | |
420 | 420 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
421 | 421 | let LimiWithdrawReward = 10 | |
422 | 422 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
423 | 423 | case a: Int => | |
424 | 424 | a | |
425 | 425 | case _ => | |
426 | 426 | 0 | |
427 | 427 | } | |
428 | 428 | let LastBigStakerRewardBlockValue = match getInteger(this, LastBigStakerRewardBlock) { | |
429 | 429 | case a: Int => | |
430 | 430 | a | |
431 | 431 | case _ => | |
432 | 432 | 0 | |
433 | 433 | } | |
434 | 434 | let BigStakerRewardTotalValue = match getInteger(this, "BigStakerRewardTotal") { | |
435 | 435 | case a: Int => | |
436 | 436 | a | |
437 | 437 | case _ => | |
438 | 438 | 0 | |
439 | 439 | } | |
440 | 440 | let PrizeAmount = match getInteger(this, "FundBox") { | |
441 | 441 | case a: Int => | |
442 | 442 | a | |
443 | 443 | case _ => | |
444 | 444 | 0 | |
445 | 445 | } | |
446 | 446 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
447 | 447 | case a: Int => | |
448 | 448 | a | |
449 | 449 | case _ => | |
450 | 450 | 0 | |
451 | 451 | } | |
452 | 452 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
453 | 453 | then (PrizeAmount == 0) | |
454 | 454 | else false) | |
455 | 455 | then 0 | |
456 | 456 | else if (if ((HeightTransactFundBox == 0)) | |
457 | 457 | then (PrizeAmount != 0) | |
458 | 458 | else false) | |
459 | 459 | then height | |
460 | 460 | else if (if ((HeightTransactFundBox != 0)) | |
461 | 461 | then (PrizeAmount != 0) | |
462 | 462 | else false) | |
463 | 463 | then HeightTransactFundBox | |
464 | 464 | else 0 | |
465 | 465 | let ActualDelay = match getInteger(this, "Delay") { | |
466 | 466 | case a: Int => | |
467 | 467 | a | |
468 | 468 | case _ => | |
469 | 469 | 0 | |
470 | 470 | } | |
471 | 471 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
472 | 472 | case a: Int => | |
473 | 473 | a | |
474 | 474 | case _ => | |
475 | 475 | 0 | |
476 | 476 | } | |
477 | 477 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
478 | 478 | then (HighestPushValue > 0) | |
479 | 479 | else false) | |
480 | 480 | then height | |
481 | 481 | else PrizeHeightValue | |
482 | 482 | let currentKey = toBase58String(i.caller.bytes) | |
483 | 483 | let amount = match getInteger(this, BigStakerReward) { | |
484 | 484 | case a: Int => | |
485 | 485 | a | |
486 | 486 | case _ => | |
487 | 487 | 0 | |
488 | 488 | } | |
489 | 489 | let StakeBalanceAmount = (BigStakerRewardTotalValue - amount) | |
490 | 490 | let BigStakerRewardTax = if (((height - LastBigStakerRewardBlockValue) >= LimiWithdrawReward)) | |
491 | 491 | then (1 * 100000000) | |
492 | 492 | else (UserGovernTokenAmount * (1 - (((height - LastBigStakerRewardBlockValue) / LimiWithdrawReward) * 1440))) | |
493 | 493 | if ((0 > amount)) | |
494 | 494 | then throw("Can't withdraw negative amount ") | |
495 | 495 | else if (((1000 * 100000000) > UserGovernTokenAmount)) | |
496 | 496 | then throw(("Not enough Earned Troikan Tokens to do transaction, you need at least 1000 Troikans, you have: " + toString((UserGovernTokenAmount / 100000000)))) | |
497 | 497 | 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)])) | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | 503 | func HarvestGovernToiken (amount) = { | |
504 | 504 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
505 | 505 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
506 | 506 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
507 | 507 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
508 | 508 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
509 | 509 | case a: Int => | |
510 | 510 | a | |
511 | 511 | case _ => | |
512 | 512 | 0 | |
513 | 513 | } | |
514 | 514 | let PrizeAmount = match getInteger(this, "FundBox") { | |
515 | 515 | case a: Int => | |
516 | 516 | a | |
517 | 517 | case _ => | |
518 | 518 | 0 | |
519 | 519 | } | |
520 | 520 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
521 | 521 | case a: Int => | |
522 | 522 | a | |
523 | 523 | case _ => | |
524 | 524 | 0 | |
525 | 525 | } | |
526 | 526 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
527 | 527 | then (PrizeAmount == 0) | |
528 | 528 | else false) | |
529 | 529 | then 0 | |
530 | 530 | else if (if ((HeightTransactFundBox == 0)) | |
531 | 531 | then (PrizeAmount != 0) | |
532 | 532 | else false) | |
533 | 533 | then height | |
534 | 534 | else if (if ((HeightTransactFundBox != 0)) | |
535 | 535 | then (PrizeAmount != 0) | |
536 | 536 | else false) | |
537 | 537 | then HeightTransactFundBox | |
538 | 538 | else 0 | |
539 | 539 | let currentKey = toBase58String(i.caller.bytes) | |
540 | 540 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
541 | 541 | case a: Int => | |
542 | 542 | a | |
543 | 543 | case _ => | |
544 | 544 | 0 | |
545 | 545 | } | |
546 | 546 | let newAmount = (currentAmount - amount) | |
547 | 547 | if ((0 > amount)) | |
548 | 548 | then throw("Can't withdraw negative amount") | |
549 | 549 | else if ((0 > newAmount)) | |
550 | 550 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
551 | 551 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | ||
556 | 556 | @Callable(i) | |
557 | 557 | func delayprize () = { | |
558 | 558 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
559 | 559 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
560 | 560 | let DelayDays = (1440 * 1) | |
561 | 561 | let WaitTime = (1440 * 1) | |
562 | 562 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
563 | 563 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
564 | 564 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
565 | 565 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
566 | 566 | case a: Int => | |
567 | 567 | a | |
568 | 568 | case _ => | |
569 | 569 | 0 | |
570 | 570 | } | |
571 | 571 | let PrizeAmount = match getInteger(this, "FundBox") { | |
572 | 572 | case a: Int => | |
573 | 573 | a | |
574 | 574 | case _ => | |
575 | 575 | 0 | |
576 | 576 | } | |
577 | 577 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
578 | 578 | case a: Int => | |
579 | 579 | a | |
580 | 580 | case _ => | |
581 | 581 | 0 | |
582 | 582 | } | |
583 | 583 | let ActualDelay = match getInteger(this, "Delay") { | |
584 | 584 | case a: Int => | |
585 | 585 | a | |
586 | 586 | case _ => | |
587 | 587 | 0 | |
588 | 588 | } | |
589 | 589 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
590 | 590 | then (PrizeAmount == 0) | |
591 | 591 | else false) | |
592 | 592 | then 0 | |
593 | 593 | else if (if ((HeightTransactFundBox == 0)) | |
594 | 594 | then (PrizeAmount != 0) | |
595 | 595 | else false) | |
596 | 596 | then height | |
597 | 597 | else if (if ((HeightTransactFundBox != 0)) | |
598 | 598 | then (PrizeAmount != 0) | |
599 | 599 | else false) | |
600 | 600 | then HeightTransactFundBox | |
601 | 601 | else 0 | |
602 | 602 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
603 | 603 | case a: Int => | |
604 | 604 | a | |
605 | 605 | case _ => | |
606 | 606 | 0 | |
607 | 607 | } | |
608 | 608 | let PrizeHeightValueNew = if (if ((height > ((PrizeHeightValue + ActualDelay) + WaitTime))) | |
609 | 609 | then (HighestPushValue > 0) | |
610 | 610 | else false) | |
611 | 611 | then height | |
612 | 612 | else PrizeHeightValue | |
613 | 613 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
614 | 614 | case a: Int => | |
615 | 615 | a | |
616 | 616 | case _ => | |
617 | 617 | 10 | |
618 | 618 | } | |
619 | 619 | let pmt = extract(i.payment) | |
620 | 620 | let DevBoxBalance = match getInteger(this, "DevBox") { | |
621 | 621 | case a: Int => | |
622 | 622 | a | |
623 | 623 | case _ => | |
624 | 624 | 0 | |
625 | 625 | } | |
626 | 626 | if (if (isDefined(pmt.assetId)) | |
627 | 627 | then (extract(pmt.assetId) == GovernToken) | |
628 | 628 | else false) | |
629 | 629 | then if ((PrizeAmount > 0)) | |
630 | 630 | then { | |
631 | 631 | let UserGovernTokenAmount = pmt.amount | |
632 | 632 | let DevBoxAmount = (DevBoxBalance + ((pmt.amount * 5) / 1000)) | |
633 | 633 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
634 | 634 | then 1000000000 | |
635 | 635 | else (2 * ActualDelayCost) | |
636 | 636 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
637 | 637 | then { | |
638 | 638 | let NewDelay = (ActualDelay + DelayDays) | |
639 | 639 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("PrizeHeight", PrizeHeightValueNew), DataEntry("DevBox", DevBoxAmount)]) | |
640 | 640 | } | |
641 | 641 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
642 | 642 | } | |
643 | 643 | else throw("You cannot delay the reward before reward is received! Please wait until a reward is available") | |
644 | 644 | else throw("Can Use only Troika Token to Delay Reward") | |
645 | 645 | } | |
646 | 646 | ||
647 | 647 | ||
648 | 648 | ||
649 | 649 | @Callable(i) | |
650 | 650 | func ClaimPrize () = { | |
651 | 651 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
652 | 652 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
653 | 653 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
654 | 654 | let UserPush = (toBase58String(i.caller.bytes) + "_Push") | |
655 | 655 | let UserLastStakeBlock = (toBase58String(i.caller.bytes) + "_UserLastStakeBlock") | |
656 | 656 | let minStakeBlock = 7 | |
657 | 657 | let minref = 1 | |
658 | 658 | let ContractGovTokenBalance = assetBalance(this, GovernToken) | |
659 | 659 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
660 | 660 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
661 | 661 | case a: Int => | |
662 | 662 | a | |
663 | 663 | case _ => | |
664 | 664 | 0 | |
665 | 665 | } | |
666 | 666 | let PrizeAmount = match getInteger(this, "FundBox") { | |
667 | 667 | case a: Int => | |
668 | 668 | a | |
669 | 669 | case _ => | |
670 | 670 | 0 | |
671 | 671 | } | |
672 | 672 | let UserPushValue = match getInteger(this, UserPush) { | |
673 | 673 | case a: Int => | |
674 | 674 | a | |
675 | 675 | case _ => | |
676 | 676 | 0 | |
677 | 677 | } | |
678 | 678 | let UserLastStakeBlockValue = match getInteger(this, UserLastStakeBlock) { | |
679 | 679 | case a: Int => | |
680 | 680 | a | |
681 | 681 | case _ => | |
682 | 682 | 0 | |
683 | 683 | } | |
684 | 684 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
685 | 685 | case a: Int => | |
686 | 686 | a | |
687 | 687 | case _ => | |
688 | 688 | 0 | |
689 | 689 | } | |
690 | 690 | let ActualDelay = match getInteger(this, "Delay") { | |
691 | 691 | case a: Int => | |
692 | 692 | a | |
693 | 693 | case _ => | |
694 | 694 | 0 | |
695 | 695 | } | |
696 | 696 | let PrizeWinner = getStringValue(this, "HighestPushAddress") | |
697 | 697 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
698 | 698 | case a: Int => | |
699 | 699 | a | |
700 | 700 | case _ => | |
701 | 701 | 0 | |
702 | 702 | } | |
703 | 703 | let HighestPushValue = match getInteger(this, "HighestPush") { | |
704 | 704 | case a: Int => | |
705 | 705 | a | |
706 | 706 | case _ => | |
707 | 707 | 0 | |
708 | 708 | } | |
709 | 709 | let UserRefsNum = (toBase58String(i.caller.bytes) + "_refs") | |
710 | 710 | let UserRefsNumValue = match getInteger(this, UserRefsNum) { | |
711 | 711 | case a: Int => | |
712 | 712 | a | |
713 | 713 | case _ => | |
714 | 714 | 0 | |
715 | 715 | } | |
716 | 716 | if (if ((PrizeAmount == 0)) | |
717 | 717 | then true | |
718 | 718 | else (10000000000 > ContractGovTokenBalance)) | |
719 | 719 | then throw("No prize to Claim or Not enough Govern Token en Contract (Min 100 Troika)") | |
720 | 720 | else if ((toBase58String(i.caller.bytes) != PrizeWinner)) | |
721 | 721 | then throw("You are not the winner hence cannot claim the reward ") | |
722 | 722 | else if (if ((100000000 > UserStakedTokenAmount)) | |
723 | 723 | then (minStakeBlock > UserLastStakeBlockValue) | |
724 | 724 | else false) | |
725 | 725 | then throw("You have to Stake ASIMI Token to claim reward ") | |
726 | 726 | else if (if ((height > (PrizeHeight + ActualDelay))) | |
727 | 727 | then (UserPushValue >= HighestPushValue) | |
728 | 728 | else false) | |
729 | 729 | then if ((UserRefsNumValue >= minref)) | |
730 | 730 | 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)])) | |
731 | 731 | else throw("You have to have 10 referrals already staking for a minimum of 10 days to Claim the prize") | |
732 | 732 | else throw("You have to be the user with the highest Push and wait till countown is finished, to claim Reward") | |
733 | 733 | } | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(i) | |
738 | 738 | func Addmentor (Mentor) = { | |
739 | 739 | let StakedToken = base58'Hoej8L1ezqQY4Miex4Z4J7uJ33LCdcubV3DsubGHEqWP' | |
740 | 740 | let GovernToken = base58'6ZPMzZseuYoMP4ByozJpVxbugXBobwJYF22zVjW5JjN' | |
741 | 741 | let UserMentorAddress = (toBase58String(i.caller.bytes) + "_Mentor") | |
742 | 742 | if ((Mentor != "")) | |
743 | 743 | then WriteSet([DataEntry(UserMentorAddress, Mentor)]) | |
744 | 744 | else throw("Mentor's Address cannot be empty") | |
745 | 745 | } | |
746 | 746 | ||
747 | 747 |
github/deemru/w8io/169f3d6 62.92 ms ◑