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