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