tx · 9NuaAGF3FGjwfaB86eLKmfLuLoSvxjXCyJTbjhemvfD

3MpxLzvdRE6QxENcYdVYS17dRWGut8zmxxu:  -0.02600000 Waves

2024.10.03 14:08 [3310592] smart account 3MpxLzvdRE6QxENcYdVYS17dRWGut8zmxxu > SELF 0.00000000 Waves

{ "type": 13, "id": "9NuaAGF3FGjwfaB86eLKmfLuLoSvxjXCyJTbjhemvfD", "fee": 2600000, "feeAssetId": null, "timestamp": 1727953683834, "version": 2, "chainId": 84, "sender": "3MpxLzvdRE6QxENcYdVYS17dRWGut8zmxxu", "senderPublicKey": "9bacvPcGsCJGt6dR4osBoiJh2SWYCiG6a9RNVgTLWTmf", "proofs": [ "64PvgEQUExoWT88rAeLq22KcVfzmsusdFNMHN41tzxC1zCa5hcY9fK3AkxCL4rnPihLgFJGvQUQ9Kyzg1F6eX77p" ], "script": "base64:AAIFAAAAAAAAAC8IAhIAEgQKAggIEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIAEgASAwoBCAAAADUBAAAAB2dldEJvb2wAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIHAQAAAAlpc1Rlc3RFbnYAAAAACQEAAAAHZ2V0Qm9vbAAAAAECAAAAB1RFU1RFTlYAAAAABVNjYWxlAAAAAAAF9eEAAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkJAQAAABR0cnlHZXRTdHJpbmdFeHRlcm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VzQ291bnQAAAAAAAAAAAJcfcdh", "height": 3310592, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AXHexotfYrXJVW1HQQk8uqjyNSeAi8cjrq2n7uUiB8yZ Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getBool (key) = match getBoolean(this, key) {
55 case b: Boolean =>
66 b
77 case _ =>
88 false
99 }
1010
1111
1212 func isTestEnv () = getBool("TESTENV")
1313
1414
1515 let Scale = 100000000
1616
1717 func tryGetStringExternal (address,key) = match getString(address, key) {
1818 case a: String =>
1919 a
2020 case _ =>
2121 ""
2222 }
2323
2424
2525 func tryGetString (key) = tryGetStringExternal(this, key)
2626
2727
2828 func staticKey_refContractAddress () = "static_refContractAddress"
2929
3030
3131 let keyGlobalLastInterest = "global_lastCheck_interest"
3232
3333 func staticKey_oracleAddress () = "static_oracleAddress"
3434
3535
3636 func staticKey_eggAssetId () = "static_eggAssetId"
3737
3838
3939 func staticKey_canineIncubatorAddress () = "static_canineIncubatorAddress"
4040
4141
4242 func staticKey_canineBreederAddress () = "static_canineBreederAddress"
4343
4444
4545 func staticKey_accBoosterAddress () = "static_accBoosterAddress"
4646
4747
4848 func staticKey_couponsAddress () = "static_couponsAddress"
4949
5050
5151 func staticKey_burnAddress () = "static_burnAddress"
5252
5353
5454 func staticKey_extraFee () = "static_extraFee"
5555
5656
5757 func staticKey_feeAggregator () = "static_feeAggregator"
5858
5959
6060 let keyGlobalEarned = "global_earnings"
6161
6262 func staticKey_perchFee () = "static_caninePerchFee"
6363
6464
6565 func totalStakedKey () = "total_staked"
6666
6767
6868 func staticKey_canineRebirthAddress () = "static_canineRebirthAddress"
6969
7070
7171 func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
7272
7373
7474 func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId()))
7575
7676
7777 func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineIncubatorAddress())))
7878
7979
8080 func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineBreederAddress())))
8181
8282
8383 func getAccBoosterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_accBoosterAddress())))
8484
8585
8686 func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress())))
8787
8888
8989 func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress())))
9090
9191
9292 func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator())))
9393
9494
9595 func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress())))
9696
9797
9898 func getNodeAccount () = addressFromStringValue(valueOrErrorMessage(getString(getOracle(), "static_nodeAddress"), "node_address not found!"))
9999
100100
101101 func getCanieRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineRebirthAddress())))
102102
103103
104104 func keyLastCheckInterest (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_lastCheckInterest")
105105
106106
107107 func assetFarmingPower (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_farmingPower")
108108
109109
110110 func rewardClaimedKey (address,asset) = (((address + "_asset_") + asset) + "_claimed")
111111
112112
113113 func totalStakedUserKey (address) = ("total_staked_" + address)
114114
115115
116116 let stakeId = tryGetString("last_stake_id")
117117
118118 let RefererReward = 5
119119
120120 func checkAdditionalPayment (payment) = if (isDefined(payment.assetId))
121121 then throw("FCAP: Please attach waves")
122122 else {
123123 let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee())
124124 if ((payment.amount != feeAmount))
125125 then throw((("FCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets"))
126126 else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)]
127127 }
128128
129129
130130 func tryGetInteger (key) = match getInteger(this, key) {
131131 case b: Int =>
132132 b
133133 case _ =>
134134 0
135135 }
136136
137137
138138 func asInt (value) = match value {
139139 case int: Int =>
140140 int
141141 case _ =>
142142 throw("FAI: wrong type, expected: Int")
143143 }
144144
145145
146146 func asIntTuple (value) = match value {
147147 case int: (Int, Int) =>
148148 int
149149 case _ =>
150150 throw("FAI: wrong type, expected: (Int,Int)")
151151 }
152152
153153
154154 func asString (value) = match value {
155155 case string: String =>
156156 string
157157 case _ =>
158158 throw("FAS: wrong type, expected: String")
159159 }
160160
161161
162162 func tryGetBoolean (key) = match getBoolean(this, key) {
163163 case b: Boolean =>
164164 b
165165 case _ =>
166166 false
167167 }
168168
169169
170170 func tryGetBooleanExternal (address,key) = match getBoolean(address, key) {
171171 case b: Boolean =>
172172 b
173173 case _ =>
174174 false
175175 }
176176
177177
178178 func getAssetOrigin (generation) = if ((generation == "G"))
179179 then getIncubatorAddress()
180180 else getBreederAddress()
181181
182182
183183 func getAssetRarity (genotype,generation) = {
184184 let quantity = valueOrErrorMessage(getInteger(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")), (("stats_" + genotype) + "_quantity not found"))
185185 let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR)
186186 if ((power > 0))
187187 then power
188188 else 2
189189 }
190190
191191
192192 func getAssetRarityComplete (isJackpot,assetName) = {
193193 let rarity = if (isJackpot)
194194 then 100
195195 else {
196196 let generation = take(takeRight(assetName, 2), 1)
197197 let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil))
198198 if ((farmGen == farmGen))
199199 then getAssetRarity(farmGen, generation)
200200 else throw("Strict value is not equal to itself.")
201201 }
202202 rarity
203203 }
204204
205205
206206 func updateFarmingPower (address,asset) = {
207207 let totalStaked = tryGetInteger(totalStakedKey())
208208 let totalStakedUser = tryGetInteger(totalStakedUserKey(address))
209209 let currentFP = tryGetInteger(assetFarmingPower(address, asset))
210210 let newFP = asIntTuple(invoke(this, "calculateFarmPower", [asset, address], nil))
211211 if ((currentFP != 0))
212212 then [IntegerEntry(totalStakedKey(), ((totalStaked - currentFP) + newFP._1)), IntegerEntry(totalStakedUserKey(address), ((totalStakedUser - currentFP) + newFP._1)), IntegerEntry(assetFarmingPower(address, asset), newFP._1)]
213213 else nil
214214 }
215215
216216
217217 func claimStakingResult (address,asset,recalc) = {
218218 let currentInterest = tryGetInteger(keyGlobalLastInterest)
219219 let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address, asset))
220220 let stakedAmount = tryGetInteger(assetFarmingPower(address, asset))
221221 let fpUpdate = if (recalc)
222222 then updateFarmingPower(address, asset)
223223 else nil
224224 if ((fpUpdate == fpUpdate))
225225 then {
226226 let reward = if ((lastCheckInterest > 0))
227227 then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale)
228228 else 0
229229 $Tuple2(([ScriptTransfer(addressFromStringValue(address), reward, unit), IntegerEntry(keyLastCheckInterest(address, asset), currentInterest), IntegerEntry(rewardClaimedKey(address, asset), (tryGetInteger(rewardClaimedKey(address, asset)) + reward))] ++ fpUpdate), reward)
230230 }
231231 else throw("Strict value is not equal to itself.")
232232 }
233233
234234
235235 func asBoolean (value) = match value {
236236 case boolean: Boolean =>
237237 boolean
238238 case _ =>
239239 throw("FAB: wrong type, expected: Boolean")
240240 }
241241
242242
243243 func calculatePerchPrice (address) = {
244244 let hasArtefactStaked = tryGetStringExternal(getAccBoosterAddress(), (("ART-XMISTL_" + address) + "_owner"))
245245 let perchPrice = getIntegerValue(getOracle(), staticKey_perchFee())
246246 if ((hasArtefactStaked == ""))
247247 then perchPrice
248248 else ((perchPrice / 10) * 9)
249249 }
250250
251251
252252 func stakeUnstake (stake,amount) = if ((amount > 0))
253253 then {
254254 let leasingAmount = valueOrElse(getInteger(this, "leasing_amount"), 0)
255255 let newLeaseAmount = if (stake)
256256 then (leasingAmount + amount)
257257 else (leasingAmount - amount)
258258 let newLease = Lease(getNodeAccount(), newLeaseAmount)
259259 let newLeaseId = calculateLeaseId(newLease)
260260 let data = [newLease, StringEntry("last_stake_id", toBase58String(newLeaseId)), IntegerEntry("leasing_amount", newLeaseAmount)]
261261 if ((stakeId != ""))
262262 then ([LeaseCancel(fromBase58String(stakeId))] ++ data)
263263 else data
264264 }
265265 else nil
266266
267267
268268 func handleStakingTopUp (totalAmount) = {
269269 let compoundAmount = (totalAmount / 2)
270270 let payoutAmount = (totalAmount - compoundAmount)
271271 let currentInterest = tryGetInteger(keyGlobalLastInterest)
272272 let totalStakedAmount = tryGetInteger(totalStakedKey())
273273 let interestDelta = if ((totalStakedAmount > 0))
274274 then fraction(payoutAmount, Scale, totalStakedAmount)
275275 else 0
276276 ([IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + payoutAmount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta)), IntegerEntry("global_WAVES_balance", (tryGetInteger("global_WAVES_balance") + compoundAmount))] ++ stakeUnstake(true, compoundAmount))
277277 }
278278
279279
280280 @Callable(i)
281281 func stakeAll () = stakeUnstake(true, (tryGetInteger("global_WAVES_balance") - tryGetInteger("leasing_amount")))
282282
283283
284284
285285 @Callable(i)
286286 func calculateFarmPower (assetId,bonusAddress) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreederAddress()))
287287 then true
288288 else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress())))
289289 then throw("This does not seem like a valid Duck!")
290290 else {
291291 let assetName = value(assetInfo(fromBase58String(assetId))).name
292292 let gen = takeRight(assetName, 1)
293293 let isJackpot = (takeRight(assetName, 1) == "U")
294294 let rarity = getAssetRarityComplete(isJackpot, assetName)
295295 let genotype = split(dropRight(drop(assetName, 5), 3), "")
296296 func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen)))
297297 then (accum :+ nextGen)
298298 else accum
299299
300300 let uniqueList = {
301301 let $l = genotype
302302 let $s = size($l)
303303 let $acc0 = nil
304304 func $f0_1 ($a,$i) = if (($i >= $s))
305305 then $a
306306 else uniqueArrayFilter($a, $l[$i])
307307
308308 func $f0_2 ($a,$i) = if (($i >= $s))
309309 then $a
310310 else throw("List size exceeds 8")
311311
312312 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
313313 }
314314 let totalGenes = if ((gen == "U"))
315315 then 8
316316 else size(uniqueList)
317317 let power = pow(15, 1, totalGenes, 0, 2, DOWN)
318318 let multiplier = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3))
319319 let basePower = tryGetInteger((assetId + "_basePower"))
320320 let finalPower = if ((basePower > 0))
321321 then basePower
322322 else ((power * multiplier) / 100)
323323 let finalPowerRarity = ((finalPower * rarity) / 100)
324324 let farmBoost = 0
325325 if ((farmBoost == farmBoost))
326326 then {
327327 let finalPowerRarityBoost = (finalPowerRarity + ((finalPowerRarity * farmBoost) / 100))
328328 $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower))
329329 }
330330 else throw("Strict value is not equal to itself.")
331331 }
332332
333333
334334
335335 @Callable(i)
336336 func configureOracle (oracle) = if ((i.caller != this))
337337 then throw("FCO: admin only")
338338 else [StringEntry(staticKey_oracleAddress(), oracle)]
339339
340340
341341
342342 @Callable(i)
343343 func buyPerch (colorI,refererAddress) = {
344344 let validPayment = checkAdditionalPayment(i.payments[0])
345345 if ((validPayment == validPayment))
346346 then {
347347 let color = if ((colorI == "U"))
348348 then "B"
349349 else colorI
350350 if ((0 > value(indexOf(["A", "B", "C", "D"], color))))
351351 then throw("you need to set color properly")
352352 else {
353353 let exactPrice = calculatePerchPrice(toString(i.caller))
354354 let leftToPay = if ((i.originCaller == i.caller))
355355 then {
356356 let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [exactPrice], nil))
357357 if ((amountPaidByCoupons == amountPaidByCoupons))
358358 then (exactPrice - amountPaidByCoupons)
359359 else throw("Strict value is not equal to itself.")
360360 }
361361 else exactPrice
362362 let payment = if ((leftToPay != 0))
363363 then {
364364 let firstPayment = if ((size(i.payments) == 2))
365365 then value(i.payments[1])
366366 else value(i.payments[0])
367367 if ((firstPayment.assetId != getEggAssetId()))
368368 then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId())))
369369 else if ((firstPayment.amount != leftToPay))
370370 then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller)))
371371 else {
372372 let refererRewardForPerch = fraction(leftToPay, 5, 100)
373373 let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)]))
374374 if ((refCall == refCall))
375375 then {
376376 let toBurn = if (refCall)
377377 then (leftToPay - refererRewardForPerch)
378378 else leftToPay
379379 let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)])
380380 if ((burnCall == burnCall))
381381 then leftToPay
382382 else throw("Strict value is not equal to itself.")
383383 }
384384 else throw("Strict value is not equal to itself.")
385385 }
386386 }
387387 else 0
388388 if ((payment == payment))
389389 then {
390390 let perchAmountKey = ((("address_" + toString(i.caller)) + "_perchesAvailable_") + color)
391391 let perchAmount = tryGetInteger(perchAmountKey)
392392 ([IntegerEntry(perchAmountKey, (perchAmount + 1))] ++ validPayment)
393393 }
394394 else throw("Strict value is not equal to itself.")
395395 }
396396 }
397397 else throw("Strict value is not equal to itself.")
398398 }
399399
400400
401401
402402 @Callable(i)
403403 func addFreePerch (address,color,amount) = if ((0 > value(indexOf(["A", "B", "C", "D"], color))))
404404 then throw("you need to set color properly")
405405 else if (if ((i.caller != this))
406406 then (i.caller != getCanieRebirthAddress())
407407 else false)
408408 then throw("rebirth and admin only")
409409 else {
410410 let perchAmountKey = ((("address_" + address) + "_perchesAvailable_") + color)
411411 let perchAmount = tryGetInteger(perchAmountKey)
412412 $Tuple2([IntegerEntry(perchAmountKey, (perchAmount + amount))], "")
413413 }
414414
415415
416416
417417 @Callable(i)
418418 func stakeNFT (jColor) = {
419419 let validPayment = checkAdditionalPayment(i.payments[0])
420420 if ((validPayment == validPayment))
421421 then {
422422 let pmt = value(i.payments[1])
423423 let assetId = value(pmt.assetId)
424424 let assetName = value(value(assetInfo(assetId)).name)
425425 let isJackpot = (takeRight(assetName, 1) == "U")
426426 let address = toString(i.caller)
427427 let perchAddress = address
428428 let color = if (isJackpot)
429429 then jColor
430430 else takeRight(assetName, 1)
431431 let perches = {
432432 let availablePerches = tryGetInteger(((("address_" + perchAddress) + "_perchesAvailable_") + color))
433433 if ((0 >= availablePerches))
434434 then throw(("no perches available for the color " + color))
435435 else [IntegerEntry(((("address_" + perchAddress) + "_perchesAvailable_") + color), (availablePerches - 1)), StringEntry((((("address_" + address) + "_asset_") + toBase58String(assetId)) + "_perchColor"), color)]
436436 }
437437 if ((perches == perches))
438438 then if ((pmt.amount != 1))
439439 then throw("NFT is not attached")
440440 else {
441441 let farmingPower = asIntTuple(invoke(this, "calculateFarmPower", [toBase58String(assetId), toString(i.originCaller)], nil))
442442 if ((farmingPower == farmingPower))
443443 then {
444444 let result = claimStakingResult(address, toBase58String(assetId), false)
445445 if ((result == result))
446446 then ((([IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) + farmingPower._1)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) + farmingPower._1)), StringEntry((toBase58String(assetId) + "_owner"), address), StringEntry((toBase58String(assetId) + "_original_caller"), toString(i.originCaller)), IntegerEntry(assetFarmingPower(address, toBase58String(assetId)), farmingPower._1), IntegerEntry((toBase58String(assetId) + "_basePower"), farmingPower._2)] ++ validPayment) ++ perches) ++ result._1)
447447 else throw("Strict value is not equal to itself.")
448448 }
449449 else throw("Strict value is not equal to itself.")
450450 }
451451 else throw("Strict value is not equal to itself.")
452452 }
453453 else throw("Strict value is not equal to itself.")
454454 }
455455
456456
457457
458458 @Callable(i)
459459 func unstakeNFT (asset) = {
460460 let address = toString(i.caller)
461461 if ((tryGetString((asset + "_owner")) != toString(i.caller)))
462462 then throw("You don't own this duck!!")
463463 else {
464464 let result = claimStakingResult(address, asset, false)
465465 if ((result == result))
466466 then {
467467 let validPayment = checkAdditionalPayment(i.payments[0])
468468 if ((validPayment == validPayment))
469469 then {
470470 let color = tryGetString((((("address_" + address) + "_asset_") + asset) + "_perchColor"))
471471 let assetFP = tryGetInteger(assetFarmingPower(address, asset))
472472 if ((assetFP == assetFP))
473473 then $Tuple2((([IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) - assetFP)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) - assetFP)), DeleteEntry((asset + "_owner")), DeleteEntry(assetFarmingPower(address, asset)), DeleteEntry((((("address_" + address) + "_asset_") + asset) + "_perchColor")), DeleteEntry((asset + "_original_caller")), DeleteEntry((asset + "_use_origin")), DeleteEntry((asset + "_without_perch")), ScriptTransfer(Address(fromBase58String(address)), 1, fromBase58String(asset)), IntegerEntry(((("address_" + address) + "_perchesAvailable_") + color), (tryGetInteger(((("address_" + address) + "_perchesAvailable_") + color)) + 1))] ++ validPayment) ++ result._1), result._2)
474474 else throw("Strict value is not equal to itself.")
475475 }
476476 else throw("Strict value is not equal to itself.")
477477 }
478478 else throw("Strict value is not equal to itself.")
479479 }
480480 }
481481
482482
483483
484484 @Callable(i)
485485 func topUpReward () = {
486486 let firstPayment = value(i.payments[0])
487487 if ((firstPayment.assetId != unit))
488488 then throw("FBP: You can attach only Waves")
489489 else {
490490 let resHandleStaking = handleStakingTopUp(firstPayment.amount)
491491 $Tuple2(resHandleStaking, true)
492492 }
493493 }
494494
495495
496496
497497 @Callable(i)
498498 func addWavesAndStakeMore () = {
499499 let firstPayment = value(i.payments[0])
500500 if ((firstPayment.assetId != unit))
501501 then throw("FBP: You can attach only Waves")
502502 else ([IntegerEntry("global_WAVES_balance", (tryGetInteger("global_WAVES_balance") + firstPayment.amount))] ++ stakeUnstake(true, firstPayment.amount))
503503 }
504504
505505
506506
507507 @Callable(i)
508508 func claimReward (assetId) = {
509509 let validPayment = checkAdditionalPayment(i.payments[0])
510510 if ((validPayment == validPayment))
511511 then if ((tryGetString((assetId + "_owner")) != toString(i.caller)))
512512 then throw((("You don't own this duck (" + assetId) + ")!! "))
513513 else if ((size(i.payments) > 1))
514514 then throw("Please don't add extra payments")
515515 else {
516516 let owner = toString(i.caller)
517517 let result = claimStakingResult(owner, assetId, true)
518518 $Tuple2((validPayment ++ result._1), result._2)
519519 }
520520 else throw("Strict value is not equal to itself.")
521521 }
522522
523523
524524 @Verifier(tx)
525525 func verify () = if (isTestEnv())
526526 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
527527 else {
528528 let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
529529 let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8'
530530 let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3'
531531 let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
532532 then 1
533533 else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
534534 then 1
535535 else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
536536 then 1
537537 else 0
538538 let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
539539 then 1
540540 else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
541541 then 1
542542 else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
543543 then 1
544544 else 0
545545 let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
546546 then 1
547547 else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
548548 then 1
549549 else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
550550 then 1
551551 else 0
552552 let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
553553 match tx {
554554 case _ =>
555555 (signaturesCount >= 2)
556556 }
557557 }
558558

github/deemru/w8io/026f985 
50.70 ms