tx · CBrwz3KgCufGLQwWEBywDUhsvPkkikMp8Q7rw52zmqjM

3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ:  -0.01900000 Waves

2024.10.07 20:22 [3316717] smart account 3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ > SELF 0.00000000 Waves

{ "type": 13, "id": "CBrwz3KgCufGLQwWEBywDUhsvPkkikMp8Q7rw52zmqjM", "fee": 1900000, "feeAssetId": null, "timestamp": 1728321796339, "version": 2, "chainId": 84, "sender": "3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ", "senderPublicKey": "GhefFZdofgfUzRS6kfAZpyXdgER7eYvz5umnwJW1MWtc", "proofs": [ "2QAgwjrzLk3UQitnQ3gXmiGFr7PGeuGmhmoEbYTh34VDA5KFxkTiMZfdxy729t7GgiRUoH8UTeWiU9MjvNJPKrYA" ], "script": "base64:BgIkCAISAwoBCBIAEgMKAQgSBQoDCAgBEgYKBAgIAQESAwoBCBIAPQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWECAAEVdHJ5R2V0SW50ZWdlckV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDXRyeUdldEJvb2xlYW4BA2tleQQHJG1hdGNoMAkAoAgBBQNrZXkDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAUBYgcBDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBCWFzQm9vbGVhbgEFdmFsdWUEByRtYXRjaDAFBXZhbHVlAwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EB2Jvb2x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wkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAm+1lk0=", "height": 3316717, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: GumCjFkMm5ghE2tdDhZqd3JbHqMmtMTo7X8SMPhLA2Uu Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func tryGetStringExternal (address,key) = match getString(address, key) {
5+ case a: String =>
6+ a
7+ case _ =>
8+ ""
9+}
10+
11+
12+func tryGetIntegerExternal (address,key) = match getInteger(address, key) {
13+ case b: Int =>
14+ b
15+ case _ =>
16+ 0
17+}
18+
19+
20+func tryGetBoolean (key) = match getBoolean(key) {
21+ case b: Boolean =>
22+ b
23+ case _ =>
24+ false
25+}
26+
27+
28+func tryGetString (key) = tryGetStringExternal(this, key)
29+
30+
31+func asBoolean (value) = match value {
32+ case boolean: Boolean =>
33+ boolean
34+ case _ =>
35+ throw("BDA: wrong type, expected: Boolean")
36+}
37+
38+
39+func staticKey_oracleAddress () = "static_oracleAddress"
40+
41+
42+func staticKey_ducklingPrice () = "static_ducklingPrice"
43+
44+
45+func staticKey_eggAssetId () = "static_eggAssetId"
46+
47+
48+func staticKey_spiceAssetId () = "static_spiceAssetId"
49+
50+
51+func staticKey_rebirthAddress () = "static_rebirthAddress"
52+
53+
54+func staticKey_incubatorAddress () = "static_incubatorAddress"
55+
56+
57+func staticKey_couponsAddress () = "static_couponsAddress"
58+
59+
60+func staticKey_burnAddress () = "static_burnAddress"
61+
62+
63+func staticKey_refContractAddress () = "static_refContractAddress"
64+
65+
66+func staticKey_backendPubKey () = "static_backendPubKey"
67+
68+
69+func staticKey_extraFee () = "static_extraFee"
70+
71+
72+func staticKey_feeAggregator () = "static_feeAggregator"
73+
74+
75+func staticKey_turtleStakingAddress () = "static_turtleStakingAddress"
76+
77+
78+func staticKey_mutantFarmingAddress () = "static_mutantFarmingAddress"
79+
80+
81+func staticKey_canineRebirthAddress () = "static_canineRebirthAddress"
82+
83+
84+func staticKey_felineRebirthAddress () = "static_felineRebirthAddress"
85+
86+
87+func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
88+
89+
90+func getDucklingPrice () = tryGetIntegerExternal(getOracle(), staticKey_ducklingPrice())
91+
92+
93+func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId()))
94+
95+
96+func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId()))
97+
98+
99+func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress())))
100+
101+
102+func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress())))
103+
104+
105+func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress())))
106+
107+
108+func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress())))
109+
110+
111+func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress())))
112+
113+
114+func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator())))
115+
116+
117+func getTurtleStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleStakingAddress())))
118+
119+
120+func getMutantFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_mutantFarmingAddress())))
121+
122+
123+func getCanineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineRebirthAddress())))
124+
125+
126+func getFelineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineRebirthAddress())))
127+
128+
129+let backendPubKey = fromBase58String(getStringValue(getOracle(), staticKey_backendPubKey()))
130+
131+let DUCKLINGPRICE = 100000000
132+
133+let percentGrowthPrecision = 10000000000000000
134+
135+let oneSpicePrecsion = 100000000000000
136+
137+let KGlobalIssuedTimestamp = "global_issued_timestamp"
138+
139+let DUCKLINGPRICEOLD = 80000000
140+
141+let percentGrowthPrecisionOld = 10000000000000000
142+
143+func checkAdditionalPayment (payment) = if (isDefined(payment.assetId))
144+ then throw("BDCAP: Please attach waves")
145+ else {
146+ let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee())
147+ if ((payment.amount != feeAmount))
148+ then throw((("BDCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets"))
149+ else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)]
150+ }
151+
152+
153+func keyTotalFeedOld (ducklingId) = (("duckling_" + ducklingId) + "_feed")
154+
155+
156+func keyTotalFeed (ducklingId) = (("duckling_" + ducklingId) + "_feed_spice")
157+
158+
159+func keyTotalFeedUser (address) = (("user_" + address) + "_feed")
160+
161+
162+func keyAddressNonce (address) = (("address_" + address) + "_nonce")
163+
164+
165+func keyDucklingLevel (ducklingId) = (("duckling_" + ducklingId) + "_level")
166+
167+
168+func keyDucklingGrown (ducklingId) = (("duckling_" + ducklingId) + "_grown")
169+
170+
171+func keyStartPercentage (ducklingId) = (("duckling_" + ducklingId) + "_startPercentage")
172+
173+
174+func keyOwner (ducklingId) = (("duckling_" + ducklingId) + "_owner")
175+
176+
177+func keyBlacklisted (ducklingId) = (("duckling_" + ducklingId) + "_blacklisted")
178+
179+
180+func keyAmountOfAdultDuckling () = "adult_ducklings"
181+
182+
183+func tryGetInteger (key) = {
184+ let val = match getInteger(this, key) {
185+ case b: Int =>
186+ b
187+ case _ =>
188+ 0
189+ }
190+ val
191+ }
192+
193+
194+func getBool (key) = match getBoolean(this, key) {
195+ case b: Boolean =>
196+ b
197+ case _ =>
198+ false
199+}
200+
201+
202+func isTestEnv () = getBool("TESTENV")
203+
204+
205+func getDucklingPercentage (ducklingId) = {
206+ let percentageDuckling = tryGetInteger(keyStartPercentage(ducklingId))
207+ let base = if ((percentageDuckling != 0))
208+ then percentageDuckling
209+ else 5
210+ toBigInt((base * oneSpicePrecsion))
211+ }
212+
213+
214+func getCurrentLevelBigInt (ducklingId) = {
215+ let kDuckLevel = keyDucklingLevel(ducklingId)
216+ match getString(kDuckLevel) {
217+ case s: String =>
218+ parseBigIntValue(s)
219+ case _ =>
220+ match getBoolean((("duckling_" + ducklingId) + "_issuedByFeedCall")) {
221+ case b: Boolean =>
222+ if (if ((b == true))
223+ then (tryGetInteger(keyStartPercentage(ducklingId)) == 0)
224+ else false)
225+ then toBigInt(0)
226+ else getDucklingPercentage(ducklingId)
227+ case _ =>
228+ getDucklingPercentage(ducklingId)
229+ }
230+ }
231+ }
232+
233+
234+func calculateNewDucklingLevel (ducklingId,paymentAmount) = {
235+ let currentTs = lastBlock.timestamp
236+ let growth = (fraction(toBigInt(paymentAmount), toBigInt(percentGrowthPrecision), toBigInt(DUCKLINGPRICE)) / toBigInt(100))
237+ let currentLevel = getCurrentLevelBigInt(ducklingId)
238+ let newLevel = (currentLevel + growth)
239+ let result = toString(newLevel)
240+ $Tuple2(result, [("currentLevel=" + toString(currentLevel)), ("newLevel=" + toString(newLevel)), ("growth=" + toString(growth))])
241+ }
242+
243+
244+func getBackendProof (maxFeedAmount,userNonce,address) = makeString([toString(maxFeedAmount), toString(userNonce), address], ";")
245+
246+
247+func asInt (value) = match value {
248+ case int: Int =>
249+ int
250+ case _ =>
251+ throw("BAI: wrong type, expected: Int")
252+}
253+
254+
255+@Callable(i)
256+func configureOracle (oracle) = if ((i.caller != this))
257+ then throw("BCO: admin only")
258+ else [StringEntry(staticKey_oracleAddress(), oracle)]
259+
260+
261+
262+@Callable(i)
263+func calculateDucklingPriceTwoDecimals () = {
264+ let x = tryGetInteger(keyAmountOfAdultDuckling())
265+ let price = max([(1900 + pow(x, 0, 6, 1, 2, HALFUP)), 10000])
266+ $Tuple2([StringEntry("DEBUG_PRICE", toString(price))], price)
267+ }
268+
269+
270+
271+@Callable(i)
272+func buyDuckling (refererAddress) = {
273+ let feeValidate = checkAdditionalPayment(i.payments[0])
274+ if ((feeValidate == feeValidate))
275+ then {
276+ let exactPrice = getDucklingPrice()
277+ if ((50000000 > exactPrice))
278+ then throw("BBD: Invalid price from oracle!")
279+ else {
280+ let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [exactPrice], nil))
281+ if ((amountPaidByCoupons == amountPaidByCoupons))
282+ then {
283+ let leftToPay = (exactPrice - amountPaidByCoupons)
284+ let payment = if ((leftToPay != 0))
285+ then {
286+ let firstPayment = value(i.payments[1])
287+ if ((firstPayment.assetId != getEggAssetId()))
288+ then throw(("BBD: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId())))
289+ else if ((firstPayment.amount != leftToPay))
290+ then throw(("BBD: To buy a perch you currently need the following amount of EGGlets: " + toString(leftToPay)))
291+ else {
292+ let refererRewardForPerch = fraction(leftToPay, 5, 100)
293+ let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)]))
294+ if ((refCall == refCall))
295+ then {
296+ let toBurn = if (refCall)
297+ then (leftToPay - refererRewardForPerch)
298+ else leftToPay
299+ let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)])
300+ if ((burnCall == burnCall))
301+ then leftToPay
302+ else throw("Strict value is not equal to itself.")
303+ }
304+ else throw("Strict value is not equal to itself.")
305+ }
306+ }
307+ else 0
308+ if ((payment == payment))
309+ then {
310+ let ducklingAssetId = invoke(this, "issueFreeDuckling", [toString(i.originCaller), toBase58String(i.transactionId), 0], nil)
311+ if ((ducklingAssetId == ducklingAssetId))
312+ then feeValidate
313+ else throw("Strict value is not equal to itself.")
314+ }
315+ else throw("Strict value is not equal to itself.")
316+ }
317+ else throw("Strict value is not equal to itself.")
318+ }
319+ }
320+ else throw("Strict value is not equal to itself.")
321+ }
322+
323+
324+
325+@Callable(i)
326+func issueFreeDuckling (address,txIdStr,percentage) = if (if (if (if ((i.caller != this))
327+ then (i.caller != getRebirthAddress())
328+ else false)
329+ then (i.caller != getCanineRebirthAddress())
330+ else false)
331+ then (i.caller != getFelineRebirthAddress())
332+ else false)
333+ then throw("BIFD: You can't issue free duckling")
334+ else {
335+ let asset = Issue("BABY-11111111-GZ", "", 1, 0, false, unit, height)
336+ let assetId = calculateAssetId(asset)
337+ $Tuple2([StringEntry((((address + "_") + txIdStr) + "_di"), toBase58String(assetId)), IntegerEntry("stats_amount", (tryGetInteger("stats_amount") + 1)), IntegerEntry(keyStartPercentage(toBase58String(assetId)), percentage), StringEntry(keyOwner(toBase58String(assetId)), address), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId))
338+ }
339+
340+
341+
342+@Callable(i)
343+func feedDuckling (ducklingId,backendSignature,maxFeedAmount,userNonce) = {
344+ let feeValidate = checkAdditionalPayment(i.payments[1])
345+ if ((feeValidate == feeValidate))
346+ then {
347+ let addressString = toString(i.caller)
348+ let backendProof = getBackendProof(maxFeedAmount, userNonce, addressString)
349+ let kAddressNonce = keyAddressNonce(addressString)
350+ let currentNonce = tryGetInteger(kAddressNonce)
351+ let realDucklingId = if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
352+ then throw("BFD: Invalid proof from backend")
353+ else if (if ((size(i.payments) != 2))
354+ then true
355+ else (value(i.payments[0]).assetId != getSpiceAssetId()))
356+ then throw("BFD: Bad payment attached (asset[s] or amount)")
357+ else if (getBool(keyDucklingGrown(ducklingId)))
358+ then throw("BFD: Duckling is already grown")
359+ else if ((userNonce != (currentNonce + 1)))
360+ then throw(((("BFD: User Nonce should be " + toString(currentNonce)) + " + 1, while received ") + toString(userNonce)))
361+ else {
362+ let blackListed = tryGetBoolean(keyBlacklisted(ducklingId))
363+ if (blackListed)
364+ then throw("BFD: Can not feed blacklisted duckling!")
365+ else if ((ducklingId == ""))
366+ then throw("BFD: Please buy a duckling first!")
367+ else {
368+ let ducklingIdCheck = value(assetInfo(fromBase58String(ducklingId)))
369+ if ((assetBalance(i.caller, ducklingIdCheck.id) != 1))
370+ then throw("BFD: You're not the owner of the duckling")
371+ else if ((ducklingIdCheck.issuer != this))
372+ then throw("BFD: Cant find duckling with such id")
373+ else toBase58String(ducklingIdCheck.id)
374+ }
375+ }
376+ let currentPayment = value(i.payments[0]).amount
377+ let kNewLevel = keyDucklingLevel(realDucklingId)
378+ let kTotalFeed = keyTotalFeed(realDucklingId)
379+ let kTotalFeedUser = keyTotalFeedUser(addressString)
380+ let totalFeed = tryGetInteger(kTotalFeed)
381+ let totalFeedUser = tryGetInteger(kTotalFeedUser)
382+ let kFeedTxStats = ((("duckling_" + realDucklingId) + "_stat_") + toString(lastBlock.timestamp))
383+ if ((currentPayment > maxFeedAmount))
384+ then throw(("BFD: Cannot feed duckling for such amount, max feed amount is: " + toString(maxFeedAmount)))
385+ else {
386+ let calculateResults = calculateNewDucklingLevel(realDucklingId, currentPayment)
387+ let ducklingOwner = tryGetString(keyOwner(realDucklingId))
388+ let topup = invoke(getTurtleStakingAddress(), "topUpReward", nil, [AttachedPayment(getSpiceAssetId(), (currentPayment / 2))])
389+ if ((topup == topup))
390+ then {
391+ let recordAction = if ((currentPayment >= 1000000000))
392+ then invoke(getCouponsAddress(), "recordAction", ["FEEDDUCKLING10"], nil)
393+ else nil
394+ if ((recordAction == recordAction))
395+ then if (if ((ducklingOwner != toString(i.caller)))
396+ then !(isTestEnv())
397+ else false)
398+ then ([BooleanEntry(keyBlacklisted(realDucklingId), true)] ++ feeValidate)
399+ else ([IntegerEntry(kAddressNonce, (currentNonce + 1)), IntegerEntry(kTotalFeed, (totalFeed + currentPayment)), IntegerEntry(kTotalFeedUser, (totalFeedUser + currentPayment)), IntegerEntry(kFeedTxStats, currentPayment), StringEntry(kNewLevel, calculateResults._1), StringEntry((kFeedTxStats + "_debug"), makeString(calculateResults._2, ";")), Burn(getSpiceAssetId(), (currentPayment / 2))] ++ feeValidate)
400+ else throw("Strict value is not equal to itself.")
401+ }
402+ else throw("Strict value is not equal to itself.")
403+ }
404+ }
405+ else throw("Strict value is not equal to itself.")
406+ }
407+
408+
409+
410+@Callable(i)
411+func fixLevels (ducklingIds) = if (if ((i.callerPublicKey != base58'GDxBbsDRmeY39quNrDsTXKJzFWbQVtjxHseF4ikxZ7n9'))
412+ then (i.caller != this)
413+ else false)
414+ then throw("BFL: Not authorized")
415+ else {
416+ let ducklingIdsList = value(split(ducklingIds, ","))
417+ func handleId (acc,id) = {
418+ let kTotalFeed = keyTotalFeed(id)
419+ let totalFeed = tryGetInteger(kTotalFeed)
420+ let kTotalFeedOld = keyTotalFeedOld(id)
421+ let totalFeedOld = tryGetInteger(kTotalFeedOld)
422+ let kNewLevel = keyDucklingLevel(id)
423+ let startingLevel = match getBoolean((("duckling_" + id) + "_issuedByFeedCall")) {
424+ case b: Boolean =>
425+ if (if ((b == true))
426+ then (tryGetInteger(keyStartPercentage(id)) == 0)
427+ else false)
428+ then toBigInt(0)
429+ else getDucklingPercentage(id)
430+ case _ =>
431+ getDucklingPercentage(id)
432+ }
433+ let growth = fraction(toBigInt((totalFeed / 100)), toBigInt(percentGrowthPrecision), toBigInt(DUCKLINGPRICE))
434+ let growthOld = if ((totalFeedOld != 0))
435+ then fraction(toBigInt(totalFeedOld), toBigInt(percentGrowthPrecisionOld), toBigInt(DUCKLINGPRICEOLD))
436+ else toBigInt(0)
437+ (acc ++ [StringEntry(kNewLevel, toString(((startingLevel + growth) + growthOld))), StringEntry("DEBUG", ((((toString(startingLevel) + " ") + toString(growth)) + " ") + toString(growthOld)))])
438+ }
439+
440+ let $l = ducklingIdsList
441+ let $s = size($l)
442+ let $acc0 = nil
443+ func $f0_1 ($a,$i) = if (($i >= $s))
444+ then $a
445+ else handleId($a, $l[$i])
446+
447+ func $f0_2 ($a,$i) = if (($i >= $s))
448+ then $a
449+ else throw("List size exceeds 20")
450+
451+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
452+ }
453+
454+
455+
456+@Callable(i)
457+func turnDucklingIntoDuck () = {
458+ let feeValidate = checkAdditionalPayment(i.payments[1])
459+ if ((feeValidate == feeValidate))
460+ then {
461+ let address = toString(i.caller)
462+ let txId = toBase58String(i.transactionId)
463+ let lastIssuedDucklingTs = tryGetInteger(KGlobalIssuedTimestamp)
464+ let fiveMinInMs = ((1 * 30) * 1000)
465+ let timeDiff = (lastBlock.timestamp - (lastIssuedDucklingTs + fiveMinInMs))
466+ if (if ((lastIssuedDucklingTs > 0))
467+ then (0 > timeDiff)
468+ else false)
469+ then throw((("BTD: Can issue ducklings only once per 30s, please wait for " + toString(fraction(timeDiff, 1, 1000))) + " sec."))
470+ else if ((size(i.payments) != 2))
471+ then throw("BTD: Bad payment attached (asset[s] or amount)")
472+ else if ((i.payments[0].amount != 1))
473+ then throw("BTD: Please attach a nft!")
474+ else {
475+ let pmt = value(assetInfo(value(value(i.payments[0]).assetId)))
476+ let blackListed = tryGetBoolean(keyBlacklisted(toBase58String(pmt.id)))
477+ if (blackListed)
478+ then throw("BTD: Can not convert blacklisted duckling!")
479+ else {
480+ let adultPriceCall = asInt(invoke(this, "calculateDucklingPriceTwoDecimals", nil, nil))
481+ if ((adultPriceCall == adultPriceCall))
482+ then {
483+ let normalizedPrice = fraction(adultPriceCall, oneSpicePrecsion, 100)
484+ if ((toBigInt(normalizedPrice) > getCurrentLevelBigInt(toBase58String(pmt.id))))
485+ then throw("BTD: Duckling is not grown yet...")
486+ else if ((pmt.issuer != this))
487+ then throw("BTD: Can use only ducklings from this dApp")
488+ else {
489+ let call = invoke(getIncubatorAddress(), "startDuckHatching", [""], nil)
490+ if ((call == call))
491+ then {
492+ let kDucklingGrown = keyDucklingGrown(toBase58String(pmt.id))
493+ ([BooleanEntry(kDucklingGrown, true), IntegerEntry(KGlobalIssuedTimestamp, lastBlock.timestamp), IntegerEntry(keyAmountOfAdultDuckling(), (tryGetInteger(keyAmountOfAdultDuckling()) + 1))] ++ feeValidate)
494+ }
495+ else throw("Strict value is not equal to itself.")
496+ }
497+ }
498+ else throw("Strict value is not equal to itself.")
499+ }
500+ }
501+ }
502+ else throw("Strict value is not equal to itself.")
503+ }
504+
505+
506+@Verifier(tx)
507+func verify () = if (isTestEnv())
508+ then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
509+ else {
510+ let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
511+ let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8'
512+ let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3'
513+ let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
514+ then 1
515+ else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
516+ then 1
517+ else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
518+ then 1
519+ else 0
520+ let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
521+ then 1
522+ else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
523+ then 1
524+ else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
525+ then 1
526+ else 0
527+ let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
528+ then 1
529+ else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
530+ then 1
531+ else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
532+ then 1
533+ else 0
534+ let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
535+ match tx {
536+ case _ =>
537+ (signaturesCount >= 2)
538+ }
539+ }
540+

github/deemru/w8io/026f985 
25.07 ms