tx · A7iMdoRVk2SCwHCwEtQqb4TgepQuKq9Zj6NKAdPJD6Sb

3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5:  -0.01900000 Waves

2024.11.01 19:39 [3352711] smart account 3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5 > SELF 0.00000000 Waves

{ "type": 13, "id": "A7iMdoRVk2SCwHCwEtQqb4TgepQuKq9Zj6NKAdPJD6Sb", "fee": 1900000, "feeAssetId": null, "timestamp": 1730479164459, "version": 2, "chainId": 84, "sender": "3N6PvAL6whpaLE48xjeZbmU7vRWQmuz8AA5", "senderPublicKey": "3ZB9kd3fTB7j5xvuxZe67A7aT4cNTs2gUk1tyFaCdWJ6", "proofs": [ "3MCe5TcySBP55Y7ermj7P7eM6Esbw4QDDHgKNkt4p9gLzsCRKKnLTxDYWREUdvSSZmkiwArcYcaBEcsMLY1tTkkw" ], "script": "base64:BgIWCAISAwoBCBIDCgEIEgMKAQgSAwoBCDABFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABEXRyeUdldEludEV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFhBQckbWF0Y2gwBQFhCQACAQIbUlRHSUU6IFNvbWV0aGluZyB3ZW50IHdyb25nAQlhc0Jvb2xlYW4BBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgdCb29sZWFuBAdib29sZWFuBQckbWF0Y2gwBQdib29sZWFuCQACAQIiRkFCOiB3cm9uZyB0eXBlLCBleHBlY3RlZDogQm9vbGVhbgEMdHJ5R2V0U3RyaW5nAQNrZXkJARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIFBHRoaXMFA2tleQAQZGVsY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nR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCWZpcnN0VXNlcgABAAAEEHNlY29uZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAo677bE=", "height": 3352711, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AjUbuc9yNo62LUB39MsGxKBZkHyfg3GtfuQuQWyTu7gV Next: 56XrT1RJsvEiWBSyi8XFbe73xbnuVTuEp1weMNWgpuSj Diff:
OldNewDifferences
186186
187187
188188 func getRandomWin (tx,finishHeight,assetRarity) = {
189- let phoenixOptions = (PHOENIXBASEOPTIONS - fraction((PHOENIXBASEOPTIONS / 2), assetRarity, 100))
190- let jackpotRandom = getRandomNumber(phoenixOptions, tx, finishHeight, 1)
189+ let jackpotRandom = getRandomNumber(10, tx, finishHeight, 1)
191190 if ((jackpotRandom == 1))
192191 then "phoenix"
193192 else {
351350 }
352351 else if ((win == "phoenix"))
353352 then {
354- let call = invoke(getIncubatorAddress(), "issueJackpot", [address, txId, valueOrElse(getString("JACKPOT_NAME"), "WWWWWWWP")], nil)
353+ let call = invoke(getIncubatorAddress(), "issueJackpot", [address, txId, "WWWWHWTF"], nil)
355354 if ((call == call))
356355 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))]
357356 else throw("Strict value is not equal to itself.")
451450 else 0
452451 if ((payment == payment))
453452 then {
454- let $t01378413833 = getAssetFarmingPower(assetId)
455- let gen = $t01378413833._1
456- let rarity = $t01378413833._2
453+ let $t01380913858 = getAssetFarmingPower(assetId)
454+ let gen = $t01380913858._1
455+ let rarity = $t01380913858._2
457456 let call = invoke(getOrigin(assetId), "reduceRarity", [toBase58String(assetId), gen], nil)
458457 if ((call == call))
459458 then ([IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + delayForHatching)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetRarity"), rarity), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), toBase58String(assetId))] ++ validPayment)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func tryGetStringExternal (address,key) = match getString(address, key) {
55 case a: String =>
66 a
77 case _ =>
88 ""
99 }
1010
1111
1212 func tryGetIntExternal (address,key) = match getInteger(address, key) {
1313 case a: Int =>
1414 a
1515 case _ =>
1616 throw("RTGIE: Something went wrong")
1717 }
1818
1919
2020 func asBoolean (value) = match value {
2121 case boolean: Boolean =>
2222 boolean
2323 case _ =>
2424 throw("FAB: wrong type, expected: Boolean")
2525 }
2626
2727
2828 func tryGetString (key) = tryGetStringExternal(this, key)
2929
3030
3131 let delayForHatching = 2
3232
3333 func staticKey_oracleAddress () = "static_oracleAddress"
3434
3535
3636 func staticKey_eggAssetId () = "static_eggAssetId"
3737
3838
3939 func staticKey_incubatorAddress () = "static_incubatorAddress"
4040
4141
4242 func staticKey_breederAddress () = "static_breederAddress"
4343
4444
4545 func staticKey_farmingAddress () = "static_farmingAddressNew"
4646
4747
4848 func staticKey_babyDuckAddress () = "static_babyDuckAddress"
4949
5050
5151 func staticKey_gameDappAddress () = "static_gameDappAddress"
5252
5353
5454 func staticKey_itemsAddress () = "static_itemsAddress"
5555
5656
5757 func staticKey_couponsAddress () = "static_couponsAddress"
5858
5959
6060 func staticKey_huntAddress () = "static_huntAddress"
6161
6262
6363 func staticKey_burnAddress () = "static_burnAddress"
6464
6565
6666 func staticKey_refContractAddress () = "static_refContractAddress"
6767
6868
6969 func staticKey_extraFee () = "static_extraFee"
7070
7171
7272 func staticKey_feeAggregator () = "static_feeAggregator"
7373
7474
7575 func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
7676
7777
7878 func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId()))
7979
8080
8181 func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress())))
8282
8383
8484 func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress())))
8585
8686
8787 func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_farmingAddress())))
8888
8989
9090 func getBabyDuckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckAddress())))
9191
9292
9393 func getGameDappAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_gameDappAddress())))
9494
9595
9696 func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress())))
9797
9898
9999 func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress())))
100100
101101
102102 func getHuntAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_huntAddress())))
103103
104104
105105 func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress())))
106106
107107
108108 func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress())))
109109
110110
111111 func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator())))
112112
113113
114114 func checkAdditionalPayment (payment) = if (isDefined(payment.assetId))
115115 then throw("RCAP: Please attach waves")
116116 else {
117117 let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee())
118118 if ((payment.amount != feeAmount))
119119 then throw((("RCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets"))
120120 else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)]
121121 }
122122
123123
124124 let PHOENIXBASEOPTIONS = 1000
125125
126126 func tryGetInteger (key) = match getInteger(this, key) {
127127 case b: Int =>
128128 b
129129 case _ =>
130130 0
131131 }
132132
133133
134134 func asString (value) = match value {
135135 case s: String =>
136136 s
137137 case s: Int =>
138138 throw("wrong type, expected: String, got: Int")
139139 case s: Unit =>
140140 throw("wrong type, expected: String, got: Unit")
141141 case _ =>
142142 throw("wrong type, expected: String")
143143 }
144144
145145
146146 let feeAmount = tryGetInteger("currentPrice")
147147
148148 func getAmountOrClear (amount) = if (contains(amount, "0"))
149149 then ""
150150 else amount
151151
152152
153153 func getAssetOrigin (generation) = if ((generation == "G"))
154154 then getIncubatorAddress()
155155 else getBreederAddress()
156156
157157
158158 func getAssetRarity (genotype,generation) = {
159159 let quantity = getIntegerValue(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity"))
160160 let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR)
161161 if ((power > 0))
162162 then power
163163 else 2
164164 }
165165
166166
167167 func getAssetFarmingPower (assetId) = if (if ((value(assetInfo(assetId)).issuer == getBreederAddress()))
168168 then true
169169 else (value(assetInfo(assetId)).issuer == getIncubatorAddress()))
170170 then {
171171 let assetName = value(assetInfo(assetId)).name
172172 let generation = take(takeRight(assetName, 2), 1)
173173 let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil))
174174 if ((farmGen == farmGen))
175175 then $Tuple2(farmGen, getAssetRarity(farmGen, generation))
176176 else throw("Strict value is not equal to itself.")
177177 }
178178 else throw("not valid NFT")
179179
180180
181181 func getRandomNumber (options,txId,hatchingFinishHeight,offset) = {
182182 let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1)))
183183 let randomHash = sha256((txId + value(randomSeedBlock.vrf)))
184184 (toInt(randomHash, (offset * 8)) % options)
185185 }
186186
187187
188188 func getRandomWin (tx,finishHeight,assetRarity) = {
189- let phoenixOptions = (PHOENIXBASEOPTIONS - fraction((PHOENIXBASEOPTIONS / 2), assetRarity, 100))
190- let jackpotRandom = getRandomNumber(phoenixOptions, tx, finishHeight, 1)
189+ let jackpotRandom = getRandomNumber(10, tx, finishHeight, 1)
191190 if ((jackpotRandom == 1))
192191 then "phoenix"
193192 else {
194193 let n = getRandomNumber(1000, tx, finishHeight, 0)
195194 if ((10 > n))
196195 then "item!ART-FREEGENE"
197196 else if ((126 > n))
198197 then "ar"
199198 else if ((186 > n))
200199 then "item!ART-FIRE_ARMOUR"
201200 else if ((206 > n))
202201 then "item!ART-FEED5"
203202 else if ((226 > n))
204203 then "item!ART-FEED10"
205204 else if ((246 > n))
206205 then "item!ART-FEED15"
207206 else if ((266 > n))
208207 then "item!ART-FEED20"
209208 else if ((286 > n))
210209 then "item!ART-FEED25"
211210 else if ((296 > n))
212211 then "item!ART-FEED50"
213212 else if ((300 > n))
214213 then "item!ART-FEED100"
215214 else if ((310 > n))
216215 then "item!ART-CROWN"
217216 else if ((350 > n))
218217 then "incubator"
219218 else if ((460 > n))
220219 then if ((50 > assetRarity))
221220 then "item!ART-BUILTBODY"
222221 else "item!ART-MUTARIUM-D"
223222 else if ((480 > n))
224223 then "item!ART-SNAKE"
225224 else if ((510 > n))
226225 then "item!ART-ROBODUCK"
227226 else if ((600 > n))
228227 then "item!ART-KATANA"
229228 else if ((650 > n))
230229 then if ((50 > assetRarity))
231230 then "item!ART-SCEPTER"
232231 else "item!ART-MUTARIUM-D"
233232 else if ((710 > n))
234233 then "item!ART-MUTARIUM-D"
235234 else if ((720 > n))
236235 then "item!ART-MUTARIUM-G"
237236 else if ((890 > n))
238237 then "duckling_10"
239238 else if ((960 > n))
240239 then "duckling_20"
241240 else "duckling_40"
242241 }
243242 }
244243
245244
246245 func getOrigin (assetId) = {
247246 let assetName = value(assetInfo(assetId)).name
248247 let generation = take(takeRight(assetName, 2), 1)
249248 if (if ((generation == "G"))
250249 then true
251250 else (generation == "J"))
252251 then getIncubatorAddress()
253252 else getBreederAddress()
254253 }
255254
256255
257256 func asInt (value) = match value {
258257 case int: Int =>
259258 int
260259 case string: String =>
261260 throw(("RAI: wrong type, expected: Int, but got: " + string))
262261 case _ =>
263262 throw("RAI: wrong type, expected: Int")
264263 }
265264
266265
267266 func getBool (key) = match getBoolean(this, key) {
268267 case b: Boolean =>
269268 b
270269 case _ =>
271270 false
272271 }
273272
274273
275274 func isTestEnv () = getBool("TESTENV")
276275
277276
278277 func finishRebirthInternal (initTx,address,payment,double) = {
279278 let finishBlock = tryGetInteger((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"))
280279 let assetRarity = tryGetInteger((((("address_" + address) + "_initTx_") + initTx) + "_assetRarity"))
281280 let status = tryGetString((((("address_" + address) + "_initTx_") + initTx) + "_status"))
282281 let validPayment = checkAdditionalPayment(payment)
283282 if ((validPayment == validPayment))
284283 then {
285284 let recordAction = invoke(getCouponsAddress(), "recordAction", ["REBIRTH"], nil)
286285 if ((recordAction == recordAction))
287286 then {
288287 func getAccessItemAssetId (address) = fromBase58String(tryGetStringExternal(address, "static_accessItemAssetId"))
289288
290289 func getAccessItemPrice (address) = tryGetIntExternal(address, "static_accessItemPrice")
291290
292291 if ((status != "open"))
293292 then throw("rebirth is finished or not open")
294293 else if ((finishBlock > height))
295294 then throw("you cannot finish rebirth, yet")
296295 else {
297296 let win = getRandomWin(fromBase58String(initTx), finishBlock, assetRarity)
298297 let txId = initTx
299298 let result = if ((indexOf(win, "perch") != unit))
300299 then {
301300 let color = takeRight(win, 1)
302301 let result = if (!(double))
303302 then {
304303 let first = invoke(getFarmingAddress(), "addFreePerch", [address, color, 1], nil)
305304 if ((first == first))
306305 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))]
307306 else throw("Strict value is not equal to itself.")
308307 }
309308 else {
310309 let first = invoke(getFarmingAddress(), "addFreePerch", [address, color, 2], nil)
311310 if ((first == first))
312311 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)]
313312 else throw("Strict value is not equal to itself.")
314313 }
315314 if ((result == result))
316315 then result
317316 else throw("Strict value is not equal to itself.")
318317 }
319318 else if ((win == "incubator"))
320319 then {
321320 let result = if (!(double))
322321 then {
323322 let first = invoke(getIncubatorAddress(), "issueFreeDuck", [address, txId], nil)
324323 if ((first == first))
325324 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))]
326325 else throw("Strict value is not equal to itself.")
327326 }
328327 else {
329328 let first = invoke(getIncubatorAddress(), "issueFreeDuck", [address, txId], nil)
330329 if ((first == first))
331330 then {
332331 let second = invoke(getBabyDuckAddress(), "issueFreeDuckling", [address, txId, 100], nil)
333332 if ((second == second))
334333 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result1"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), "duckling_100")]
335334 else throw("Strict value is not equal to itself.")
336335 }
337336 else throw("Strict value is not equal to itself.")
338337 }
339338 if ((result == result))
340339 then result
341340 else throw("Strict value is not equal to itself.")
342341 }
343342 else if ((win == "ar"))
344343 then {
345344 let assetId = getAccessItemAssetId(getHuntAddress())
346345 let price = getAccessItemPrice(getHuntAddress())
347346 let call = invoke(getHuntAddress(), "buyAccessItemOther", [address], [AttachedPayment(assetId, price)])
348347 if ((call == call))
349348 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))]
350349 else throw("Strict value is not equal to itself.")
351350 }
352351 else if ((win == "phoenix"))
353352 then {
354- let call = invoke(getIncubatorAddress(), "issueJackpot", [address, txId, valueOrElse(getString("JACKPOT_NAME"), "WWWWWWWP")], nil)
353+ let call = invoke(getIncubatorAddress(), "issueJackpot", [address, txId, "WWWWHWTF"], nil)
355354 if ((call == call))
356355 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))]
357356 else throw("Strict value is not equal to itself.")
358357 }
359358 else if ((indexOf(win, "duckling") != unit))
360359 then {
361360 let level = parseIntValue(split(win, "_")[1])
362361 let levelFinal = if (double)
363362 then (2 * level)
364363 else level
365364 let call = invoke(getBabyDuckAddress(), "issueFreeDuckling", [address, txId, levelFinal], nil)
366365 if ((call == call))
367366 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(call))]
368367 else throw("Strict value is not equal to itself.")
369368 }
370369 else if ((indexOf(win, "item") != unit))
371370 then {
372371 let itemName = split(win, "!")[1]
373372 let result = if (!(double))
374373 then {
375374 let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil)
376375 if ((first == first))
377376 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first))]
378377 else throw("Strict value is not equal to itself.")
379378 }
380379 else {
381380 let first = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 0], nil)
382381 if ((first == first))
383382 then {
384383 let second = invoke(getItemsAddress(), "issueArtefactIndex", [itemName, address, 1], nil)
385384 if ((second == second))
386385 then [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(first)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_result"), asString(second)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win1"), win)]
387386 else throw("Strict value is not equal to itself.")
388387 }
389388 else throw("Strict value is not equal to itself.")
390389 }
391390 if ((result == result))
392391 then result
393392 else throw("Strict value is not equal to itself.")
394393 }
395394 else throw("RFB: Some error occured, please contact the admins!")
396395 ((result ++ [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_win"), win), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "finish")]) ++ validPayment)
397396 }
398397 }
399398 else throw("Strict value is not equal to itself.")
400399 }
401400 else throw("Strict value is not equal to itself.")
402401 }
403402
404403
405404 @Callable(i)
406405 func configureOracle (oracle) = if ((i.caller != this))
407406 then throw("RCU: admin only")
408407 else [StringEntry("static_oracleAddress", oracle)]
409408
410409
411410
412411 @Callable(i)
413412 func initRebirth (refererAddress) = {
414413 let pmt = i.payments[0]
415414 let assetId = value(pmt.assetId)
416415 let initTx = toBase58String(i.transactionId)
417416 let address = toString(i.caller)
418417 if ((pmt.amount != 1))
419418 then throw("NFT is not attached")
420419 else {
421420 let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [feeAmount], nil))
422421 if ((amountPaidByCoupons == amountPaidByCoupons))
423422 then {
424423 let leftToPay = (feeAmount - amountPaidByCoupons)
425424 let validPayment = checkAdditionalPayment(i.payments[1])
426425 if ((validPayment == validPayment))
427426 then {
428427 let payment = if ((leftToPay != 0))
429428 then {
430429 let feePayment = value(i.payments[2])
431430 if ((feePayment.assetId != getEggAssetId()))
432431 then throw("You need to attach EGG tokens as fee")
433432 else if ((leftToPay > feePayment.amount))
434433 then throw(("You need to attach the following amount of EGG tokens as fee: 0." + toString(leftToPay)))
435434 else {
436435 let refererRewardForPerch = fraction(leftToPay, 5, 100)
437436 let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)]))
438437 if ((refCall == refCall))
439438 then {
440439 let toBurn = if (refCall)
441440 then (leftToPay - refererRewardForPerch)
442441 else leftToPay
443442 let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)])
444443 if ((burnCall == burnCall))
445444 then leftToPay
446445 else throw("Strict value is not equal to itself.")
447446 }
448447 else throw("Strict value is not equal to itself.")
449448 }
450449 }
451450 else 0
452451 if ((payment == payment))
453452 then {
454- let $t01378413833 = getAssetFarmingPower(assetId)
455- let gen = $t01378413833._1
456- let rarity = $t01378413833._2
453+ let $t01380913858 = getAssetFarmingPower(assetId)
454+ let gen = $t01380913858._1
455+ let rarity = $t01380913858._2
457456 let call = invoke(getOrigin(assetId), "reduceRarity", [toBase58String(assetId), gen], nil)
458457 if ((call == call))
459458 then ([IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + delayForHatching)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetRarity"), rarity), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), toBase58String(assetId))] ++ validPayment)
460459 else throw("Strict value is not equal to itself.")
461460 }
462461 else throw("Strict value is not equal to itself.")
463462 }
464463 else throw("Strict value is not equal to itself.")
465464 }
466465 else throw("Strict value is not equal to itself.")
467466 }
468467 }
469468
470469
471470
472471 @Callable(i)
473472 func finishRebirth (initTx) = finishRebirthInternal(initTx, toString(i.caller), i.payments[0], false)
474473
475474
476475
477476 @Callable(i)
478477 func finishRebirthDouble (initTx) = if (!(if ((size(i.payments) == 2))
479478 then (i.payments[0].amount == 1)
480479 else false))
481480 then throw("Invalid payment")
482481 else {
483482 let assetId = value(i.payments[0].assetId)
484483 let boosterType = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(assetId)], nil))
485484 if ((boosterType == boosterType))
486485 then if ((boosterType == "ART-GIFT_DOUBL"))
487486 then ([Burn(assetId, 1)] ++ finishRebirthInternal(initTx, toString(i.caller), i.payments[1], true))
488487 else throw("Error! Wrong item attached to double rewards!")
489488 else throw("Strict value is not equal to itself.")
490489 }
491490
492491
493492 @Verifier(tx)
494493 func verify () = if (isTestEnv())
495494 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
496495 else {
497496 let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
498497 let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8'
499498 let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3'
500499 let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
501500 then 1
502501 else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
503502 then 1
504503 else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
505504 then 1
506505 else 0
507506 let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
508507 then 1
509508 else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
510509 then 1
511510 else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
512511 then 1
513512 else 0
514513 let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
515514 then 1
516515 else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
517516 then 1
518517 else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
519518 then 1
520519 else 0
521520 let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
522521 match tx {
523522 case _ =>
524523 (signaturesCount >= 2)
525524 }
526525 }
527526

github/deemru/w8io/026f985 
51.94 ms