tx · 6RCfQzBNhwiJAHN6GxmCKiTC3Y7W3vV8y35XDuPgQV3J 3N5ZQQQtXgjvyN5iYK8kxZsS8eUYrnhcb3T: -0.02700000 Waves 2024.10.07 20:20 [3316716] smart account 3N5ZQQQtXgjvyN5iYK8kxZsS8eUYrnhcb3T > SELF 0.00000000 Waves
{ "type": 13, "id": "6RCfQzBNhwiJAHN6GxmCKiTC3Y7W3vV8y35XDuPgQV3J", "fee": 2700000, "feeAssetId": null, "timestamp": 1728321715128, "version": 2, "chainId": 84, "sender": "3N5ZQQQtXgjvyN5iYK8kxZsS8eUYrnhcb3T", "senderPublicKey": "CEB4JtzJ3NRgvQKZxQg5hAZktuYAe9S6No9BC1gaTnu1", "proofs": [ "2Jnifx8YfDCRDN7Foj1f3r5UNmGobyKLXEAv6rC2ye6FZQS9G5oNUKGzSPcfsEd1w7LWKSYVViXURJjdG8gyUA7P" ], "script": "base64:AAIFAAAAAAAAAC8IAhIECgIICBIDCgEIEgQKAggIEgUKAwgIARIDCgEIEgMKAQgSABIAEgASAwoBCAAAADcAAAAABVNjYWxlAAAAAAAF9eEAAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkJAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAcc3RhdGljS2V5X3JlZkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAGXN0YXRpY19yZWZDb250cmFjdEFkZHJlc3MAAAAAFWtleUdsb2JhbExhc3RJbnRlcmVzdAIAAAAZZ2xvYmFsX2xhc3RDaGVja19pbnRlcmVzdAEAAAAXc3Rh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316716, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3VFJVCXKNjPd8YRAdoqHv52pMq9jG2pYYMdxN3sYbA76 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let Scale = 100000000 | |
5 | + | ||
6 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
7 | + | case a: String => | |
8 | + | a | |
9 | + | case _ => | |
10 | + | "" | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | func tryGetString (key) = tryGetStringExternal(this, key) | |
15 | + | ||
16 | + | ||
17 | + | func staticKey_refContractAddress () = "static_refContractAddress" | |
18 | + | ||
19 | + | ||
20 | + | let keyGlobalLastInterest = "global_lastCheck_interest" | |
21 | + | ||
22 | + | func staticKey_oracleAddress () = "static_oracleAddress" | |
23 | + | ||
24 | + | ||
25 | + | func staticKey_eggAssetId () = "static_eggAssetId" | |
26 | + | ||
27 | + | ||
28 | + | func staticKey_felineIncubatorAddress () = "static_felineIncubatorAddress" | |
29 | + | ||
30 | + | ||
31 | + | func staticKey_felineBreederAddress () = "static_felineBreederAddress" | |
32 | + | ||
33 | + | ||
34 | + | func staticKey_accBoosterAddress () = "static_accBoosterAddress" | |
35 | + | ||
36 | + | ||
37 | + | func staticKey_couponsAddress () = "static_couponsAddress" | |
38 | + | ||
39 | + | ||
40 | + | func staticKey_burnAddress () = "static_burnAddress" | |
41 | + | ||
42 | + | ||
43 | + | func staticKey_extraFee () = "static_extraFee" | |
44 | + | ||
45 | + | ||
46 | + | func staticKey_feeAggregator () = "static_feeAggregator" | |
47 | + | ||
48 | + | ||
49 | + | let keyGlobalEarned = "global_earnings" | |
50 | + | ||
51 | + | func staticKey_perchFee () = "static_felinePerchFee" | |
52 | + | ||
53 | + | ||
54 | + | func totalStakedKey () = "total_staked" | |
55 | + | ||
56 | + | ||
57 | + | func staticKey_peteAssetId () = "static_peteAssetId" | |
58 | + | ||
59 | + | ||
60 | + | func staticKey_peteDapp () = "static_peteDappAddress" | |
61 | + | ||
62 | + | ||
63 | + | func staticKey_felineRebirthAddress () = "static_felineRebirthAddress" | |
64 | + | ||
65 | + | ||
66 | + | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
67 | + | ||
68 | + | ||
69 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
70 | + | ||
71 | + | ||
72 | + | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineIncubatorAddress()))) | |
73 | + | ||
74 | + | ||
75 | + | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineBreederAddress()))) | |
76 | + | ||
77 | + | ||
78 | + | func getAccBoosterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_accBoosterAddress()))) | |
79 | + | ||
80 | + | ||
81 | + | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
82 | + | ||
83 | + | ||
84 | + | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
85 | + | ||
86 | + | ||
87 | + | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
88 | + | ||
89 | + | ||
90 | + | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
91 | + | ||
92 | + | ||
93 | + | func getPeteAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_peteAssetId())) | |
94 | + | ||
95 | + | ||
96 | + | func getPeteDappAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_peteDapp()))) | |
97 | + | ||
98 | + | ||
99 | + | func getFelineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineRebirthAddress()))) | |
100 | + | ||
101 | + | ||
102 | + | func keyLastCheckInterest (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_lastCheckInterest") | |
103 | + | ||
104 | + | ||
105 | + | func assetFarmingPower (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_farmingPower") | |
106 | + | ||
107 | + | ||
108 | + | func rewardClaimedKey (address,asset) = (((address + "_asset_") + asset) + "_claimed") | |
109 | + | ||
110 | + | ||
111 | + | func totalStakedUserKey (address) = ("total_staked_" + address) | |
112 | + | ||
113 | + | ||
114 | + | let stakeId = tryGetString("last_stake_id") | |
115 | + | ||
116 | + | let RefererReward = 5 | |
117 | + | ||
118 | + | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
119 | + | then throw("FCAP: Please attach waves") | |
120 | + | else { | |
121 | + | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
122 | + | if ((payment.amount != feeAmount)) | |
123 | + | then throw((("FCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
124 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
125 | + | } | |
126 | + | ||
127 | + | ||
128 | + | func getBool (key) = match getBoolean(this, key) { | |
129 | + | case b: Boolean => | |
130 | + | b | |
131 | + | case _ => | |
132 | + | false | |
133 | + | } | |
134 | + | ||
135 | + | ||
136 | + | func isTestEnv () = getBool("TESTENV") | |
137 | + | ||
138 | + | ||
139 | + | func tryGetInteger (key) = match getInteger(this, key) { | |
140 | + | case b: Int => | |
141 | + | b | |
142 | + | case _ => | |
143 | + | 0 | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | func asInt (value) = match value { | |
148 | + | case int: Int => | |
149 | + | int | |
150 | + | case _ => | |
151 | + | throw("FAI: wrong type, expected: Int") | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func asIntTuple (value) = match value { | |
156 | + | case int: (Int, Int) => | |
157 | + | int | |
158 | + | case _ => | |
159 | + | throw("FAI: wrong type, expected: (Int,Int)") | |
160 | + | } | |
161 | + | ||
162 | + | ||
163 | + | func handleStakingTopUp (totalAmount) = { | |
164 | + | let team = (totalAmount / 10) | |
165 | + | let compoundAmount = ((totalAmount - team) / 2) | |
166 | + | let payoutAmount = ((totalAmount - compoundAmount) - team) | |
167 | + | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
168 | + | let totalStakedAmount = tryGetInteger(totalStakedKey()) | |
169 | + | let interestDelta = if ((totalStakedAmount > 0)) | |
170 | + | then fraction(payoutAmount, Scale, totalStakedAmount) | |
171 | + | else 0 | |
172 | + | let invokeRes = invoke(getPeteDappAddress(), "stake", nil, [AttachedPayment(getPeteAssetId(), compoundAmount)]) | |
173 | + | if ((invokeRes == invokeRes)) | |
174 | + | then [IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + payoutAmount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta)), IntegerEntry("global_PETE_balance", (tryGetInteger("global_PETE_balance") + compoundAmount)), ScriptTransfer(getFeeAggregator(), team, getPeteAssetId())] | |
175 | + | else throw("Strict value is not equal to itself.") | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func asString (value) = match value { | |
180 | + | case string: String => | |
181 | + | string | |
182 | + | case _ => | |
183 | + | throw("FAS: wrong type, expected: String") | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | func tryGetBoolean (key) = match getBoolean(this, key) { | |
188 | + | case b: Boolean => | |
189 | + | b | |
190 | + | case _ => | |
191 | + | false | |
192 | + | } | |
193 | + | ||
194 | + | ||
195 | + | func tryGetBooleanExternal (address,key) = match getBoolean(address, key) { | |
196 | + | case b: Boolean => | |
197 | + | b | |
198 | + | case _ => | |
199 | + | false | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func getAssetOrigin (generation) = if ((generation == "G")) | |
204 | + | then getIncubatorAddress() | |
205 | + | else getBreederAddress() | |
206 | + | ||
207 | + | ||
208 | + | func getAssetRarity (genotype,generation) = { | |
209 | + | let quantity = valueOrErrorMessage(getInteger(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")), (("stats_" + genotype) + "_quantity not found")) | |
210 | + | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
211 | + | if ((power > 0)) | |
212 | + | then power | |
213 | + | else 2 | |
214 | + | } | |
215 | + | ||
216 | + | ||
217 | + | func getAssetRarityComplete (isJackpot,assetName) = { | |
218 | + | let rarity = if (isJackpot) | |
219 | + | then 100 | |
220 | + | else { | |
221 | + | let generation = take(takeRight(assetName, 2), 1) | |
222 | + | let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil)) | |
223 | + | if ((farmGen == farmGen)) | |
224 | + | then getAssetRarity(farmGen, generation) | |
225 | + | else throw("Strict value is not equal to itself.") | |
226 | + | } | |
227 | + | rarity | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | func updateFarmingPower (address,asset) = { | |
232 | + | let totalStaked = tryGetInteger(totalStakedKey()) | |
233 | + | let totalStakedUser = tryGetInteger(totalStakedUserKey(address)) | |
234 | + | let currentFP = tryGetInteger(assetFarmingPower(address, asset)) | |
235 | + | let newFP = asIntTuple(invoke(this, "calculateFarmPower", [asset, address], nil)) | |
236 | + | if ((currentFP != 0)) | |
237 | + | then [IntegerEntry(totalStakedKey(), ((totalStaked - currentFP) + newFP._1)), IntegerEntry(totalStakedUserKey(address), ((totalStakedUser - currentFP) + newFP._1)), IntegerEntry(assetFarmingPower(address, asset), newFP._1)] | |
238 | + | else nil | |
239 | + | } | |
240 | + | ||
241 | + | ||
242 | + | func claimStakingResult (address,asset,recalc) = { | |
243 | + | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
244 | + | let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address, asset)) | |
245 | + | let stakedAmount = tryGetInteger(assetFarmingPower(address, asset)) | |
246 | + | let fpUpdate = if (recalc) | |
247 | + | then updateFarmingPower(address, asset) | |
248 | + | else nil | |
249 | + | if ((fpUpdate == fpUpdate)) | |
250 | + | then { | |
251 | + | let reward = if ((lastCheckInterest > 0)) | |
252 | + | then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale) | |
253 | + | else 0 | |
254 | + | $Tuple2(([ScriptTransfer(addressFromStringValue(address), reward, getPeteAssetId()), IntegerEntry(keyLastCheckInterest(address, asset), currentInterest), IntegerEntry(rewardClaimedKey(address, asset), (tryGetInteger(rewardClaimedKey(address, asset)) + reward))] ++ fpUpdate), reward) | |
255 | + | } | |
256 | + | else throw("Strict value is not equal to itself.") | |
257 | + | } | |
258 | + | ||
259 | + | ||
260 | + | func asBoolean (value) = match value { | |
261 | + | case boolean: Boolean => | |
262 | + | boolean | |
263 | + | case _ => | |
264 | + | throw("FAB: wrong type, expected: Boolean") | |
265 | + | } | |
266 | + | ||
267 | + | ||
268 | + | func calculatePerchPrice (address) = { | |
269 | + | let hasArtefactStaked = tryGetStringExternal(getAccBoosterAddress(), (("ART-XMISTL_" + address) + "_owner")) | |
270 | + | let perchPrice = getIntegerValue(getOracle(), staticKey_perchFee()) | |
271 | + | if ((hasArtefactStaked == "")) | |
272 | + | then perchPrice | |
273 | + | else ((perchPrice / 10) * 9) | |
274 | + | } | |
275 | + | ||
276 | + | ||
277 | + | @Callable(i) | |
278 | + | func calculateFarmPower (assetId,bonusAddress) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreederAddress())) | |
279 | + | then true | |
280 | + | else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress()))) | |
281 | + | then throw("This does not seem like a valid Duck!") | |
282 | + | else { | |
283 | + | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
284 | + | let gen = takeRight(assetName, 1) | |
285 | + | let isJackpot = (takeRight(assetName, 1) == "U") | |
286 | + | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
287 | + | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
288 | + | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
289 | + | then (accum :+ nextGen) | |
290 | + | else accum | |
291 | + | ||
292 | + | let uniqueList = { | |
293 | + | let $l = genotype | |
294 | + | let $s = size($l) | |
295 | + | let $acc0 = nil | |
296 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
297 | + | then $a | |
298 | + | else uniqueArrayFilter($a, $l[$i]) | |
299 | + | ||
300 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
301 | + | then $a | |
302 | + | else throw("List size exceeds 8") | |
303 | + | ||
304 | + | $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) | |
305 | + | } | |
306 | + | let totalGenes = if ((gen == "U")) | |
307 | + | then 8 | |
308 | + | else size(uniqueList) | |
309 | + | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
310 | + | let multiplier = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
311 | + | let basePower = tryGetInteger((assetId + "_basePower")) | |
312 | + | let finalPower = if ((basePower > 0)) | |
313 | + | then basePower | |
314 | + | else ((power * multiplier) / 100) | |
315 | + | let finalPowerRarity = ((finalPower * rarity) / 100) | |
316 | + | let farmBoost = 0 | |
317 | + | if ((farmBoost == farmBoost)) | |
318 | + | then { | |
319 | + | let finalPowerRarityBoost = (finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) | |
320 | + | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
321 | + | } | |
322 | + | else throw("Strict value is not equal to itself.") | |
323 | + | } | |
324 | + | ||
325 | + | ||
326 | + | ||
327 | + | @Callable(i) | |
328 | + | func configureOracle (oracle) = if ((i.caller != this)) | |
329 | + | then throw("FCO: admin only") | |
330 | + | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
331 | + | ||
332 | + | ||
333 | + | ||
334 | + | @Callable(i) | |
335 | + | func buyPerch (colorI,refererAddress) = { | |
336 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
337 | + | if ((validPayment == validPayment)) | |
338 | + | then { | |
339 | + | let color = if ((colorI == "U")) | |
340 | + | then "B" | |
341 | + | else colorI | |
342 | + | if ((0 > value(indexOf(["A", "B", "C", "D"], color)))) | |
343 | + | then throw("you need to set color properly") | |
344 | + | else { | |
345 | + | let exactPrice = calculatePerchPrice(toString(i.caller)) | |
346 | + | let leftToPay = if ((i.originCaller == i.caller)) | |
347 | + | then { | |
348 | + | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [exactPrice], nil)) | |
349 | + | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
350 | + | then (exactPrice - amountPaidByCoupons) | |
351 | + | else throw("Strict value is not equal to itself.") | |
352 | + | } | |
353 | + | else exactPrice | |
354 | + | let payment = if ((leftToPay != 0)) | |
355 | + | then { | |
356 | + | let firstPayment = if ((size(i.payments) == 2)) | |
357 | + | then value(i.payments[1]) | |
358 | + | else value(i.payments[0]) | |
359 | + | if ((firstPayment.assetId != getEggAssetId())) | |
360 | + | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
361 | + | else if ((firstPayment.amount != leftToPay)) | |
362 | + | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
363 | + | else { | |
364 | + | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
365 | + | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
366 | + | if ((refCall == refCall)) | |
367 | + | then { | |
368 | + | let toBurn = if (refCall) | |
369 | + | then (leftToPay - refererRewardForPerch) | |
370 | + | else leftToPay | |
371 | + | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
372 | + | if ((burnCall == burnCall)) | |
373 | + | then leftToPay | |
374 | + | else throw("Strict value is not equal to itself.") | |
375 | + | } | |
376 | + | else throw("Strict value is not equal to itself.") | |
377 | + | } | |
378 | + | } | |
379 | + | else 0 | |
380 | + | if ((payment == payment)) | |
381 | + | then { | |
382 | + | let perchAmountKey = ((("address_" + toString(i.caller)) + "_perchesAvailable_") + color) | |
383 | + | let perchAmount = tryGetInteger(perchAmountKey) | |
384 | + | ([IntegerEntry(perchAmountKey, (perchAmount + 1))] ++ validPayment) | |
385 | + | } | |
386 | + | else throw("Strict value is not equal to itself.") | |
387 | + | } | |
388 | + | } | |
389 | + | else throw("Strict value is not equal to itself.") | |
390 | + | } | |
391 | + | ||
392 | + | ||
393 | + | ||
394 | + | @Callable(i) | |
395 | + | func addFreePerch (address,color,amount) = if ((0 > value(indexOf(["A", "B", "C", "D"], color)))) | |
396 | + | then throw("you need to set color properly") | |
397 | + | else if (if ((i.caller != this)) | |
398 | + | then (i.caller != getFelineRebirthAddress()) | |
399 | + | else false) | |
400 | + | then throw("rebirth and admin only") | |
401 | + | else { | |
402 | + | let perchAmountKey = ((("address_" + address) + "_perchesAvailable_") + color) | |
403 | + | let perchAmount = tryGetInteger(perchAmountKey) | |
404 | + | $Tuple2([IntegerEntry(perchAmountKey, (perchAmount + amount))], "") | |
405 | + | } | |
406 | + | ||
407 | + | ||
408 | + | ||
409 | + | @Callable(i) | |
410 | + | func stakeNFT (jColor) = { | |
411 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
412 | + | if ((validPayment == validPayment)) | |
413 | + | then { | |
414 | + | let pmt = value(i.payments[1]) | |
415 | + | let assetId = value(pmt.assetId) | |
416 | + | let assetName = value(value(assetInfo(assetId)).name) | |
417 | + | let isJackpot = (takeRight(assetName, 1) == "U") | |
418 | + | let address = toString(i.caller) | |
419 | + | let perchAddress = address | |
420 | + | let color = if (isJackpot) | |
421 | + | then jColor | |
422 | + | else takeRight(assetName, 1) | |
423 | + | let perches = { | |
424 | + | let availablePerches = tryGetInteger(((("address_" + perchAddress) + "_perchesAvailable_") + color)) | |
425 | + | if ((0 >= availablePerches)) | |
426 | + | then throw(("no perches available for the color " + color)) | |
427 | + | else [IntegerEntry(((("address_" + perchAddress) + "_perchesAvailable_") + color), (availablePerches - 1)), StringEntry((((("address_" + address) + "_asset_") + toBase58String(assetId)) + "_perchColor"), color)] | |
428 | + | } | |
429 | + | if ((perches == perches)) | |
430 | + | then if ((pmt.amount != 1)) | |
431 | + | then throw("NFT is not attached") | |
432 | + | else { | |
433 | + | let farmingPower = asIntTuple(invoke(this, "calculateFarmPower", [toBase58String(assetId), toString(i.originCaller)], nil)) | |
434 | + | if ((farmingPower == farmingPower)) | |
435 | + | then { | |
436 | + | let result = claimStakingResult(address, toBase58String(assetId), false) | |
437 | + | if ((result == result)) | |
438 | + | 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) | |
439 | + | else throw("Strict value is not equal to itself.") | |
440 | + | } | |
441 | + | else throw("Strict value is not equal to itself.") | |
442 | + | } | |
443 | + | else throw("Strict value is not equal to itself.") | |
444 | + | } | |
445 | + | else throw("Strict value is not equal to itself.") | |
446 | + | } | |
447 | + | ||
448 | + | ||
449 | + | ||
450 | + | @Callable(i) | |
451 | + | func unstakeNFT (asset) = { | |
452 | + | let address = toString(i.caller) | |
453 | + | if ((tryGetString((asset + "_owner")) != toString(i.caller))) | |
454 | + | then throw("You don't own this duck!!") | |
455 | + | else { | |
456 | + | let result = claimStakingResult(address, asset, false) | |
457 | + | if ((result == result)) | |
458 | + | then { | |
459 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
460 | + | if ((validPayment == validPayment)) | |
461 | + | then { | |
462 | + | let color = tryGetString((((("address_" + address) + "_asset_") + asset) + "_perchColor")) | |
463 | + | let assetFP = tryGetInteger(assetFarmingPower(address, asset)) | |
464 | + | if ((assetFP == assetFP)) | |
465 | + | 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) | |
466 | + | else throw("Strict value is not equal to itself.") | |
467 | + | } | |
468 | + | else throw("Strict value is not equal to itself.") | |
469 | + | } | |
470 | + | else throw("Strict value is not equal to itself.") | |
471 | + | } | |
472 | + | } | |
473 | + | ||
474 | + | ||
475 | + | ||
476 | + | @Callable(i) | |
477 | + | func topUpReward () = { | |
478 | + | let firstPayment = value(i.payments[0]) | |
479 | + | if ((firstPayment.assetId != getPeteAssetId())) | |
480 | + | then throw(("FBP: You can attach only" + toBase58String(getPeteAssetId()))) | |
481 | + | else { | |
482 | + | let resHandleStaking = handleStakingTopUp(firstPayment.amount) | |
483 | + | $Tuple2(resHandleStaking, true) | |
484 | + | } | |
485 | + | } | |
486 | + | ||
487 | + | ||
488 | + | ||
489 | + | @Callable(i) | |
490 | + | func claimRewardPete () = { | |
491 | + | let peteBalanceBefore = assetBalance(this, getPeteAssetId()) | |
492 | + | if ((peteBalanceBefore == peteBalanceBefore)) | |
493 | + | then { | |
494 | + | let invokeRes = invoke(getPeteDappAddress(), "claim", nil, nil) | |
495 | + | if ((invokeRes == invokeRes)) | |
496 | + | then { | |
497 | + | let peteBalanceAfter = assetBalance(this, getPeteAssetId()) | |
498 | + | if ((peteBalanceAfter == peteBalanceAfter)) | |
499 | + | then { | |
500 | + | let resHandleStaking = (handleStakingTopUp(((peteBalanceAfter - peteBalanceBefore) - 10000000)) ++ [ScriptTransfer(i.caller, 10000000, getPeteAssetId())]) | |
501 | + | $Tuple2(resHandleStaking, true) | |
502 | + | } | |
503 | + | else throw("Strict value is not equal to itself.") | |
504 | + | } | |
505 | + | else throw("Strict value is not equal to itself.") | |
506 | + | } | |
507 | + | else throw("Strict value is not equal to itself.") | |
508 | + | } | |
509 | + | ||
510 | + | ||
511 | + | ||
512 | + | @Callable(i) | |
513 | + | func addPeteAndStakeMore () = { | |
514 | + | let firstPayment = value(i.payments[0]) | |
515 | + | if ((firstPayment.assetId != getPeteAssetId())) | |
516 | + | then throw("FBP: You can attach only Waves") | |
517 | + | else { | |
518 | + | let invokeRes = invoke(getPeteDappAddress(), "stake", nil, [i.payments[0]]) | |
519 | + | if ((invokeRes == invokeRes)) | |
520 | + | then [IntegerEntry("global_PETE_balance", (tryGetInteger("global_PETE_balance") + firstPayment.amount))] | |
521 | + | else throw("Strict value is not equal to itself.") | |
522 | + | } | |
523 | + | } | |
524 | + | ||
525 | + | ||
526 | + | ||
527 | + | @Callable(i) | |
528 | + | func claimReward (assetId) = { | |
529 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
530 | + | if ((validPayment == validPayment)) | |
531 | + | then if ((tryGetString((assetId + "_owner")) != toString(i.caller))) | |
532 | + | then throw((("You don't own this duck (" + assetId) + ")!! ")) | |
533 | + | else if ((size(i.payments) > 1)) | |
534 | + | then throw("Please don't add extra payments") | |
535 | + | else { | |
536 | + | let owner = toString(i.caller) | |
537 | + | let result = claimStakingResult(owner, assetId, true) | |
538 | + | $Tuple2((validPayment ++ result._1), result._2) | |
539 | + | } | |
540 | + | else throw("Strict value is not equal to itself.") | |
541 | + | } | |
542 | + | ||
543 | + | ||
544 | + | @Verifier(tx) | |
545 | + | func verify () = if (isTestEnv()) | |
546 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
547 | + | else { | |
548 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
549 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
550 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
551 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
552 | + | then 1 | |
553 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
554 | + | then 1 | |
555 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
556 | + | then 1 | |
557 | + | else 0 | |
558 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
559 | + | then 1 | |
560 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
561 | + | then 1 | |
562 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
563 | + | then 1 | |
564 | + | else 0 | |
565 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
566 | + | then 1 | |
567 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
568 | + | then 1 | |
569 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
570 | + | then 1 | |
571 | + | else 0 | |
572 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
573 | + | match tx { | |
574 | + | case _ => | |
575 | + | (signaturesCount >= 2) | |
576 | + | } | |
577 | + | } | |
578 | + |
github/deemru/w8io/026f985 28.99 ms ◑