Contract con_staking_rswp_mob


Contract Code

1 # Imports
2
3 import con_rswp_lst001
4 import con_mintorburn
5
6 I = importlib
7
8 # Setup Tokens
9
10 STAKING_TOKEN = con_rswp_lst001
11 YIELD_TOKEN = con_mintorburn
12
13 # State
14
15 Owner = Variable()
16 DevRewardWallet = Variable()
17 EmissionRatePerHour = Variable()
18 DevRewardPct = Variable()
19 StartTime = Variable()
20 EndTime = Variable()
21 OpenForBusiness = Variable() # If false, users will be unable to join the pool
22
23 Deposits = Hash(default_value=False)
24 Withdrawals = Hash(default_value=0)
25 CurrentEpochIndex = Variable()
26 Epochs = Hash(default_value=False)
27 StakedBalance = Variable() # The total amount of farming token in the vault.
28 WithdrawnBalance = Variable()
29 EpochMinTime = Variable() # The minimum amount of seconds in Epoch
30 EpochMaxRatioIncrease = (
31 Variable()
32 ) # The maximum ratio which the Epoch can increase by since last Epoch before incrementing.
33 meta = Hash(default_value=False)
34 decimal_converter_var = Variable()
35 TrustedExporters = Variable()
36
37 # Vtoken
38 balances = Hash(default_value=0)
39
40
41 @construct
42 def seed():
43 Owner.set(ctx.caller)
44 DevRewardWallet.set(ctx.caller)
45 CurrentEpochIndex.set(0)
46 StakedBalance.set(0)
47 WithdrawnBalance.set(0)
48 EpochMaxRatioIncrease.set(10)
49 EpochMinTime.set(86000)
50 TrustedExporters.set([])
51
52 Epochs[0] = {"time": now, "staked": 0, "amt_per_hr": 31746}
53
54 meta["version"] = "0.0.3"
55 meta[
56 "type"
57 ] = "staking_smart_epoch" # staking || lp_farming || etcetera ...
58 meta["STAKING_TOKEN"] = "con_rswp_lst001"
59 meta["YIELD_TOKEN"] = "con_mintorburn"
60
61 EmissionRatePerHour.set(31746) # 1200000 RSWP per year = 10% of supply
62 DevRewardPct.set(0)
63
64 StartTime.set(datetime.datetime(year=2021, month=11, day=16, hour=13))
65 EndTime.set(datetime.datetime(year=2022, month=6, day=16, hour=13))
66
67 OpenForBusiness.set(True)
68
69
70 @export
71 def addStakingTokens(amount: float):
72 user = ctx.caller
73 deposit = Deposits[user]
74
75 assert amount > 0, "You must stake some tokens."
76
77 if deposit is False:
78 return createNewDeposit(amount=amount, from_contract=False)
79 else:
80 return increaseDeposit(amount=amount, from_contract=False)
81
82
83 # This is called FROM the contract to which the yields will be staked.
84 # This contract name will need to be added to the "TrustedImporters" list on the foreign contract.
85 @export
86 def stakeFromContractProfits(contract: str):
87 # verify that the contract is calling it is trusted.
88 assert (
89 contract in TrustedExporters.get()
90 ), "The contract is not in the trusted exporters list."
91 # import staking contract
92 yield_contract = I.import_module(contract)
93 # call withdraw function to this contract, take return value
94 amount = yield_contract.exportYieldToForeignContract()
95 # stake this value
96 user = ctx.signer
97
98 deposit = Deposits[user]
99
100 if deposit is False:
101 return createNewDeposit(amount=amount, from_contract=True)
102 else:
103 return increaseDeposit(amount=amount, from_contract=True)
104
105
106 def createNewDeposit(
107 amount: float, from_contract: bool
108 ): # user_ctx will either be "caller" or "signer"
109 assert OpenForBusiness.get() == True, "This staking pool is not open right now."
110 assert amount > 0, "You must stake something."
111
112 user = ctx.caller
113
114 # Take the staking tokens from the user's wallet if the user has called this function via addStakingTokens
115 if from_contract is False:
116 STAKING_TOKEN.transfer_from(amount=amount, to=ctx.this, main_account=user)
117
118 # Update the Staked amount
119 staked = StakedBalance.get()
120 new_staked_amount = staked + amount
121 StakedBalance.set(new_staked_amount)
122
123 # Update the Epoch
124 epoch_index = decideIncrementEpoch(new_staked_amount=new_staked_amount)
125
126 # Create a record of the user's deposit
127
128 Deposits[user] = {
129 "starting_epoch": epoch_index,
130 "time": now,
131 "amount": amount,
132 "user_yield": 0,
133 }
134
135 # mint vtoken equal to the deposit.
136 mintVToken(amount=amount)
137 return Deposits[user]
138
139
140 @export
141 def increaseDeposit(
142 amount: float, from_contract: bool
143 ): # user_ctx will either be "caller" or "signer"
144
145 user = ctx.caller
146 assert OpenForBusiness.get() == True, "This staking pool is not open right now."
147 assert amount >= 0, "You cannot stake a negative balance."
148
149 deposit = Deposits[user]
150
151 assert deposit is not False, "This user has no deposit to add to."
152
153 # Take the staking tokens from the user's wallet
154 if amount > 0 and from_contract is False:
155 STAKING_TOKEN.transfer_from(amount=amount, to=ctx.this, main_account=user)
156
157 withdrawn_yield = Withdrawals[user]
158 user_yield = deposit["user_yield"]
159 existing_stake = deposit["amount"]
160 start_time = False
161
162 user_yield += calculateYield(deposit=deposit)
163 start_time = deposit["time"]
164 existing_stake = deposit["amount"]
165
166 total_deposit_amount = existing_stake + amount
167 global_amount_staked = StakedBalance.get()
168 new_global_staked = global_amount_staked + amount
169 StakedBalance.set(new_global_staked)
170
171 mintVToken(amount=amount)
172
173 Deposits[user] = {
174 "starting_epoch": decideIncrementEpoch(new_staked_amount=new_global_staked),
175 "time": now,
176 "amount": total_deposit_amount,
177 "user_yield": user_yield,
178 }
179
180 return Deposits[user]
181
182
183 def sendYieldToTarget(amount: float, target: str, user: str):
184
185 deposit = Deposits[user]
186 assert deposit is not False, "You have no deposit to withdraw yield from."
187
188 # Calculate how much yield is due per deposit account
189 withdrawn_yield = Withdrawals[user]
190 harvestable_yield = deposit["user_yield"]
191
192 harvestable_yield += calculateYield(deposit=deposit)
193
194 # Determine maximum amount of yield user can withdraw
195 harvestable_yield -= withdrawn_yield
196
197 yield_to_harvest = amount if amount < harvestable_yield else harvestable_yield
198
199 assert yield_to_harvest > 0, "There is no yield to harvest right now :("
200
201 # Take % of Yield Tokens, send it to dev fund
202 dev_share = yield_to_harvest * DevRewardPct.get()
203
204 if dev_share > 0:
205 YIELD_TOKEN.transfer(to=DevRewardWallet.get(), amount=dev_share)
206
207 # Send remanding Yield Tokens to user
208 user_share = yield_to_harvest - dev_share
209 YIELD_TOKEN.transfer(to=target, amount=user_share)
210
211 Withdrawals[user] = withdrawn_yield + yield_to_harvest
212
213 new_withdrawn_amount = WithdrawnBalance.get() + yield_to_harvest
214 WithdrawnBalance.set(new_withdrawn_amount)
215
216 return user_share
217
218
219 @export
220 def withdrawYield(amount: float):
221 assert amount > 0, "You cannot harvest a negative balance"
222
223 user = ctx.caller
224 return sendYieldToTarget(amount=amount, target=user, user=user)
225
226
227 @export
228 def withdrawTokensAndYield():
229 user = ctx.caller
230 deposit = Deposits[user]
231
232 assert deposit is not False, "You have no deposit to withdraw"
233
234 # Calculate how much yield is due per deposit account
235 withdrawn_yield = Withdrawals[user]
236 stake_to_return = deposit["amount"]
237 yield_to_harvest = deposit["user_yield"]
238 user_share = 0
239
240 yield_to_harvest += calculateYield(deposit=deposit)
241
242 # Send Staking Tokens to user
243 STAKING_TOKEN.transfer(to=user, amount=stake_to_return)
244 returnAndBurnVToken(amount=stake_to_return)
245
246 # check that the user has yield left to harvest (this should never be negative, but let's check here just in case)
247 yield_to_harvest -= withdrawn_yield
248 if yield_to_harvest > 0:
249
250 # Take % of Yield Tokens, send it to dev fund
251 dev_share = yield_to_harvest * DevRewardPct.get()
252 if dev_share > 0:
253 YIELD_TOKEN.transfer(to=DevRewardWallet.get(), amount=dev_share)
254
255 # Send remanding Yield Tokens to user
256 user_share = yield_to_harvest - dev_share
257 YIELD_TOKEN.transfer(to=user, amount=user_share)
258
259 # Reset User's Deposits
260 Deposits[user] = False
261
262 # Reset User's Withdrawal
263 Withdrawals[user] = 0
264
265 # Remove token amount from Staked
266 new_staked_amount = StakedBalance.get() - stake_to_return
267 StakedBalance.set(new_staked_amount)
268 new_withdrawn_amount = WithdrawnBalance.get() + yield_to_harvest
269 WithdrawnBalance.set(new_withdrawn_amount)
270
271 # Increment Epoch
272 decideIncrementEpoch(new_staked_amount=new_staked_amount)
273
274 return user_share
275
276
277 # This runs over each of the items in the user's Deposit
278 def calculateYield(deposit):
279 starting_epoch_index = deposit.get("starting_epoch")
280 start_time = deposit.get("time")
281 amount = deposit.get("amount")
282
283 current_epoch_index = getCurrentEpochIndex()
284 this_epoch_index = starting_epoch_index
285 y = 0
286 while this_epoch_index <= current_epoch_index:
287 this_epoch = Epochs[this_epoch_index]
288 next_epoch = Epochs[this_epoch_index + 1]
289
290 delta = 0
291
292 if starting_epoch_index == current_epoch_index:
293 delta = fitTimeToRange(now) - fitTimeToRange(start_time)
294 elif this_epoch_index == starting_epoch_index:
295 delta = fitTimeToRange(next_epoch["time"]) - fitTimeToRange(start_time)
296 elif this_epoch_index == current_epoch_index:
297 delta = fitTimeToRange(now) - fitTimeToRange(this_epoch["time"])
298 else:
299 delta = fitTimeToRange(next_epoch["time"]) - fitTimeToRange(
300 this_epoch["time"]
301 )
302
303 pct_share_of_stake = 0
304 if amount is not 0 and this_epoch["staked"] is not 0:
305 pct_share_of_stake = amount / this_epoch["staked"]
306
307 # These two lines below were causing some problems, until I used the decimal method. get a python expert to review.
308 emission_rate_per_hour = this_epoch["amt_per_hr"]
309 global_yield_this_epoch = delta.seconds * getEmissionRatePerSecond(
310 emission_rate_per_hour
311 )
312 decimal_converter_var.set(pct_share_of_stake)
313 pct_share_of_stake = decimal_converter_var.get()
314 deposit_yield_this_epoch = global_yield_this_epoch * pct_share_of_stake
315 y += deposit_yield_this_epoch
316
317 this_epoch_index += 1
318
319 return y
320
321
322 def fitTimeToRange(time: Any):
323 if time < StartTime.get():
324 time = StartTime.get()
325 elif time > EndTime.get():
326 time = EndTime.get()
327 return time
328
329
330 def getCurrentEpochIndex():
331 current_epoch_index = CurrentEpochIndex.get()
332 return current_epoch_index
333
334
335 def decideIncrementEpoch(new_staked_amount: float):
336 epoch_index = getCurrentEpochIndex()
337 this_epoch = Epochs[epoch_index]
338 this_epoch_staked = this_epoch["staked"]
339 delta = now - this_epoch["time"]
340 delta_seconds = delta.seconds if delta.seconds > 0 else 0
341 if (
342 delta_seconds >= EpochMinTime.get()
343 or this_epoch_staked is 0
344 or maxStakedChangeRatioExceeded(
345 new_staked_amount=new_staked_amount, this_epoch_staked=this_epoch_staked
346 )
347 ):
348 epoch_index = incrementEpoch(new_staked_amount)
349 return epoch_index
350
351
352 def maxStakedChangeRatioExceeded(new_staked_amount: float, this_epoch_staked: float):
353 smaller = (
354 new_staked_amount
355 if new_staked_amount <= this_epoch_staked
356 else this_epoch_staked
357 )
358 bigger = (
359 new_staked_amount
360 if new_staked_amount >= this_epoch_staked
361 else this_epoch_staked
362 )
363 dif = bigger - smaller
364 if this_epoch_staked < 0.0001 :
365 return true
366 return (dif) / this_epoch_staked >= EpochMaxRatioIncrease.get()
367
368
369 def incrementEpoch(new_staked_amount: float):
370 current_epoch = getCurrentEpochIndex()
371 new_epoch_idx = current_epoch + 1
372 CurrentEpochIndex.set(new_epoch_idx)
373 Epochs[new_epoch_idx] = {
374 "time": now,
375 "staked": new_staked_amount,
376 "amt_per_hr": Epochs[current_epoch]["amt_per_hr"],
377 }
378 return new_epoch_idx
379
380
381 @export
382 def changeAmountPerHour(amount_per_hour: float):
383 assertOwner()
384 current_epoch = getCurrentEpochIndex()
385 new_epoch_idx = current_epoch + 1
386 CurrentEpochIndex.set(new_epoch_idx)
387 setEmissionRatePerHour(amount=amount_per_hour)
388
389 Epochs[new_epoch_idx] = {
390 "time": now,
391 "staked": StakedBalance.get(),
392 "amt_per_hr": amount_per_hour,
393 }
394
395
396 @export
397 def setEpochMinTime(min_seconds: float):
398 assertOwner()
399 assert min_seconds >= 0, "you must choose a positive value."
400 EpochMinTime.set(min_seconds)
401
402
403 @export
404 def setEpochMaxRatioIncrease(ratio: float):
405 assertOwner()
406 assert ratio > 0, "must be a positive value"
407 EpochMaxRatioIncrease.set(ratio)
408
409
410 def getEmissionRatePerSecond(emission_rate_per_hour: float):
411 emission_rate_per_minute = emission_rate_per_hour / 60
412 emission_rate_per_second = emission_rate_per_minute / 60
413 return emission_rate_per_second
414
415
416 @export
417 def setOwner(vk: str):
418 assertOwner()
419 Owner.set(vk)
420
421
422 @export
423 def setDevWallet(vk: str):
424 assertOwner()
425 DevRewardWallet.set(vk)
426
427
428 @export
429 def setDevRewardPct(amount: float):
430 assertOwner()
431 assert amount < 1 and amount >= 0, "Amount must be a value between 0 and 1"
432 DevRewardPct.set(amount)
433
434
435 def setEmissionRatePerHour(amount: float):
436 assertOwner()
437 EmissionRatePerHour.set(amount)
438
439
440 @export
441 def addToTrustedExporters(contract: str):
442 assertOwner()
443 trusted_exporters = TrustedExporters.get()
444 if contract in trusted_exporters:
445 return
446 trusted_exporters.append(contract)
447 TrustedExporters.set(trusted_exporters)
448
449
450 @export
451 def removeFromTrustedExporters(contract: str):
452 assertOwner()
453 trusted_exporters = TrustedExporters.get()
454 trusted_exporters.remove(contract)
455 TrustedExporters.set(trusted_exporters)
456
457
458 @export
459 def recoverYieldToken():
460 assertOwner()
461 staked_balance = StakedBalance.get()
462 # The yield_balances logic is for single asset staking and should be removed for other types.
463 yield_balances = ForeignHash(
464 foreign_contract=meta["YIELD_TOKEN"], foreign_name="balances"
465 )
466 total_in_contract = yield_balances[ctx.this]
467 YIELD_TOKEN.transfer(amount=total_in_contract, to=Owner.get())
468
469
470 @export
471 def allowStaking(is_open: bool):
472 assertOwner()
473 OpenForBusiness.set(is_open)
474
475
476 @export
477 def setStartTime(year: int, month: int, day: int, hour: int):
478 assertOwner()
479 time = datetime.datetime(year, month, day, hour)
480 StartTime.set(time)
481
482
483 @export
484 def setEndTime(year: int, month: int, day: int, hour: int):
485 assertOwner()
486 time = datetime.datetime(year, month, day, hour)
487 EndTime.set(time)
488
489
490 def assertOwner():
491 assert Owner.get() == ctx.caller, "You must be the owner to call this function."
492
493
494 # This is only to be called in emergencies - the user will forgo their yield when calling this FN.
495
496
497 @export
498 def emergencyReturnStake():
499 user = ctx.caller
500 deposit = Deposits[user]
501
502 assert Deposits[user] is not False, "This account has no deposits to return."
503
504 stake_to_return = 0
505
506 stake_to_return += deposit["amount"]
507
508 STAKING_TOKEN.transfer(to=user, amount=stake_to_return)
509 returnAndBurnVToken(amount=stake_to_return)
510 Deposits[user] = False
511 Withdrawals[user] = 0
512
513 # Remove token amount from Staked
514 new_staked_amount = StakedBalance.get() - stake_to_return
515 StakedBalance.set(new_staked_amount)
516 decideIncrementEpoch(new_staked_amount=new_staked_amount)
517
518
519 # VTOKEN METHODS
520 @export
521 def transfer(amount: float, to: str):
522 assert amount > 0, "Cannot send negative balances!"
523 assert balances[ctx.caller] >= amount, "Not enough VTOKENS to send!"
524 balances[ctx.caller] -= amount
525 balances[to] += amount
526
527
528 @export
529 def approve(amount: float, to: str):
530 assert amount > 0, "Cannot send negative balances!"
531 balances[ctx.caller, to] += amount
532
533
534 @export
535 def transfer_from(amount: float, to: str, main_account: str):
536 assert amount > 0, "Cannot send negative balances!"
537
538 assert (
539 balances[main_account, ctx.caller] >= amount
540 ), "Not enough coins approved to send! You have {} and are trying to spend {}".format(
541 balances[main_account, ctx.caller], amount
542 )
543 assert balances[main_account] >= amount, "Not enough coins to send!"
544 balances[main_account, ctx.caller] -= amount
545 balances[main_account] -= amount
546 balances[to] += amount
547
548
549 def returnAndBurnVToken(amount: float):
550 user = ctx.caller
551 assert (
552 balances[user] >= amount
553 ), "Your VTOKEN balance is too low to unstake, recover your VTOKENS and try again."
554 balances[user] -= amount
555
556
557 def mintVToken(amount: float):
558 user = ctx.signer
559 balances[user] += amount

