tx · 68FRaBw93dsNeQFx1DF1fnvGxQsbzg7bCF7w4xdb38EE 3N33m3JMhEN5QxhDKujcsbpFHo3UcHE4Jwt: -0.03300000 Waves 2024.12.29 21:14 [3436153] smart account 3N33m3JMhEN5QxhDKujcsbpFHo3UcHE4Jwt > SELF 0.00000000 Waves
{ "type": 13, "id": "68FRaBw93dsNeQFx1DF1fnvGxQsbzg7bCF7w4xdb38EE", "fee": 3300000, "feeAssetId": null, "timestamp": 1735496044836, "version": 2, "chainId": 84, "sender": "3N33m3JMhEN5QxhDKujcsbpFHo3UcHE4Jwt", "senderPublicKey": "9Rp4v3BUwexbq4Ta6b1K2wTRxefC3irpr2tHC51mSAjz", "proofs": [ "4UnybD9Zea9UbLWfhjkcUpVpTE1dN13pvBQtwSKcSaetXXB1zQwbTVWKyhm9ACyhymxH13T2sVHzYGTnEw7adzRk" ], "script": "base64:AAIFAAAAAAAAADgIAhIECgIICBIDCgEIEgQKAggIEgUKAwgIARIDCgEIEgUKAwgEBBIDCgEIEgASAwoBCBIECgIICAAAAEEAAAAABVNjYWxlAAAAAAAF9eEAAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkJAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAHZ2V0Qm9vbAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcBAAAACWlzVGVzdEVudgA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AAAAFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA9zaWduYXR1cmVzQ291bnQJAABkAAAAAgkAAGQAAAACBQAAAA9maXJzdFVzZXJTaWduZWQFAAAAEHNlY29uZFVzZXJTaWduZWQFAAAAD3RoaXJkVXNlclNpZ25lZAQAAAAHJG1hdGNoMAUAAAACdHgJAABnAAAAAgUAAAAPc2lnbmF0dXJlc0NvdW50AAAAAAAAAAACB627wQ==", "height": 3436153, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F4j42U56yjKoGDm4MKitVGQvkTtLwogvjh2tGAaRDKBM Next: hJBrS7xNYDxv92ejZFGaRW7KoEizuynVrSScY2sYobt Diff:
Old | New | Differences | |
---|---|---|---|
86 | 86 | func staticKey_canineStakingAddress () = "static_canineStakingAddress" | |
87 | 87 | ||
88 | 88 | ||
89 | + | func staticKey_wearablesAddress () = "static_wearablesAddress" | |
90 | + | ||
91 | + | ||
89 | 92 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
90 | 93 | ||
91 | 94 | ||
132 | 135 | ||
133 | 136 | ||
134 | 137 | func getCanineStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineStakingAddress()))) | |
138 | + | ||
139 | + | ||
140 | + | func getWearablesAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_wearablesAddress()))) | |
135 | 141 | ||
136 | 142 | ||
137 | 143 | func keyLastCheckInterest (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_lastCheckInterest") | |
302 | 308 | then true | |
303 | 309 | else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress()))) | |
304 | 310 | then throw("This does not seem like a valid Duck!") | |
305 | - | else { | |
306 | - | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
307 | - | let gen = takeRight(assetName, 1) | |
308 | - | let isJackpot = (takeRight(assetName, 1) == "U") | |
309 | - | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
310 | - | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
311 | - | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
312 | - | then (accum :+ nextGen) | |
313 | - | else accum | |
311 | + | else if (if (tryGetBooleanExternal(getBreederAddress(), (assetId + "_blacklisted"))) | |
312 | + | then true | |
313 | + | else tryGetBooleanExternal(getIncubatorAddress(), (assetId + "_blacklisted"))) | |
314 | + | then throw("Screw urself") | |
315 | + | else { | |
316 | + | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
317 | + | let gen = takeRight(assetName, 1) | |
318 | + | let isJackpot = (takeRight(assetName, 1) == "U") | |
319 | + | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
320 | + | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
321 | + | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
322 | + | then (accum :+ nextGen) | |
323 | + | else accum | |
314 | 324 | ||
315 | - | let uniqueList = { | |
316 | - | let $l = genotype | |
317 | - | let $s = size($l) | |
318 | - | let $acc0 = nil | |
319 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
320 | - | then $a | |
321 | - | else uniqueArrayFilter($a, $l[$i]) | |
325 | + | let uniqueList = { | |
326 | + | let $l = genotype | |
327 | + | let $s = size($l) | |
328 | + | let $acc0 = nil | |
329 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
330 | + | then $a | |
331 | + | else uniqueArrayFilter($a, $l[$i]) | |
322 | 332 | ||
323 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
324 | - | then $a | |
325 | - | else throw("List size exceeds 8") | |
333 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
334 | + | then $a | |
335 | + | else throw("List size exceeds 8") | |
326 | 336 | ||
327 | - | $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) | |
337 | + | $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) | |
338 | + | } | |
339 | + | let totalGenes = if ((gen == "U")) | |
340 | + | then 8 | |
341 | + | else size(uniqueList) | |
342 | + | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
343 | + | let baseBlock = if (isTestEnv()) | |
344 | + | then 2500000 | |
345 | + | else 3750000 | |
346 | + | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
347 | + | let basePower = tryGetInteger((assetId + "_basePower")) | |
348 | + | let finalPower = if ((basePower > 0)) | |
349 | + | then basePower | |
350 | + | else ((power * multiplier) / 100) | |
351 | + | let finalPowerRarity = ((finalPower * rarity) / 100) | |
352 | + | let farmBoost = asInt(invoke(getItemsAddress(), "calculateFarmingPowerBoost", [assetId, bonusAddress], nil)) | |
353 | + | if ((farmBoost == farmBoost)) | |
354 | + | then { | |
355 | + | let wearabledBoost = asInt(invoke(getWearablesAddress(), "calculateWearblesBoost", [assetId], nil)) | |
356 | + | if ((wearabledBoost == wearabledBoost)) | |
357 | + | then { | |
358 | + | let finalPowerRarityBoost = ((finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) + ((finalPowerRarity * wearabledBoost) / 1000)) | |
359 | + | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
360 | + | } | |
361 | + | else throw("Strict value is not equal to itself.") | |
362 | + | } | |
363 | + | else throw("Strict value is not equal to itself.") | |
328 | 364 | } | |
329 | - | let totalGenes = if ((gen == "U")) | |
330 | - | then 8 | |
331 | - | else size(uniqueList) | |
332 | - | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
333 | - | let baseBlock = if (isTestEnv()) | |
334 | - | then 2500000 | |
335 | - | else 3750000 | |
336 | - | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
337 | - | let basePower = tryGetInteger((assetId + "_basePower")) | |
338 | - | let finalPower = if ((basePower > 0)) | |
339 | - | then basePower | |
340 | - | else ((power * multiplier) / 100) | |
341 | - | let finalPowerRarity = ((finalPower * rarity) / 100) | |
342 | - | let farmBoost = asInt(invoke(getItemsAddress(), "calculateFarmingPowerBoost", [assetId, bonusAddress], nil)) | |
343 | - | if ((farmBoost == farmBoost)) | |
344 | - | then { | |
345 | - | let finalPowerRarityBoost = (finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) | |
346 | - | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
347 | - | } | |
348 | - | else throw("Strict value is not equal to itself.") | |
349 | - | } | |
350 | 365 | ||
351 | 366 | ||
352 | 367 | ||
420 | 435 | @Callable(i) | |
421 | 436 | func addFreePerch (address,color,amount) = if ((0 > value(indexOf(["B", "R", "G", "Y"], color)))) | |
422 | 437 | then throw("you need to set color properly") | |
423 | - | else if (if (if ((i.caller != getRebirthAddress())) | |
438 | + | else if (if (if (if ((i.caller != getRebirthAddress())) | |
424 | 439 | then (i.caller != getTurtleRebirthAddress()) | |
425 | 440 | else false) | |
426 | 441 | then (i.caller != this) | |
442 | + | else false) | |
443 | + | then (i.caller != getCouponsAddress()) | |
427 | 444 | else false) | |
428 | 445 | then throw("rebirth and admin only") | |
429 | 446 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let Scale = 100000000 | |
5 | 5 | ||
6 | 6 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
7 | 7 | case a: String => | |
8 | 8 | a | |
9 | 9 | case _ => | |
10 | 10 | "" | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func tryGetString (key) = tryGetStringExternal(this, key) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func getBool (key) = match getBoolean(this, key) { | |
18 | 18 | case b: Boolean => | |
19 | 19 | b | |
20 | 20 | case _ => | |
21 | 21 | false | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func isTestEnv () = getBool("TESTENV") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func staticKey_refContractAddress () = "static_refContractAddress" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let keyGlobalLastInterest = "global_lastCheck_interest" | |
32 | 32 | ||
33 | 33 | func staticKey_oracleAddress () = "static_oracleAddress" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func staticKey_eggAssetId () = "static_eggAssetId" | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func staticKey_incubatorAddress () = "static_incubatorAddress" | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func staticKey_breederAddress () = "static_breederAddress" | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func staticKey_accBoosterAddress () = "static_accBoosterAddress" | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func staticKey_couponsAddress () = "static_couponsAddress" | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func staticKey_burnAddress () = "static_burnAddress" | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func staticKey_extraFee () = "static_extraFee" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func staticKey_feeAggregator () = "static_feeAggregator" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | let keyGlobalEarned = "global_earnings" | |
61 | 61 | ||
62 | 62 | func staticKey_perchFee () = "static_perchFee" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func staticKey_rebirthAddress () = "static_rebirthAddress" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func staticKey_itemsAddress () = "static_itemsAddress" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func totalStakedKey () = "total_staked" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func staticKey_proxyStakingContracts () = "static_proxyStakingContracts" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func staticKey_cfMasterAddress () = "static_cfMasterAddress" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func staticKey_potionFee () = "static_potionFee" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func staticKey_canineStakingAddress () = "static_canineStakingAddress" | |
87 | 87 | ||
88 | 88 | ||
89 | + | func staticKey_wearablesAddress () = "static_wearablesAddress" | |
90 | + | ||
91 | + | ||
89 | 92 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
90 | 93 | ||
91 | 94 | ||
92 | 95 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress()))) | |
93 | 96 | ||
94 | 97 | ||
95 | 98 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
96 | 99 | ||
97 | 100 | ||
98 | 101 | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress()))) | |
99 | 102 | ||
100 | 103 | ||
101 | 104 | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress()))) | |
102 | 105 | ||
103 | 106 | ||
104 | 107 | func getAccBoosterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_accBoosterAddress()))) | |
105 | 108 | ||
106 | 109 | ||
107 | 110 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
108 | 111 | ||
109 | 112 | ||
110 | 113 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
111 | 114 | ||
112 | 115 | ||
113 | 116 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
114 | 117 | ||
115 | 118 | ||
116 | 119 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
117 | 120 | ||
118 | 121 | ||
119 | 122 | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
120 | 123 | ||
121 | 124 | ||
122 | 125 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
123 | 126 | ||
124 | 127 | ||
125 | 128 | func getProxyStaking () = tryGetStringExternal(getOracle(), staticKey_proxyStakingContracts()) | |
126 | 129 | ||
127 | 130 | ||
128 | 131 | func getCfMasterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_cfMasterAddress()))) | |
129 | 132 | ||
130 | 133 | ||
131 | 134 | func getPotionFee () = getIntegerValue(getOracle(), staticKey_potionFee()) | |
132 | 135 | ||
133 | 136 | ||
134 | 137 | func getCanineStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineStakingAddress()))) | |
138 | + | ||
139 | + | ||
140 | + | func getWearablesAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_wearablesAddress()))) | |
135 | 141 | ||
136 | 142 | ||
137 | 143 | func keyLastCheckInterest (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_lastCheckInterest") | |
138 | 144 | ||
139 | 145 | ||
140 | 146 | func assetFarmingPower (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_farmingPower") | |
141 | 147 | ||
142 | 148 | ||
143 | 149 | func rewardClaimedKey (address,asset) = (((address + "_asset_") + asset) + "_claimed") | |
144 | 150 | ||
145 | 151 | ||
146 | 152 | func totalStakedUserKey (address) = ("total_staked_" + address) | |
147 | 153 | ||
148 | 154 | ||
149 | 155 | let RefererReward = 5 | |
150 | 156 | ||
151 | 157 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
152 | 158 | then throw("FCAP: Please attach waves") | |
153 | 159 | else { | |
154 | 160 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
155 | 161 | if ((payment.amount != feeAmount)) | |
156 | 162 | then throw((("FCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
157 | 163 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
158 | 164 | } | |
159 | 165 | ||
160 | 166 | ||
161 | 167 | func tryGetInteger (key) = match getInteger(this, key) { | |
162 | 168 | case b: Int => | |
163 | 169 | b | |
164 | 170 | case _ => | |
165 | 171 | 0 | |
166 | 172 | } | |
167 | 173 | ||
168 | 174 | ||
169 | 175 | func asInt (value) = match value { | |
170 | 176 | case int: Int => | |
171 | 177 | int | |
172 | 178 | case _ => | |
173 | 179 | throw("FAI: wrong type, expected: Int") | |
174 | 180 | } | |
175 | 181 | ||
176 | 182 | ||
177 | 183 | func asIntTuple (value) = match value { | |
178 | 184 | case int: (Int, Int) => | |
179 | 185 | int | |
180 | 186 | case _ => | |
181 | 187 | throw("FAI: wrong type, expected: (Int,Int)") | |
182 | 188 | } | |
183 | 189 | ||
184 | 190 | ||
185 | 191 | func handleStakingTopUp (amount) = { | |
186 | 192 | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
187 | 193 | let totalStakedAmount = tryGetInteger(totalStakedKey()) | |
188 | 194 | let interestDelta = if ((totalStakedAmount > 0)) | |
189 | 195 | then fraction(amount, Scale, totalStakedAmount) | |
190 | 196 | else 0 | |
191 | 197 | [IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + amount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta))] | |
192 | 198 | } | |
193 | 199 | ||
194 | 200 | ||
195 | 201 | func asString (value) = match value { | |
196 | 202 | case string: String => | |
197 | 203 | string | |
198 | 204 | case _ => | |
199 | 205 | throw("FAS: wrong type, expected: String") | |
200 | 206 | } | |
201 | 207 | ||
202 | 208 | ||
203 | 209 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
204 | 210 | case b: Boolean => | |
205 | 211 | b | |
206 | 212 | case _ => | |
207 | 213 | false | |
208 | 214 | } | |
209 | 215 | ||
210 | 216 | ||
211 | 217 | func tryGetBooleanExternal (address,key) = match getBoolean(address, key) { | |
212 | 218 | case b: Boolean => | |
213 | 219 | b | |
214 | 220 | case _ => | |
215 | 221 | false | |
216 | 222 | } | |
217 | 223 | ||
218 | 224 | ||
219 | 225 | func getAssetOrigin (generation) = if ((generation == "G")) | |
220 | 226 | then getIncubatorAddress() | |
221 | 227 | else getBreederAddress() | |
222 | 228 | ||
223 | 229 | ||
224 | 230 | func getAssetRarity (genotype,generation) = { | |
225 | 231 | let quantity = valueOrErrorMessage(getInteger(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")), (("stats_" + genotype) + "_quantity not found")) | |
226 | 232 | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
227 | 233 | if ((power > 0)) | |
228 | 234 | then power | |
229 | 235 | else 2 | |
230 | 236 | } | |
231 | 237 | ||
232 | 238 | ||
233 | 239 | func getAssetRarityComplete (isJackpot,assetName) = { | |
234 | 240 | let rarity = if (isJackpot) | |
235 | 241 | then 100 | |
236 | 242 | else { | |
237 | 243 | let generation = take(takeRight(assetName, 2), 1) | |
238 | 244 | let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil)) | |
239 | 245 | if ((farmGen == farmGen)) | |
240 | 246 | then getAssetRarity(farmGen, generation) | |
241 | 247 | else throw("Strict value is not equal to itself.") | |
242 | 248 | } | |
243 | 249 | rarity | |
244 | 250 | } | |
245 | 251 | ||
246 | 252 | ||
247 | 253 | func updateFarmingPower (address,asset,originCaller) = { | |
248 | 254 | let totalStaked = tryGetInteger(totalStakedKey()) | |
249 | 255 | let totalStakedUser = tryGetInteger(totalStakedUserKey(address)) | |
250 | 256 | let currentFP = tryGetInteger(assetFarmingPower(address, asset)) | |
251 | 257 | let newFP = asIntTuple(invoke(this, "calculateFarmPower", [asset, originCaller], nil)) | |
252 | 258 | if ((currentFP != 0)) | |
253 | 259 | then [IntegerEntry(totalStakedKey(), ((totalStaked - currentFP) + newFP._1)), IntegerEntry(totalStakedUserKey(address), ((totalStakedUser - currentFP) + newFP._1)), IntegerEntry(assetFarmingPower(address, asset), newFP._1)] | |
254 | 260 | else nil | |
255 | 261 | } | |
256 | 262 | ||
257 | 263 | ||
258 | 264 | func claimStakingResult (address,asset,recalc,walletToReceive,bonusCaller) = { | |
259 | 265 | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
260 | 266 | let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address, asset)) | |
261 | 267 | let stakedAmount = tryGetInteger(assetFarmingPower(address, asset)) | |
262 | 268 | let fpUpdate = if (recalc) | |
263 | 269 | then updateFarmingPower(address, asset, bonusCaller) | |
264 | 270 | else nil | |
265 | 271 | if ((fpUpdate == fpUpdate)) | |
266 | 272 | then { | |
267 | 273 | let reward = if ((lastCheckInterest > 0)) | |
268 | 274 | then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale) | |
269 | 275 | else 0 | |
270 | 276 | $Tuple2(([ScriptTransfer(addressFromStringValue(walletToReceive), reward, getEggAssetId()), IntegerEntry(keyLastCheckInterest(address, asset), currentInterest), IntegerEntry(rewardClaimedKey(walletToReceive, asset), (tryGetInteger(rewardClaimedKey(walletToReceive, asset)) + reward))] ++ fpUpdate), reward) | |
271 | 277 | } | |
272 | 278 | else throw("Strict value is not equal to itself.") | |
273 | 279 | } | |
274 | 280 | ||
275 | 281 | ||
276 | 282 | func asBoolean (value) = match value { | |
277 | 283 | case boolean: Boolean => | |
278 | 284 | boolean | |
279 | 285 | case _ => | |
280 | 286 | throw("FAB: wrong type, expected: Boolean") | |
281 | 287 | } | |
282 | 288 | ||
283 | 289 | ||
284 | 290 | func calculatePerchPrice (address) = { | |
285 | 291 | let hasArtefactStaked = tryGetStringExternal(getAccBoosterAddress(), (("ART-XMISTL_" + address) + "_owner")) | |
286 | 292 | let perchPrice = getIntegerValue(getOracle(), staticKey_perchFee()) | |
287 | 293 | if ((hasArtefactStaked == "")) | |
288 | 294 | then perchPrice | |
289 | 295 | else ((perchPrice / 10) * 9) | |
290 | 296 | } | |
291 | 297 | ||
292 | 298 | ||
293 | 299 | func isProxyStakingSc (address) = { | |
294 | 300 | let allowedContracts = getProxyStaking() | |
295 | 301 | let allowedContractsList = split(allowedContracts, ";") | |
296 | 302 | (indexOf(allowedContractsList, address) != unit) | |
297 | 303 | } | |
298 | 304 | ||
299 | 305 | ||
300 | 306 | @Callable(i) | |
301 | 307 | func calculateFarmPower (assetId,bonusAddress) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreederAddress())) | |
302 | 308 | then true | |
303 | 309 | else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress()))) | |
304 | 310 | then throw("This does not seem like a valid Duck!") | |
305 | - | else { | |
306 | - | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
307 | - | let gen = takeRight(assetName, 1) | |
308 | - | let isJackpot = (takeRight(assetName, 1) == "U") | |
309 | - | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
310 | - | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
311 | - | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
312 | - | then (accum :+ nextGen) | |
313 | - | else accum | |
311 | + | else if (if (tryGetBooleanExternal(getBreederAddress(), (assetId + "_blacklisted"))) | |
312 | + | then true | |
313 | + | else tryGetBooleanExternal(getIncubatorAddress(), (assetId + "_blacklisted"))) | |
314 | + | then throw("Screw urself") | |
315 | + | else { | |
316 | + | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
317 | + | let gen = takeRight(assetName, 1) | |
318 | + | let isJackpot = (takeRight(assetName, 1) == "U") | |
319 | + | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
320 | + | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
321 | + | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
322 | + | then (accum :+ nextGen) | |
323 | + | else accum | |
314 | 324 | ||
315 | - | let uniqueList = { | |
316 | - | let $l = genotype | |
317 | - | let $s = size($l) | |
318 | - | let $acc0 = nil | |
319 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
320 | - | then $a | |
321 | - | else uniqueArrayFilter($a, $l[$i]) | |
325 | + | let uniqueList = { | |
326 | + | let $l = genotype | |
327 | + | let $s = size($l) | |
328 | + | let $acc0 = nil | |
329 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
330 | + | then $a | |
331 | + | else uniqueArrayFilter($a, $l[$i]) | |
322 | 332 | ||
323 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
324 | - | then $a | |
325 | - | else throw("List size exceeds 8") | |
333 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
334 | + | then $a | |
335 | + | else throw("List size exceeds 8") | |
326 | 336 | ||
327 | - | $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) | |
337 | + | $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) | |
338 | + | } | |
339 | + | let totalGenes = if ((gen == "U")) | |
340 | + | then 8 | |
341 | + | else size(uniqueList) | |
342 | + | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
343 | + | let baseBlock = if (isTestEnv()) | |
344 | + | then 2500000 | |
345 | + | else 3750000 | |
346 | + | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
347 | + | let basePower = tryGetInteger((assetId + "_basePower")) | |
348 | + | let finalPower = if ((basePower > 0)) | |
349 | + | then basePower | |
350 | + | else ((power * multiplier) / 100) | |
351 | + | let finalPowerRarity = ((finalPower * rarity) / 100) | |
352 | + | let farmBoost = asInt(invoke(getItemsAddress(), "calculateFarmingPowerBoost", [assetId, bonusAddress], nil)) | |
353 | + | if ((farmBoost == farmBoost)) | |
354 | + | then { | |
355 | + | let wearabledBoost = asInt(invoke(getWearablesAddress(), "calculateWearblesBoost", [assetId], nil)) | |
356 | + | if ((wearabledBoost == wearabledBoost)) | |
357 | + | then { | |
358 | + | let finalPowerRarityBoost = ((finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) + ((finalPowerRarity * wearabledBoost) / 1000)) | |
359 | + | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
360 | + | } | |
361 | + | else throw("Strict value is not equal to itself.") | |
362 | + | } | |
363 | + | else throw("Strict value is not equal to itself.") | |
328 | 364 | } | |
329 | - | let totalGenes = if ((gen == "U")) | |
330 | - | then 8 | |
331 | - | else size(uniqueList) | |
332 | - | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
333 | - | let baseBlock = if (isTestEnv()) | |
334 | - | then 2500000 | |
335 | - | else 3750000 | |
336 | - | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
337 | - | let basePower = tryGetInteger((assetId + "_basePower")) | |
338 | - | let finalPower = if ((basePower > 0)) | |
339 | - | then basePower | |
340 | - | else ((power * multiplier) / 100) | |
341 | - | let finalPowerRarity = ((finalPower * rarity) / 100) | |
342 | - | let farmBoost = asInt(invoke(getItemsAddress(), "calculateFarmingPowerBoost", [assetId, bonusAddress], nil)) | |
343 | - | if ((farmBoost == farmBoost)) | |
344 | - | then { | |
345 | - | let finalPowerRarityBoost = (finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) | |
346 | - | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
347 | - | } | |
348 | - | else throw("Strict value is not equal to itself.") | |
349 | - | } | |
350 | 365 | ||
351 | 366 | ||
352 | 367 | ||
353 | 368 | @Callable(i) | |
354 | 369 | func configureOracle (oracle) = if ((i.caller != this)) | |
355 | 370 | then throw("FCO: admin only") | |
356 | 371 | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
357 | 372 | ||
358 | 373 | ||
359 | 374 | ||
360 | 375 | @Callable(i) | |
361 | 376 | func buyPerch (colorI,refererAddress) = { | |
362 | 377 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
363 | 378 | if ((validPayment == validPayment)) | |
364 | 379 | then { | |
365 | 380 | let color = if ((colorI == "U")) | |
366 | 381 | then "B" | |
367 | 382 | else colorI | |
368 | 383 | if ((0 > value(indexOf(["B", "R", "G", "Y"], color)))) | |
369 | 384 | then throw("you need to set color properly") | |
370 | 385 | else { | |
371 | 386 | let exactPrice = calculatePerchPrice(toString(i.caller)) | |
372 | 387 | let leftToPay = if ((i.originCaller == i.caller)) | |
373 | 388 | then { | |
374 | 389 | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [exactPrice], nil)) | |
375 | 390 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
376 | 391 | then (exactPrice - amountPaidByCoupons) | |
377 | 392 | else throw("Strict value is not equal to itself.") | |
378 | 393 | } | |
379 | 394 | else exactPrice | |
380 | 395 | let payment = if ((leftToPay != 0)) | |
381 | 396 | then { | |
382 | 397 | let firstPayment = if ((size(i.payments) == 2)) | |
383 | 398 | then value(i.payments[1]) | |
384 | 399 | else value(i.payments[0]) | |
385 | 400 | if ((firstPayment.assetId != getEggAssetId())) | |
386 | 401 | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
387 | 402 | else if ((firstPayment.amount != leftToPay)) | |
388 | 403 | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
389 | 404 | else { | |
390 | 405 | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
391 | 406 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
392 | 407 | if ((refCall == refCall)) | |
393 | 408 | then { | |
394 | 409 | let toBurn = if (refCall) | |
395 | 410 | then (leftToPay - refererRewardForPerch) | |
396 | 411 | else leftToPay | |
397 | 412 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
398 | 413 | if ((burnCall == burnCall)) | |
399 | 414 | then leftToPay | |
400 | 415 | else throw("Strict value is not equal to itself.") | |
401 | 416 | } | |
402 | 417 | else throw("Strict value is not equal to itself.") | |
403 | 418 | } | |
404 | 419 | } | |
405 | 420 | else 0 | |
406 | 421 | if ((payment == payment)) | |
407 | 422 | then { | |
408 | 423 | let perchAmountKey = ((("address_" + toString(i.caller)) + "_perchesAvailable_") + color) | |
409 | 424 | let perchAmount = tryGetInteger(perchAmountKey) | |
410 | 425 | ([IntegerEntry(perchAmountKey, (perchAmount + 1))] ++ validPayment) | |
411 | 426 | } | |
412 | 427 | else throw("Strict value is not equal to itself.") | |
413 | 428 | } | |
414 | 429 | } | |
415 | 430 | else throw("Strict value is not equal to itself.") | |
416 | 431 | } | |
417 | 432 | ||
418 | 433 | ||
419 | 434 | ||
420 | 435 | @Callable(i) | |
421 | 436 | func addFreePerch (address,color,amount) = if ((0 > value(indexOf(["B", "R", "G", "Y"], color)))) | |
422 | 437 | then throw("you need to set color properly") | |
423 | - | else if (if (if ((i.caller != getRebirthAddress())) | |
438 | + | else if (if (if (if ((i.caller != getRebirthAddress())) | |
424 | 439 | then (i.caller != getTurtleRebirthAddress()) | |
425 | 440 | else false) | |
426 | 441 | then (i.caller != this) | |
442 | + | else false) | |
443 | + | then (i.caller != getCouponsAddress()) | |
427 | 444 | else false) | |
428 | 445 | then throw("rebirth and admin only") | |
429 | 446 | else { | |
430 | 447 | let perchAmountKey = ((("address_" + address) + "_perchesAvailable_") + color) | |
431 | 448 | let perchAmount = tryGetInteger(perchAmountKey) | |
432 | 449 | $Tuple2([IntegerEntry(perchAmountKey, (perchAmount + amount))], "") | |
433 | 450 | } | |
434 | 451 | ||
435 | 452 | ||
436 | 453 | ||
437 | 454 | @Callable(i) | |
438 | 455 | func migratePerches (address) = { | |
439 | 456 | let oldFarming = addressFromStringValue(tryGetStringExternal(getOracle(), "static_farmingAddress")) | |
440 | 457 | func tryGetIntegerOldFarming (key) = match getInteger(oldFarming, key) { | |
441 | 458 | case b: Int => | |
442 | 459 | b | |
443 | 460 | case _ => | |
444 | 461 | 0 | |
445 | 462 | } | |
446 | 463 | ||
447 | 464 | let perchAmountB = tryGetIntegerOldFarming((("address_" + address) + "_perchesAvailable_B")) | |
448 | 465 | if ((perchAmountB == perchAmountB)) | |
449 | 466 | then { | |
450 | 467 | let perchAmountR = tryGetIntegerOldFarming((("address_" + address) + "_perchesAvailable_R")) | |
451 | 468 | if ((perchAmountR == perchAmountR)) | |
452 | 469 | then { | |
453 | 470 | let perchAmountG = tryGetIntegerOldFarming((("address_" + address) + "_perchesAvailable_G")) | |
454 | 471 | if ((perchAmountG == perchAmountG)) | |
455 | 472 | then { | |
456 | 473 | let perchAmountY = tryGetIntegerOldFarming((("address_" + address) + "_perchesAvailable_Y")) | |
457 | 474 | if ((perchAmountY == perchAmountY)) | |
458 | 475 | then { | |
459 | 476 | let perchAmountBInvoke = invoke(this, "addFreePerch", [address, "B", perchAmountB], nil) | |
460 | 477 | if ((perchAmountBInvoke == perchAmountBInvoke)) | |
461 | 478 | then { | |
462 | 479 | let perchAmountRInvoke = invoke(this, "addFreePerch", [address, "R", perchAmountR], nil) | |
463 | 480 | if ((perchAmountRInvoke == perchAmountRInvoke)) | |
464 | 481 | then { | |
465 | 482 | let perchAmountGInvoke = invoke(this, "addFreePerch", [address, "G", perchAmountG], nil) | |
466 | 483 | if ((perchAmountGInvoke == perchAmountGInvoke)) | |
467 | 484 | then { | |
468 | 485 | let perchAmountYInvoke = invoke(this, "addFreePerch", [address, "Y", perchAmountY], nil) | |
469 | 486 | if ((perchAmountYInvoke == perchAmountYInvoke)) | |
470 | 487 | then if (if (if (if ((perchAmountB == 0)) | |
471 | 488 | then (perchAmountR == 0) | |
472 | 489 | else false) | |
473 | 490 | then (perchAmountG == 0) | |
474 | 491 | else false) | |
475 | 492 | then (perchAmountY == 0) | |
476 | 493 | else false) | |
477 | 494 | then throw("Nothing to migrate") | |
478 | 495 | else { | |
479 | 496 | let invokePerchesDelete = invoke(oldFarming, "removePerches", [address], nil) | |
480 | 497 | if ((invokePerchesDelete == invokePerchesDelete)) | |
481 | 498 | then nil | |
482 | 499 | else throw("Strict value is not equal to itself.") | |
483 | 500 | } | |
484 | 501 | else throw("Strict value is not equal to itself.") | |
485 | 502 | } | |
486 | 503 | else throw("Strict value is not equal to itself.") | |
487 | 504 | } | |
488 | 505 | else throw("Strict value is not equal to itself.") | |
489 | 506 | } | |
490 | 507 | else throw("Strict value is not equal to itself.") | |
491 | 508 | } | |
492 | 509 | else throw("Strict value is not equal to itself.") | |
493 | 510 | } | |
494 | 511 | else throw("Strict value is not equal to itself.") | |
495 | 512 | } | |
496 | 513 | else throw("Strict value is not equal to itself.") | |
497 | 514 | } | |
498 | 515 | else throw("Strict value is not equal to itself.") | |
499 | 516 | } | |
500 | 517 | ||
501 | 518 | ||
502 | 519 | ||
503 | 520 | @Callable(i) | |
504 | 521 | func stakeNFT (jColor,usePerchOrigin,stakeWithoutPerch) = if (if (stakeWithoutPerch) | |
505 | 522 | then !(isProxyStakingSc(toString(i.caller))) | |
506 | 523 | else false) | |
507 | 524 | then throw("You can't stake without a perch") | |
508 | 525 | else { | |
509 | 526 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
510 | 527 | if ((validPayment == validPayment)) | |
511 | 528 | then { | |
512 | 529 | let pmt = value(i.payments[1]) | |
513 | 530 | let assetId = value(pmt.assetId) | |
514 | 531 | let assetName = value(value(assetInfo(assetId)).name) | |
515 | 532 | let isJackpot = (takeRight(assetName, 1) == "U") | |
516 | 533 | let address = toString(i.caller) | |
517 | 534 | let perchAddress = if (usePerchOrigin) | |
518 | 535 | then toString(i.originCaller) | |
519 | 536 | else address | |
520 | 537 | let perches = if (stakeWithoutPerch) | |
521 | 538 | then nil | |
522 | 539 | else { | |
523 | 540 | let color = if (isJackpot) | |
524 | 541 | then jColor | |
525 | 542 | else takeRight(assetName, 1) | |
526 | 543 | let availablePerches = tryGetInteger(((("address_" + perchAddress) + "_perchesAvailable_") + color)) | |
527 | 544 | if ((0 >= availablePerches)) | |
528 | 545 | then throw(("no perches available for the color " + color)) | |
529 | 546 | else [IntegerEntry(((("address_" + perchAddress) + "_perchesAvailable_") + color), (availablePerches - 1)), StringEntry((((("address_" + address) + "_asset_") + toBase58String(assetId)) + "_perchColor"), color)] | |
530 | 547 | } | |
531 | 548 | if ((perches == perches)) | |
532 | 549 | then if ((pmt.amount != 1)) | |
533 | 550 | then throw("NFT is not attached") | |
534 | 551 | else { | |
535 | 552 | let farmingPower = asIntTuple(invoke(this, "calculateFarmPower", [toBase58String(assetId), toString(i.originCaller)], nil)) | |
536 | 553 | if ((farmingPower == farmingPower)) | |
537 | 554 | then { | |
538 | 555 | let result = claimStakingResult(address, toBase58String(assetId), false, address, toString(i.originCaller)) | |
539 | 556 | if ((result == result)) | |
540 | 557 | then ((([IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) + farmingPower._1)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) + farmingPower._1)), StringEntry((toBase58String(assetId) + "_owner"), address), BooleanEntry((toBase58String(assetId) + "_use_origin"), usePerchOrigin), StringEntry((toBase58String(assetId) + "_original_caller"), toString(i.originCaller)), IntegerEntry(assetFarmingPower(address, toBase58String(assetId)), farmingPower._1), IntegerEntry((toBase58String(assetId) + "_basePower"), farmingPower._2), BooleanEntry((toBase58String(assetId) + "_without_perch"), stakeWithoutPerch)] ++ validPayment) ++ perches) ++ result._1) | |
541 | 558 | else throw("Strict value is not equal to itself.") | |
542 | 559 | } | |
543 | 560 | else throw("Strict value is not equal to itself.") | |
544 | 561 | } | |
545 | 562 | else throw("Strict value is not equal to itself.") | |
546 | 563 | } | |
547 | 564 | else throw("Strict value is not equal to itself.") | |
548 | 565 | } | |
549 | 566 | ||
550 | 567 | ||
551 | 568 | ||
552 | 569 | @Callable(i) | |
553 | 570 | func unstakeNFT (asset) = { | |
554 | 571 | let address = toString(i.caller) | |
555 | 572 | if ((tryGetString((asset + "_owner")) != toString(i.caller))) | |
556 | 573 | then throw("You don't own this duck!!") | |
557 | 574 | else { | |
558 | 575 | let result = claimStakingResult(address, asset, false, address, toString(i.originCaller)) | |
559 | 576 | if ((result == result)) | |
560 | 577 | then { | |
561 | 578 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
562 | 579 | if ((validPayment == validPayment)) | |
563 | 580 | then { | |
564 | 581 | let color = tryGetString((((("address_" + address) + "_asset_") + asset) + "_perchColor")) | |
565 | 582 | let withoutPerch = tryGetBoolean((asset + "_without_perch")) | |
566 | 583 | let perches = if (withoutPerch) | |
567 | 584 | then nil | |
568 | 585 | else { | |
569 | 586 | let usePerchOrigin = tryGetBoolean((asset + "_use_origin")) | |
570 | 587 | let perchOwner = if (usePerchOrigin) | |
571 | 588 | then toString(i.originCaller) | |
572 | 589 | else address | |
573 | 590 | [IntegerEntry(((("address_" + perchOwner) + "_perchesAvailable_") + color), (tryGetInteger(((("address_" + perchOwner) + "_perchesAvailable_") + color)) + 1))] | |
574 | 591 | } | |
575 | 592 | if ((perches == perches)) | |
576 | 593 | then { | |
577 | 594 | let assetFP = tryGetInteger(assetFarmingPower(address, asset)) | |
578 | 595 | if ((assetFP == assetFP)) | |
579 | 596 | 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))] ++ validPayment) ++ perches) ++ result._1), result._2) | |
580 | 597 | else throw("Strict value is not equal to itself.") | |
581 | 598 | } | |
582 | 599 | else throw("Strict value is not equal to itself.") | |
583 | 600 | } | |
584 | 601 | else throw("Strict value is not equal to itself.") | |
585 | 602 | } | |
586 | 603 | else throw("Strict value is not equal to itself.") | |
587 | 604 | } | |
588 | 605 | } | |
589 | 606 | ||
590 | 607 | ||
591 | 608 | ||
592 | 609 | @Callable(i) | |
593 | 610 | func topUpReward () = { | |
594 | 611 | let firstPayment = value(i.payments[0]) | |
595 | 612 | if ((firstPayment.assetId != getEggAssetId())) | |
596 | 613 | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
597 | 614 | else { | |
598 | 615 | let resHandleStaking = handleStakingTopUp(firstPayment.amount) | |
599 | 616 | $Tuple2(resHandleStaking, true) | |
600 | 617 | } | |
601 | 618 | } | |
602 | 619 | ||
603 | 620 | ||
604 | 621 | ||
605 | 622 | @Callable(i) | |
606 | 623 | func claimReward (assetId) = { | |
607 | 624 | let validPayment = if ((i.originCaller == getCfMasterAddress())) | |
608 | 625 | then nil | |
609 | 626 | else checkAdditionalPayment(i.payments[0]) | |
610 | 627 | if ((validPayment == validPayment)) | |
611 | 628 | then if (if ((tryGetString((assetId + "_owner")) != toString(i.caller))) | |
612 | 629 | then (tryGetString((assetId + "_original_caller")) != toString(i.caller)) | |
613 | 630 | else false) | |
614 | 631 | then throw((("You don't own this duck (" + assetId) + ")!! ")) | |
615 | 632 | else if ((size(i.payments) > 1)) | |
616 | 633 | then throw("Please don't add extra payments") | |
617 | 634 | else { | |
618 | 635 | let toReceive = if ((i.originCaller != getCfMasterAddress())) | |
619 | 636 | then toString(i.caller) | |
620 | 637 | else tryGetString((assetId + "_original_caller")) | |
621 | 638 | let owner = if ((i.originCaller != getCfMasterAddress())) | |
622 | 639 | then toString(i.caller) | |
623 | 640 | else tryGetString((assetId + "_owner")) | |
624 | 641 | let origin = if ((i.originCaller != getCfMasterAddress())) | |
625 | 642 | then toString(i.originCaller) | |
626 | 643 | else tryGetString((assetId + "_original_caller")) | |
627 | 644 | let result = claimStakingResult(owner, assetId, true, toReceive, origin) | |
628 | 645 | $Tuple2((validPayment ++ result._1), result._2) | |
629 | 646 | } | |
630 | 647 | else throw("Strict value is not equal to itself.") | |
631 | 648 | } | |
632 | 649 | ||
633 | 650 | ||
634 | 651 | ||
635 | 652 | @Callable(i) | |
636 | 653 | func redeemItem (type,nftAssetId) = { | |
637 | 654 | let wavesPayment = i.payments[0] | |
638 | 655 | if ((wavesPayment == wavesPayment)) | |
639 | 656 | then { | |
640 | 657 | let potionPayment = value(i.payments[1]) | |
641 | 658 | if ((potionPayment == potionPayment)) | |
642 | 659 | then if ((potionPayment.amount != 1)) | |
643 | 660 | then throw("You need to attach exactly 1 potion") | |
644 | 661 | else { | |
645 | 662 | let artefact = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(value(value(potionPayment).assetId))], nil)) | |
646 | 663 | if ((artefact == artefact)) | |
647 | 664 | then if ((artefact != "ART-POTION")) | |
648 | 665 | then throw("You need to attach a ART-POTION artefact") | |
649 | 666 | else if ((wavesPayment.assetId != unit)) | |
650 | 667 | then throw("You need to attach waves") | |
651 | 668 | else if ((wavesPayment.amount != getPotionFee())) | |
652 | 669 | then throw((("You need to attach exactly " + toString(getPotionFee())) + " waves")) | |
653 | 670 | else { | |
654 | 671 | let sendToAggreGator = (wavesPayment.amount / 2) | |
655 | 672 | let topup = (wavesPayment.amount - sendToAggreGator) | |
656 | 673 | let basePower = tryGetInteger((nftAssetId + "_basePower")) | |
657 | 674 | if ((basePower == 0)) | |
658 | 675 | then throw("This is not a valid duck or the duck waves never staked!") | |
659 | 676 | else if ((tryGetString((nftAssetId + "_owner")) != "")) | |
660 | 677 | then throw("Please usntake your duck first!!") | |
661 | 678 | else { | |
662 | 679 | let addMore = invoke(getCanineStakingAddress(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, topup)]) | |
663 | 680 | if ((addMore == addMore)) | |
664 | 681 | then [ScriptTransfer(getFeeAggregator(), sendToAggreGator, unit), DeleteEntry((nftAssetId + "_basePower"))] | |
665 | 682 | else throw("Strict value is not equal to itself.") | |
666 | 683 | } | |
667 | 684 | } | |
668 | 685 | else throw("Strict value is not equal to itself.") | |
669 | 686 | } | |
670 | 687 | else throw("Strict value is not equal to itself.") | |
671 | 688 | } | |
672 | 689 | else throw("Strict value is not equal to itself.") | |
673 | 690 | } | |
674 | 691 | ||
675 | 692 | ||
676 | 693 | @Verifier(tx) | |
677 | 694 | func verify () = if (isTestEnv()) | |
678 | 695 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
679 | 696 | else { | |
680 | 697 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
681 | 698 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
682 | 699 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
683 | 700 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
684 | 701 | then 1 | |
685 | 702 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
686 | 703 | then 1 | |
687 | 704 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
688 | 705 | then 1 | |
689 | 706 | else 0 | |
690 | 707 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
691 | 708 | then 1 | |
692 | 709 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
693 | 710 | then 1 | |
694 | 711 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
695 | 712 | then 1 | |
696 | 713 | else 0 | |
697 | 714 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
698 | 715 | then 1 | |
699 | 716 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
700 | 717 | then 1 | |
701 | 718 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
702 | 719 | then 1 | |
703 | 720 | else 0 | |
704 | 721 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
705 | 722 | match tx { | |
706 | 723 | case _ => | |
707 | 724 | (signaturesCount >= 2) | |
708 | 725 | } | |
709 | 726 | } | |
710 | 727 |
github/deemru/w8io/169f3d6 69.34 ms ◑