Byte Code

e300000000000000000000000006000000400000007394030000640064016c005a00640064016c015a0165025a0365005a0465015a0565066402640364048d025a0765066402640564048d025a0865066402640664048d025a0965066402640764048d025a0a65066402640864048d025a0b65066402640964048d025a0c65066402640a64048d025a0d650e640b6402640c640d8d035a0f650e64006402640e640d8d035a1065066402640f64048d025a11650e640b64026410640d8d035a1265066402641164048d025a1365066402641264048d025a1465066402641364048d025a1565066402641464048d025a16650e640b64026415640d8d035a1765066402641664048d025a1865066402641764048d025a19650e640064026418640d8d035a1a6419641a84005a1b651c64028301651d641b9c01641c641d840483015a1e651c64028301651f641e9c01641f6420840483015a20651d652164219c026422642384045a22651c64028301651d652164219c0264246425840483015a23651d651f651f64269c036427642884045a24651c64028301651d641b9c016429642a840483015a25651c64028301642b642c840083015a26642d642e84005a276528642f9c016430643184045a296432643384005a2a651d64349c016435643684045a2b651d651d64379c026438643984045a2c651d64349c01643a643b84045a2d651c64028301651d643c9c01643d643e840483015a2e651c64028301651d643f9c0164406441840483015a2f651c64028301651d64429c0164436444840483015a30651d64459c016446644784045a31651c64028301651f64489c016449644a840483015a32651c64028301651f64489c01644b644c840483015a33651c64028301651d641b9c01644d644e840483015a34651d641b9c01644f645084045a35651c64028301651f641e9c0164516452840483015a36651c64028301651f641e9c0164536454840483015a37651c6402830164556456840083015a38651c64028301652164579c0164586459840483015a39651c64028301653a653a653a653a645a9c04645b645c840483015a3b651c64028301653a653a653a653a645a9c04645d645e840483015a3c645f646084005a3d651c6402830164616462840083015a3e651c64028301651d651f64639c0264646465840483015a3f651c64028301651d651f64639c0264666467840483015a40651c64028301651d651f651f64689c036469646a840483015a41651d641b9c01646b646c84045a42651d641b9c01646d646e84045a4364015300296fe9000000004eda14636f6e5f7374616b696e675f727377705f6d6f62da054f776e65722902da08636f6e7472616374da046e616d65da0f44657652657761726457616c6c6574da13456d697373696f6e52617465506572486f7572da0c446576526577617264506374da09537461727454696d65da07456e6454696d65da0f4f70656e466f72427573696e65737346da084465706f736974732903da0d64656661756c745f76616c756572040000007205000000da0b5769746864726177616c73da1143757272656e7445706f6368496e646578da0645706f636873da0d5374616b656442616c616e6365da1057697468647261776e42616c616e6365da0c45706f63684d696e54696d65da1545706f63684d6178526174696f496e637265617365da046d657461da15646563696d616c5f636f6e7665727465725f766172da10547275737465644578706f7274657273da0862616c616e63657363000000000000000000000000070000004300000073d600000074006a0174026a038301010074046a0174026a038301010074056a0164018301010074066a0164018301010074076a0164018301010074086a0164028301010074096a01640383010100740a6a01670083010100740b6401640464059c03740c64013c006406740d64073c006408740d64093c00640a740d640b3c00640c740d640d3c00740e6a01640483010100740f6a0164018301010074106a0174116a11640e640f6410641164128d048301010074126a0174116a11641364146410641164128d048301010074136a016415830101006400530029164e7201000000e90a00000069f04f010069027c00002903da0474696d65da067374616b6564da0a616d745f7065725f68727a05302e302e33da0776657273696f6eda137374616b696e675f736d6172745f65706f6368da0474797065da0f636f6e5f727377705f6c7374303031da0d5354414b494e475f544f4b454eda0e636f6e5f6d696e746f726275726eda0b5949454c445f544f4b454e69e5070000e90b000000e910000000e90d0000002904da0479656172da056d6f6e7468da03646179da04686f757269e6070000e906000000542914da075f5f4f776e6572da03736574da03637478da0663616c6c6572da115f5f44657652657761726457616c6c6574da135f5f43757272656e7445706f6368496e646578da0f5f5f5374616b656442616c616e6365da125f5f57697468647261776e42616c616e6365da175f5f45706f63684d6178526174696f496e637265617365da0e5f5f45706f63684d696e54696d65da125f5f547275737465644578706f7274657273da036e6f77da085f5f45706f636873da065f5f6d657461da155f5f456d697373696f6e52617465506572486f7572da0e5f5f446576526577617264506374da0b5f5f537461727454696d65da086461746574696d65da095f5f456e6454696d65da115f5f4f70656e466f72427573696e657373a90072400000007240000000da00da045f5f5f5f29000000732400000000010c010c010a010a010a010a010a010a01100108010801080108010a010a011801180172420000002901da06616d6f756e74630100000000000000030000000400000043000000734200000074006a017d0174027c0119007d027c0064016b04731e74036402830182017c0264036b08723274047c00640364048d02530074057c00640364048d0253006400530029054e72010000007a1b596f75206d757374207374616b6520736f6d6520746f6b656e732e4629027243000000da0d66726f6d5f636f6e74726163742906722e000000722f000000da0a5f5f4465706f73697473da0e417373657274696f6e4572726f72da125f5f6372656174654e65774465706f736974da0f696e6372656173654465706f73697429037243000000da0475736572da076465706f736974724000000072400000007241000000da106164645374616b696e67546f6b656e733e000000730c000000000206010801100108010c02724b0000002901720400000063010000000000000005000000040000004300000073580000007c0074006a0183006b067314740264018301820174036a047c0083017d017c016a0583007d0274066a077d0374087c0319007d047c0464026b08724874097c02640364048d025300740a7c02640364048d0253006400530029054e7a3254686520636f6e7472616374206973206e6f7420696e207468652074727573746564206578706f7274657273206c6973742e4654290272430000007244000000290b7236000000da036765747246000000da0149da0d696d706f72745f6d6f64756c65da1c6578706f72745969656c64546f466f726569676e436f6e7472616374722e000000da067369676e657272450000007247000000724800000029057204000000da0e7969656c645f636f6e747261637472430000007249000000724a000000724000000072400000007241000000da187374616b6546726f6d436f6e747261637450726f6669747349000000731200000000020e0106010a0108010601080108010c027252000000290272430000007244000000630200000000000000060000000500000043000000738c00000074006a01830064016b02731474026402830182017c0064036b047324740264048301820174036a047d027c0164056b08724474056a067c0074036a077c0264068d03010074086a0183007d037c037c0017007d0474086a097c0483010100740a7c0464078d017d057c05740b7c00640364089c04740c7c023c00740d7c0064098d010100740c7c0219005300290a4e547a2854686973207374616b696e6720706f6f6c206973206e6f74206f70656e207269676874206e6f772e72010000007a19596f75206d757374207374616b6520736f6d657468696e672e4629037243000000da02746fda0c6d61696e5f6163636f756e742901da116e65775f7374616b65645f616d6f756e742904da0e7374617274696e675f65706f6368721a0000007243000000da0a757365725f7969656c6429017243000000290e723f000000724c0000007246000000722e000000722f0000007221000000da0d7472616e736665725f66726f6dda04746869737232000000722d000000da165f5f646563696465496e6372656d656e7445706f636872370000007245000000da0c5f5f6d696e7456546f6b656e2906724300000072440000007249000000721b0000007255000000da0b65706f63685f696e646578724000000072400000007241000000724700000057000000731e000000000106010e011001060108010a010801080108010a010a0104010e010a0172470000006302000000000000000b000000050000004300000073ea00000074006a017d0274026a03830064016b02731a74046402830182017c0064036b05732a740464048301820174057c0219007d037c0364056b09734274046406830182017c0064036b0472647c0164056b08726474066a077c0074006a087c0264078d03010074097c0219007d047c03640819007d057c03640919007d0664057d077c05740a7c03640a8d0137007d057c03640b19007d077c03640919007d067c067c0017007d08740b6a0383007d097c097c0017007d0a740b6a0c7c0a83010100740d7c00640c8d010100740e7c0a640d8d01740f7c087c05640e9c0474057c023c0074057c0219005300290f4e547a2854686973207374616b696e6720706f6f6c206973206e6f74206f70656e207269676874206e6f772e72010000007a24596f752063616e6e6f74207374616b652061206e656761746976652062616c616e63652e467a2354686973207573657220686173206e6f206465706f73697420746f2061646420746f2e2903724300000072530000007254000000725700000072430000002901724a000000721a000000290172430000002901725500000029047256000000721a000000724300000072570000002910722e000000722f000000723f000000724c00000072460000007245000000722100000072580000007259000000da0d5f5f5769746864726177616c73da105f5f63616c63756c6174655969656c647232000000722d000000725b000000725a0000007237000000290b724300000072440000007249000000724a000000da0f77697468647261776e5f7969656c647257000000da0e6578697374696e675f7374616b65da0a73746172745f74696d65da14746f74616c5f6465706f7369745f616d6f756e74da14676c6f62616c5f616d6f756e745f7374616b6564da116e65775f676c6f62616c5f7374616b656472400000007240000000724100000072480000006900000073320000000002060106010e0110010801100110010a01080108010801080104010e01080108010801080108010a010a01020108010e01724800000029037243000000da0674617267657472490000006303000000000000000a000000040000004300000073c000000074007c0219007d037c0364016b097318740164028301820174027c0219007d047c03640319007d057c0574037c0364048d0137007d057c057c0438007d057c007c056b00724a7c006e027c057d067c0664056b04735e74016406830182017c0674046a05830014007d077c0764056b04728474066a0774086a0583007c0764078d0201007c067c0718007d0874066a077c017c0864078d0201007c047c06170074027c023c0074096a0583007c0617007d0974096a0a7c09830101007c08530029084e467a2b596f752068617665206e6f206465706f73697420746f207769746864726177207969656c642066726f6d2e72570000002901724a00000072010000007a295468657265206973206e6f207969656c6420746f2068617276657374207269676874206e6f77203a28290272530000007243000000290b72450000007246000000725d000000725e000000723b000000724c0000007223000000da087472616e7366657272300000007233000000722d000000290a724300000072650000007249000000724a000000725f000000da116861727665737461626c655f7969656c64da107969656c645f746f5f68617276657374da096465765f7368617265da0a757365725f7368617265da146e65775f77697468647261776e5f616d6f756e74724000000072400000007241000000da135f5f73656e645969656c64546f546172676574860000007324000000000108011001080108010e0108010c01040110010c010801120108010e010c010c010a01726c00000063010000000000000002000000050000004300000073240000007c0064016b047310740064028301820174016a027d0174037c007c017c0164038d03530029044e72010000007a25596f752063616e6e6f7420686172766573742061206e656761746976652062616c616e6365290372430000007265000000724900000029047246000000722e000000722f000000726c000000290272430000007249000000724000000072400000007241000000da0d77697468647261775969656c649b0000007306000000000210010601726d00000063000000000000000009000000040000004300000073f600000074006a017d0074027c0019007d017c0164016b09731e740364028301820174047c0019007d027c01640319007d037c01640419007d0464057d057c0474057c0164068d0137007d0474066a077c007c0364078d02010074087c0364088d0101007c047c0238007d047c0464056b0472ac7c0474096a0a830014007d067c0664056b047296740b6a07740c6a0a83007c0664078d0201007c047c0618007d05740b6a077c007c0564078d020100640174027c003c00640574047c003c00740d6a0a83007c0318007d07740d6a0e7c0783010100740f6a0a83007c0417007d08740f6a0e7c088301010074107c0764098d0101007c055300290a4e467a1f596f752068617665206e6f206465706f73697420746f2077697468647261777243000000725700000072010000002901724a00000029027253000000724300000029017243000000290172550000002911722e000000722f00000072450000007246000000725d000000725e00000072210000007266000000da155f5f72657475726e416e644275726e56546f6b656e723b000000724c000000722300000072300000007232000000722d0000007233000000725a00000029097249000000724a000000725f000000da0f7374616b655f746f5f72657475726e7268000000726a00000072690000007255000000726b000000724000000072400000007241000000da167769746864726177546f6b656e73416e645969656c64a20000007332000000000206010801100108010801080104010e010e010a01080108010c010801120108010e01080108010c010a010c010a010a0172700000006301000000000000000e0000000400000043000000732a0100007c006a00640183017d017c006a00640283017d027c006a00640383017d03740183007d047c017d0564047d0678f87c057c046b019001722474027c0519007d0774027c056405170019007d0864047d097c017c046b02726a74037404830174037c02830118007d096e547c057c016b02728874037c0864021900830174037c02830118007d096e367c057c046b0272a674037404830174037c0764021900830118007d096e1874037c0864021900830174037c0764021900830118007d0964047d0a7c0364046b0972e27c076406190064046b0972e27c037c07640619001b007d0a7c07640719007d0b7c096a0574067c0b830114007d0c74076a087c0a8301010074076a0083007d0a7c0c7c0a14007d0d7c067c0d37007d067c05640537007d05712e57007c06530029084e7256000000721a00000072430000007201000000e901000000721b000000721c0000002909724c000000da165f5f67657443757272656e7445706f6368496e6465787238000000da105f5f66697454696d65546f52616e67657237000000da077365636f6e6473da1a5f5f676574456d697373696f6e526174655065725365636f6e64da175f5f646563696d616c5f636f6e7665727465725f766172722d000000290e724a000000da147374617274696e675f65706f63685f696e64657872610000007243000000da1363757272656e745f65706f63685f696e646578da10746869735f65706f63685f696e646578da0179da0a746869735f65706f6368da0a6e6578745f65706f6368da0564656c7461da127063745f73686172655f6f665f7374616b65da16656d697373696f6e5f726174655f7065725f686f7572da17676c6f62616c5f7969656c645f746869735f65706f6368da186465706f7369745f7969656c645f746869735f65706f6368724000000072400000007241000000725e000000bf000000733e00000000010a010a010a010601040104010c0108010c0104010801120108010c010a01080116030c010c01040114010c010801060108010a010801080108010c01725e0000002901721a000000630100000000000000010000000200000043000000732e0000007c0074006a0183006b00721674006a0183007d006e147c0074026a0183006b04722a74026a0183007d007c00530029014e2903723c000000724c000000723e0000002901721a0000007240000000724000000072410000007273000000e3000000730a00000000010c010a010c0108017273000000630000000000000000010000000100000043000000730c00000074006a0183007d007c00530029014e29027231000000724c000000290172780000007240000000724000000072410000007272000000eb0000007304000000000108017272000000290172550000006301000000000000000600000004000000430000007362000000740083007d0174017c0119007d027c02640119007d0374027c026402190018007d047c046a0364036b0472327c046a036e0264037d057c0574046a0583006b0573567c0364036b08735674067c007c0364048d02725e74077c0083017d017c01530029054e721b000000721a000000720100000029027255000000da11746869735f65706f63685f7374616b6564290872720000007238000000723700000072740000007235000000724c000000da1e5f5f6d61785374616b65644368616e6765526174696f4578636565646564da105f5f696e6372656d656e7445706f636829067255000000725c000000727b0000007282000000727d000000da0d64656c74615f7365636f6e6473724000000072400000007241000000725a000000f0000000731600000000010601080108010c0114010c010a01020108010801725a00000029027255000000728200000063020000000000000005000000030000004300000073480000007c007c016b01720c7c006e027c017d027c007c016b05721c7c006e027c017d037c037c0218007d047c017400640183016b007238740153007c047c011b0074026a0383006b05530029024e7a06302e303030312904da07646563696d616cda04747275657234000000724c000000290572550000007282000000da07736d616c6c6572da06626967676572da036469667240000000724000000072410000007283000000fe000000731000000000020c0104010c01040108010c01040172830000006301000000000000000300000004000000430000007334000000740083007d017c01640117007d0274016a027c028301010074037c0074047c0119006402190064039c0374047c023c007c02530029044e7271000000721c0000002903721a000000721b000000721c000000290572720000007231000000722d0000007237000000723800000029037255000000da0d63757272656e745f65706f6368da0d6e65775f65706f63685f69647872400000007240000000724100000072840000000a010000730c0000000001060108010a010401140172840000002901da0f616d6f756e745f7065725f686f75726301000000000000000300000004000000430000007340000000740083000100740183007d017c01640117007d0274026a037c028301010074047c0064028d010100740574066a0783007c0064039c0374087c023c006400530029044e7271000000290172430000002903721a000000721b000000721c0000002909da0d5f5f6173736572744f776e657272720000007231000000722d000000da185f5f736574456d697373696f6e52617465506572486f757272370000007232000000724c00000072380000002903728d000000728b000000728c000000724000000072400000007241000000da136368616e6765416d6f756e74506572486f757213010000730e00000000020601060108010a010a01080172900000002901da0b6d696e5f7365636f6e647363010000000000000001000000020000004300000073240000007400830001007c0064016b057316740164028301820174026a037c00830101006400530029034e72010000007a21796f75206d7573742063686f6f7365206120706f7369746976652076616c75652e2904728e00000072460000007235000000722d00000029017291000000724000000072400000007241000000da0f73657445706f63684d696e54696d651e010000730600000000020601100172920000002901da05726174696f63010000000000000001000000020000004300000073240000007400830001007c0064016b047316740164028301820174026a037c00830101006400530029034e72010000007a186d757374206265206120706f7369746976652076616c75652904728e00000072460000007234000000722d00000029017293000000724000000072400000007241000000da1873657445706f63684d6178526174696f496e63726561736525010000730600000000020601100172940000002901727f00000063010000000000000003000000020000004300000073140000007c0064011b007d017c0164011b007d027c02530029024ee93c00000072400000002903727f000000da18656d697373696f6e5f726174655f7065725f6d696e757465da18656d697373696f6e5f726174655f7065725f7365636f6e6472400000007240000000724100000072750000002c010000730600000000010801080172750000002901da02766b630100000000000000010000000200000043000000731400000074008300010074016a027c00830101006400530029014e2903728e000000722c000000722d00000029017298000000724000000072400000007241000000da087365744f776e6572320100007304000000000206017299000000630100000000000000010000000200000043000000731400000074008300010074016a027c00830101006400530029014e2903728e0000007230000000722d00000029017298000000724000000072400000007241000000da0c73657444657657616c6c657438010000730400000000020601729a000000630100000000000000010000000200000043000000732c0000007400830001007c0064016b0072167c0064026b05731e740164038301820174026a037c00830101006400530029044e727100000072010000007a26416d6f756e74206d75737420626520612076616c7565206265747765656e203020616e6420312904728e0000007246000000723b000000722d00000029017243000000724000000072400000007241000000da0f7365744465765265776172645063743e0100007306000000000206011801729b000000630100000000000000010000000200000043000000731400000074008300010074016a027c00830101006400530029014e2903728e000000723a000000722d00000029017243000000724000000072400000007241000000728f00000045010000730400000000010601728f000000630100000000000000020000000200000043000000733200000074008300010074016a0283007d017c007c016b06721a640053007c016a037c008301010074016a047c01830101006400530029014e2905728e0000007236000000724c000000da06617070656e64722d00000029027204000000da11747275737465645f6578706f7274657273724000000072400000007241000000da15616464546f547275737465644578706f72746572734a010000730c000000000206010801080104010a01729e000000630100000000000000020000000200000043000000732600000074008300010074016a0283007d017c016a037c008301010074016a047c01830101006400530029014e2905728e0000007236000000724c000000da0672656d6f7665722d00000029027204000000729d000000724000000072400000007241000000da1a72656d6f766546726f6d547275737465644578706f72746572735401000073080000000002060108010a0172a0000000630000000000000000030000000600000043000000734200000074008300010074016a0283007d00740374046401190064026403640464058d047d017c0174056a0619007d0274076a087c0274096a02830064068d0201006400530029074e722300000072180000007202000000da0e7969656c645f62616c616e6365732904da10666f726569676e5f636f6e7472616374da0c666f726569676e5f6e616d6572040000007205000000290272430000007253000000290a728e0000007232000000724c000000da0b466f726569676e486173687239000000722e000000725900000072230000007266000000722c0000002903da0e7374616b65645f62616c616e6365da105f5f7969656c645f62616c616e636573da11746f74616c5f696e5f636f6e7472616374724000000072400000007241000000da117265636f7665725969656c64546f6b656e5c010000730e0000000002060108010801040108010a0172a80000002901da0769735f6f70656e630100000000000000010000000200000043000000731400000074008300010074016a027c00830101006400530029014e2903728e000000723f000000722d000000290172a9000000724000000072400000007241000000da0c616c6c6f775374616b696e676701000073040000000002060172aa0000002904722700000072280000007229000000722a000000630400000000000000050000000500000043000000732400000074008300010074016a017c007c017c027c0383047d0474026a037c04830101006400530029014e2904728e000000723d000000723c000000722d0000002905722700000072280000007229000000722a000000721a000000724000000072400000007241000000da0c736574537461727454696d656d010000730600000000020601100172ab000000630400000000000000050000000500000043000000732400000074008300010074016a017c007c017c027c0383047d0474026a037c04830101006400530029014e2904728e000000723d000000723e000000722d0000002905722700000072280000007229000000722a000000721a000000724000000072400000007241000000da0a736574456e6454696d6574010000730600000000020601100172ac000000630000000000000000000000000200000043000000731a00000074006a01830074026a036b02731674046401830182016400530029024e7a2c596f75206d75737420626520746865206f776e657220746f2063616c6c20746869732066756e6374696f6e2e2905722c000000724c000000722e000000722f00000072460000007240000000724000000072400000007241000000728e0000007b010000730400000000010601728e000000630000000000000000040000000400000043000000737e00000074006a017d0074027c0019007d0174027c00190064016b097322740364028301820164037d027c027c016404190037007d0274046a057c007c0264058d02010074067c0264068d010100640174027c003c00640374077c003c0074086a0983007c0218007d0374086a0a7c0383010100740b7c0364078d0101006400530029084e467a2754686973206163636f756e7420686173206e6f206465706f7369747320746f2072657475726e2e720100000072430000002902725300000072430000002901724300000029017255000000290c722e000000722f0000007245000000724600000072210000007266000000726e000000725d0000007232000000724c000000722d000000725a00000029047249000000724a000000726f0000007255000000724000000072400000007241000000da14656d657267656e637952657475726e5374616b6580010000731a00000000020601080106010e0104010c010e010a01080108010c010a0172ad000000290272430000007253000000630200000000000000020000000400000043000000734c0000007c0064016b0473107400640283018201740174026a0319007c006b0573267400640383018201740174026a03050019007c00380003003c0074017c01050019007c00370003003c006400530029044e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a1b4e6f7420656e6f7567682056544f4b454e5320746f2073656e642129047246000000da0a5f5f62616c616e636573722e000000722f000000290272430000007253000000724000000072400000007241000000726600000091010000730800000000021001160112017266000000630200000000000000020000000400000043000000732a0000007c0064016b0473107400640283018201740174026a037c016602050019007c00370003003c006400530029034e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573212904724600000072ae000000722e000000722f000000290272430000007253000000724000000072400000007241000000da07617070726f76659901000073040000000002100172af0000002903724300000072530000007254000000630300000000000000030000000500000043000000738a0000007c0064016b047310740064028301820174017c0274026a03660219007c006b05733c740064036a0474017c0274026a03660219007c0083028301820174017c0219007c006b057350740064048301820174017c0274026a036602050019007c00380003003c0074017c02050019007c00380003003c0074017c01050019007c00370003003c006400530029054e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a494e6f7420656e6f75676820636f696e7320617070726f76656420746f2073656e642120596f752068617665207b7d20616e642061726520747279696e6720746f207370656e64207b7d7a194e6f7420656e6f75676820636f696e7320746f2073656e64212905724600000072ae000000722e000000722f000000da06666f726d6174290372430000007253000000725400000072400000007240000000724100000072580000009f0100007310000000000210010c010c0114011401160110017258000000630100000000000000020000000400000043000000732e00000074006a017d0174027c0119007c006b05731a740364018301820174027c01050019007c00380003003c006400530029024e7a4e596f75722056544f4b454e2062616c616e636520697320746f6f206c6f7720746f20756e7374616b652c207265636f76657220796f75722056544f4b454e5320616e642074727920616761696e2e2904722e000000722f00000072ae0000007246000000290272430000007249000000724000000072400000007241000000726e000000ab01000073080000000001060106010e01726e000000630100000000000000020000000400000043000000731a00000074006a017d0174027c01050019007c00370003003c006400530029014e2903722e000000725000000072ae000000290272430000007249000000724000000072400000007241000000725b000000b2010000730400000000010601725b000000294472200000007222000000da09696d706f72746c6962724d00000072210000007223000000da085661726961626c65722c0000007230000000723a000000723b000000723c000000723e000000723f000000da04486173687245000000725d00000072310000007238000000723200000072330000007235000000723400000072390000007276000000723600000072ae0000007242000000da085f5f6578706f7274da05666c6f6174724b000000da037374727252000000da04626f6f6c72470000007248000000726c000000726d0000007270000000725e000000da03416e7972730000007272000000725a0000007283000000728400000072900000007292000000729400000072750000007299000000729a000000729b000000728f000000729e00000072a000000072a800000072aa000000da03696e7472ab00000072ac000000728e00000072ad000000726600000072af0000007258000000726e000000725b0000007240000000724000000072400000007241000000da083c6d6f64756c653e0100000073b4000000080108010401040104010c0104010801040108010c010c010c01040108010601080106010801040108010601080104010801040108010c01040108010e0204010801040108010601080308150601100a0601100d10120601121c121506011006101d08240e0808050e0e02010e0b0e090601100a06011006060110060e060601100506011005060110060e050601100906011007100b0601100506011606060116060805101106011207060112050601140b0e07