tx · AfDhXB4qkHo2AwDea7N669tvSW268WbzdcjEgnXXZeLe 3Mqa6zGAReUUwsty7AzdVc62A8ZGtHMFeoi: -0.02700000 Waves 2025.01.18 01:58 [3463739] smart account 3Mqa6zGAReUUwsty7AzdVc62A8ZGtHMFeoi > SELF 0.00000000 Waves
{ "type": 13, "id": "AfDhXB4qkHo2AwDea7N669tvSW268WbzdcjEgnXXZeLe", "fee": 2700000, "feeAssetId": null, "timestamp": 1737154766252, "version": 2, "chainId": 84, "sender": "3Mqa6zGAReUUwsty7AzdVc62A8ZGtHMFeoi", "senderPublicKey": "9b2JEUjYeofMVhbJ76R6NmPWyLhEQBazsco3RnaecC2", "proofs": [ "2AXEE2RgQHecpfVq1AXkoRz4Z8rTVQqCYQXv6JgqkUHkoTWrowriSfQrnzWanVEhjDd7iuug7Kzja8EF3PgtLLg3" ], "script": "base64:AAIFAAAAAAAAAC8IAhIECgIICBIDCgEIEgQKAggIEgUKAwgIARIDCgEIEgMKAQgSABIAEgASAwoBCAAAADcAAAAABVNjYWxlAAAAAAAF9eEAAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkJAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAcc3RhdGljS2V5X3JlZkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAGXN0YXRpY19yZWZDb250cmFjdEFkZHJlc3MAAAAAFWtleUdsb2JhbExhc3RJbnRlcmVzdAIAAAAZZ2xvYmFsX2xhc3RDaGVja19pbnRlcmVzdAEAAAAXc3RhdGljS2V5X29yYWNsZUFkZHJl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 0 } View: original | compacted Prev: 45xSJ6HJ5SEPvZt4U46EiNKKbV48iUhoHeKf16PWspts Next: BgWk9k1jxD9wbfkeHxaVC5Egw3YCYL7uX8gMdWd9yY9B Diff:
Old | New | Differences | |
---|---|---|---|
309 | 309 | then 8 | |
310 | 310 | else size(uniqueList) | |
311 | 311 | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
312 | - | let multiplier = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
312 | + | let baseBlock = if (isTestEnv()) | |
313 | + | then 2500000 | |
314 | + | else 3750000 | |
315 | + | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
313 | 316 | let basePower = tryGetInteger((assetId + "_basePower")) | |
314 | 317 | let finalPower = if ((basePower > 0)) | |
315 | 318 | 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_eaglIncubatorAddress () = "static_eagleIncubatorAddress" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func staticKey_eaglBreederAddress () = "static_eagleBreederAddress" | |
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_eaglePerchFee" | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func totalStakedKey () = "total_staked" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func staticKey_pzlAssetId () = "static_puzzleAssetId" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func staticKey_pzlDapp () = "static_puzzleDappAddress" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func staticKey_eaglRebirthAddress () = "static_eagleRebirthAddress" | |
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_eaglIncubatorAddress()))) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eaglBreederAddress()))) | |
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 getPzlAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_pzlAssetId())) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func getPzlDappAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_pzlDapp()))) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getEaglRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eaglRebirthAddress()))) | |
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 = if (isTestEnv()) | |
173 | 173 | then nil | |
174 | 174 | else invoke(getPzlDappAddress(), "stake", nil, [AttachedPayment(getPzlAssetId(), compoundAmount)]) | |
175 | 175 | if ((invokeRes == invokeRes)) | |
176 | 176 | then [IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + payoutAmount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta)), IntegerEntry("global_PZL_balance", (tryGetInteger("global_PZL_balance") + compoundAmount)), ScriptTransfer(getFeeAggregator(), team, getPzlAssetId())] | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func asString (value) = match value { | |
182 | 182 | case string: String => | |
183 | 183 | string | |
184 | 184 | case _ => | |
185 | 185 | throw("FAS: wrong type, expected: String") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
190 | 190 | case b: Boolean => | |
191 | 191 | b | |
192 | 192 | case _ => | |
193 | 193 | false | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func tryGetBooleanExternal (address,key) = match getBoolean(address, key) { | |
198 | 198 | case b: Boolean => | |
199 | 199 | b | |
200 | 200 | case _ => | |
201 | 201 | false | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func getAssetOrigin (generation) = if ((generation == "G")) | |
206 | 206 | then getIncubatorAddress() | |
207 | 207 | else getBreederAddress() | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func getAssetRarity (genotype,generation) = { | |
211 | 211 | let quantity = valueOrErrorMessage(getInteger(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")), (("stats_" + genotype) + "_quantity not found")) | |
212 | 212 | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
213 | 213 | if ((power > 0)) | |
214 | 214 | then power | |
215 | 215 | else 2 | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func getAssetRarityComplete (isJackpot,assetName) = { | |
220 | 220 | let rarity = if (isJackpot) | |
221 | 221 | then 100 | |
222 | 222 | else { | |
223 | 223 | let generation = take(takeRight(assetName, 2), 1) | |
224 | 224 | let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil)) | |
225 | 225 | if ((farmGen == farmGen)) | |
226 | 226 | then getAssetRarity(farmGen, generation) | |
227 | 227 | else throw("Strict value is not equal to itself.") | |
228 | 228 | } | |
229 | 229 | rarity | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func updateFarmingPower (address,asset) = { | |
234 | 234 | let totalStaked = tryGetInteger(totalStakedKey()) | |
235 | 235 | let totalStakedUser = tryGetInteger(totalStakedUserKey(address)) | |
236 | 236 | let currentFP = tryGetInteger(assetFarmingPower(address, asset)) | |
237 | 237 | let newFP = asIntTuple(invoke(this, "calculateFarmPower", [asset, address], nil)) | |
238 | 238 | if ((currentFP != 0)) | |
239 | 239 | then [IntegerEntry(totalStakedKey(), ((totalStaked - currentFP) + newFP._1)), IntegerEntry(totalStakedUserKey(address), ((totalStakedUser - currentFP) + newFP._1)), IntegerEntry(assetFarmingPower(address, asset), newFP._1)] | |
240 | 240 | else nil | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func claimStakingResult (address,asset,recalc) = { | |
245 | 245 | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
246 | 246 | let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address, asset)) | |
247 | 247 | let stakedAmount = tryGetInteger(assetFarmingPower(address, asset)) | |
248 | 248 | let fpUpdate = if (recalc) | |
249 | 249 | then updateFarmingPower(address, asset) | |
250 | 250 | else nil | |
251 | 251 | if ((fpUpdate == fpUpdate)) | |
252 | 252 | then { | |
253 | 253 | let reward = if ((lastCheckInterest > 0)) | |
254 | 254 | then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale) | |
255 | 255 | else 0 | |
256 | 256 | $Tuple2(([ScriptTransfer(addressFromStringValue(address), reward, getPzlAssetId()), IntegerEntry(keyLastCheckInterest(address, asset), currentInterest), IntegerEntry(rewardClaimedKey(address, asset), (tryGetInteger(rewardClaimedKey(address, asset)) + reward))] ++ fpUpdate), reward) | |
257 | 257 | } | |
258 | 258 | else throw("Strict value is not equal to itself.") | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func asBoolean (value) = match value { | |
263 | 263 | case boolean: Boolean => | |
264 | 264 | boolean | |
265 | 265 | case _ => | |
266 | 266 | throw("FAB: wrong type, expected: Boolean") | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func calculatePerchPrice (address) = { | |
271 | 271 | let hasArtefactStaked = tryGetStringExternal(getAccBoosterAddress(), (("ART-XMISTL_" + address) + "_owner")) | |
272 | 272 | let perchPrice = getIntegerValue(getOracle(), staticKey_perchFee()) | |
273 | 273 | if ((hasArtefactStaked == "")) | |
274 | 274 | then perchPrice | |
275 | 275 | else ((perchPrice / 10) * 9) | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(i) | |
280 | 280 | func calculateFarmPower (assetId,bonusAddress) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreederAddress())) | |
281 | 281 | then true | |
282 | 282 | else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress()))) | |
283 | 283 | then throw("This does not seem like a valid Duck!") | |
284 | 284 | else { | |
285 | 285 | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
286 | 286 | let gen = takeRight(assetName, 1) | |
287 | 287 | let isJackpot = (takeRight(assetName, 1) == "U") | |
288 | 288 | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
289 | 289 | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
290 | 290 | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
291 | 291 | then (accum :+ nextGen) | |
292 | 292 | else accum | |
293 | 293 | ||
294 | 294 | let uniqueList = { | |
295 | 295 | let $l = genotype | |
296 | 296 | let $s = size($l) | |
297 | 297 | let $acc0 = nil | |
298 | 298 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
299 | 299 | then $a | |
300 | 300 | else uniqueArrayFilter($a, $l[$i]) | |
301 | 301 | ||
302 | 302 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
303 | 303 | then $a | |
304 | 304 | else throw("List size exceeds 8") | |
305 | 305 | ||
306 | 306 | $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) | |
307 | 307 | } | |
308 | 308 | let totalGenes = if ((gen == "U")) | |
309 | 309 | then 8 | |
310 | 310 | else size(uniqueList) | |
311 | 311 | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
312 | - | let multiplier = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
312 | + | let baseBlock = if (isTestEnv()) | |
313 | + | then 2500000 | |
314 | + | else 3750000 | |
315 | + | let multiplier = (((height - baseBlock) * 100) / (((60 * 24) * 30) * 3)) | |
313 | 316 | let basePower = tryGetInteger((assetId + "_basePower")) | |
314 | 317 | let finalPower = if ((basePower > 0)) | |
315 | 318 | then basePower | |
316 | 319 | else ((power * multiplier) / 100) | |
317 | 320 | let finalPowerRarity = ((finalPower * rarity) / 100) | |
318 | 321 | let farmBoost = 0 | |
319 | 322 | if ((farmBoost == farmBoost)) | |
320 | 323 | then { | |
321 | 324 | let finalPowerRarityBoost = (finalPowerRarity + ((finalPowerRarity * farmBoost) / 100)) | |
322 | 325 | $Tuple2(nil, $Tuple2(finalPowerRarityBoost, finalPower)) | |
323 | 326 | } | |
324 | 327 | else throw("Strict value is not equal to itself.") | |
325 | 328 | } | |
326 | 329 | ||
327 | 330 | ||
328 | 331 | ||
329 | 332 | @Callable(i) | |
330 | 333 | func configureOracle (oracle) = if ((i.caller != this)) | |
331 | 334 | then throw("FCO: admin only") | |
332 | 335 | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
333 | 336 | ||
334 | 337 | ||
335 | 338 | ||
336 | 339 | @Callable(i) | |
337 | 340 | func buyPerch (colorI,refererAddress) = { | |
338 | 341 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
339 | 342 | if ((validPayment == validPayment)) | |
340 | 343 | then { | |
341 | 344 | let color = if ((colorI == "U")) | |
342 | 345 | then "B" | |
343 | 346 | else colorI | |
344 | 347 | if ((0 > value(indexOf(["A", "B", "C", "D"], color)))) | |
345 | 348 | then throw("you need to set color properly") | |
346 | 349 | else { | |
347 | 350 | let exactPrice = calculatePerchPrice(toString(i.caller)) | |
348 | 351 | let leftToPay = if ((i.originCaller == i.caller)) | |
349 | 352 | then { | |
350 | 353 | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [exactPrice], nil)) | |
351 | 354 | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
352 | 355 | then (exactPrice - amountPaidByCoupons) | |
353 | 356 | else throw("Strict value is not equal to itself.") | |
354 | 357 | } | |
355 | 358 | else exactPrice | |
356 | 359 | let payment = if ((leftToPay != 0)) | |
357 | 360 | then { | |
358 | 361 | let firstPayment = if ((size(i.payments) == 2)) | |
359 | 362 | then value(i.payments[1]) | |
360 | 363 | else value(i.payments[0]) | |
361 | 364 | if ((firstPayment.assetId != getEggAssetId())) | |
362 | 365 | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
363 | 366 | else if ((firstPayment.amount != leftToPay)) | |
364 | 367 | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
365 | 368 | else { | |
366 | 369 | let refererRewardForPerch = fraction(leftToPay, 5, 100) | |
367 | 370 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
368 | 371 | if ((refCall == refCall)) | |
369 | 372 | then { | |
370 | 373 | let toBurn = if (refCall) | |
371 | 374 | then (leftToPay - refererRewardForPerch) | |
372 | 375 | else leftToPay | |
373 | 376 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
374 | 377 | if ((burnCall == burnCall)) | |
375 | 378 | then leftToPay | |
376 | 379 | else throw("Strict value is not equal to itself.") | |
377 | 380 | } | |
378 | 381 | else throw("Strict value is not equal to itself.") | |
379 | 382 | } | |
380 | 383 | } | |
381 | 384 | else 0 | |
382 | 385 | if ((payment == payment)) | |
383 | 386 | then { | |
384 | 387 | let perchAmountKey = ((("address_" + toString(i.caller)) + "_perchesAvailable_") + color) | |
385 | 388 | let perchAmount = tryGetInteger(perchAmountKey) | |
386 | 389 | ([IntegerEntry(perchAmountKey, (perchAmount + 1))] ++ validPayment) | |
387 | 390 | } | |
388 | 391 | else throw("Strict value is not equal to itself.") | |
389 | 392 | } | |
390 | 393 | } | |
391 | 394 | else throw("Strict value is not equal to itself.") | |
392 | 395 | } | |
393 | 396 | ||
394 | 397 | ||
395 | 398 | ||
396 | 399 | @Callable(i) | |
397 | 400 | func addFreePerch (address,color,amount) = if ((0 > value(indexOf(["A", "B", "C", "D"], color)))) | |
398 | 401 | then throw("you need to set color properly") | |
399 | 402 | else if (if ((i.caller != this)) | |
400 | 403 | then (i.caller != getEaglRebirthAddress()) | |
401 | 404 | else false) | |
402 | 405 | then throw("rebirth and admin only") | |
403 | 406 | else { | |
404 | 407 | let perchAmountKey = ((("address_" + address) + "_perchesAvailable_") + color) | |
405 | 408 | let perchAmount = tryGetInteger(perchAmountKey) | |
406 | 409 | $Tuple2([IntegerEntry(perchAmountKey, (perchAmount + amount))], "") | |
407 | 410 | } | |
408 | 411 | ||
409 | 412 | ||
410 | 413 | ||
411 | 414 | @Callable(i) | |
412 | 415 | func stakeNFT (jColor) = { | |
413 | 416 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
414 | 417 | if ((validPayment == validPayment)) | |
415 | 418 | then { | |
416 | 419 | let pmt = value(i.payments[1]) | |
417 | 420 | let assetId = value(pmt.assetId) | |
418 | 421 | let assetName = value(value(assetInfo(assetId)).name) | |
419 | 422 | let isJackpot = (takeRight(assetName, 1) == "U") | |
420 | 423 | let address = toString(i.caller) | |
421 | 424 | let perchAddress = address | |
422 | 425 | let color = if (isJackpot) | |
423 | 426 | then jColor | |
424 | 427 | else takeRight(assetName, 1) | |
425 | 428 | let perches = { | |
426 | 429 | let availablePerches = tryGetInteger(((("address_" + perchAddress) + "_perchesAvailable_") + color)) | |
427 | 430 | if ((0 >= availablePerches)) | |
428 | 431 | then throw(("no perches available for the color " + color)) | |
429 | 432 | else [IntegerEntry(((("address_" + perchAddress) + "_perchesAvailable_") + color), (availablePerches - 1)), StringEntry((((("address_" + address) + "_asset_") + toBase58String(assetId)) + "_perchColor"), color)] | |
430 | 433 | } | |
431 | 434 | if ((perches == perches)) | |
432 | 435 | then if ((pmt.amount != 1)) | |
433 | 436 | then throw("NFT is not attached") | |
434 | 437 | else { | |
435 | 438 | let farmingPower = asIntTuple(invoke(this, "calculateFarmPower", [toBase58String(assetId), toString(i.originCaller)], nil)) | |
436 | 439 | if ((farmingPower == farmingPower)) | |
437 | 440 | then { | |
438 | 441 | let result = claimStakingResult(address, toBase58String(assetId), false) | |
439 | 442 | if ((result == result)) | |
440 | 443 | 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) | |
441 | 444 | else throw("Strict value is not equal to itself.") | |
442 | 445 | } | |
443 | 446 | else throw("Strict value is not equal to itself.") | |
444 | 447 | } | |
445 | 448 | else throw("Strict value is not equal to itself.") | |
446 | 449 | } | |
447 | 450 | else throw("Strict value is not equal to itself.") | |
448 | 451 | } | |
449 | 452 | ||
450 | 453 | ||
451 | 454 | ||
452 | 455 | @Callable(i) | |
453 | 456 | func unstakeNFT (asset) = { | |
454 | 457 | let address = toString(i.caller) | |
455 | 458 | if ((tryGetString((asset + "_owner")) != toString(i.caller))) | |
456 | 459 | then throw("You don't own this duck!!") | |
457 | 460 | else { | |
458 | 461 | let result = claimStakingResult(address, asset, false) | |
459 | 462 | if ((result == result)) | |
460 | 463 | then { | |
461 | 464 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
462 | 465 | if ((validPayment == validPayment)) | |
463 | 466 | then { | |
464 | 467 | let color = tryGetString((((("address_" + address) + "_asset_") + asset) + "_perchColor")) | |
465 | 468 | let assetFP = tryGetInteger(assetFarmingPower(address, asset)) | |
466 | 469 | if ((assetFP == assetFP)) | |
467 | 470 | 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) | |
468 | 471 | else throw("Strict value is not equal to itself.") | |
469 | 472 | } | |
470 | 473 | else throw("Strict value is not equal to itself.") | |
471 | 474 | } | |
472 | 475 | else throw("Strict value is not equal to itself.") | |
473 | 476 | } | |
474 | 477 | } | |
475 | 478 | ||
476 | 479 | ||
477 | 480 | ||
478 | 481 | @Callable(i) | |
479 | 482 | func topUpReward () = { | |
480 | 483 | let firstPayment = value(i.payments[0]) | |
481 | 484 | if ((firstPayment.assetId != getPzlAssetId())) | |
482 | 485 | then throw(("FBP: You can attach only" + toBase58String(getPzlAssetId()))) | |
483 | 486 | else { | |
484 | 487 | let resHandleStaking = handleStakingTopUp(firstPayment.amount) | |
485 | 488 | $Tuple2(resHandleStaking, true) | |
486 | 489 | } | |
487 | 490 | } | |
488 | 491 | ||
489 | 492 | ||
490 | 493 | ||
491 | 494 | @Callable(i) | |
492 | 495 | func claimRewardPete () = { | |
493 | 496 | let peteBalanceBefore = assetBalance(this, getPzlAssetId()) | |
494 | 497 | if ((peteBalanceBefore == peteBalanceBefore)) | |
495 | 498 | then { | |
496 | 499 | let invokeRes = if (isTestEnv()) | |
497 | 500 | then nil | |
498 | 501 | else invoke(getPzlDappAddress(), "claim", nil, nil) | |
499 | 502 | if ((invokeRes == invokeRes)) | |
500 | 503 | then { | |
501 | 504 | let peteBalanceAfter = assetBalance(this, getPzlAssetId()) | |
502 | 505 | if ((peteBalanceAfter == peteBalanceAfter)) | |
503 | 506 | then { | |
504 | 507 | let resHandleStaking = handleStakingTopUp(((peteBalanceAfter - peteBalanceBefore) - 10000000)) | |
505 | 508 | $Tuple2(resHandleStaking, true) | |
506 | 509 | } | |
507 | 510 | else throw("Strict value is not equal to itself.") | |
508 | 511 | } | |
509 | 512 | else throw("Strict value is not equal to itself.") | |
510 | 513 | } | |
511 | 514 | else throw("Strict value is not equal to itself.") | |
512 | 515 | } | |
513 | 516 | ||
514 | 517 | ||
515 | 518 | ||
516 | 519 | @Callable(i) | |
517 | 520 | func addPuzzleAndStakeMore () = { | |
518 | 521 | let firstPayment = value(i.payments[0]) | |
519 | 522 | if ((firstPayment.assetId != getPzlAssetId())) | |
520 | 523 | then throw("FBP: You can attach only Waves") | |
521 | 524 | else { | |
522 | 525 | let invokeRes = if (isTestEnv()) | |
523 | 526 | then nil | |
524 | 527 | else invoke(getPzlDappAddress(), "stake", nil, [i.payments[0]]) | |
525 | 528 | if ((invokeRes == invokeRes)) | |
526 | 529 | then [IntegerEntry("global_PZL_balance", (tryGetInteger("global_PZL_balance") + firstPayment.amount))] | |
527 | 530 | else throw("Strict value is not equal to itself.") | |
528 | 531 | } | |
529 | 532 | } | |
530 | 533 | ||
531 | 534 | ||
532 | 535 | ||
533 | 536 | @Callable(i) | |
534 | 537 | func claimReward (assetId) = { | |
535 | 538 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
536 | 539 | if ((validPayment == validPayment)) | |
537 | 540 | then if ((tryGetString((assetId + "_owner")) != toString(i.caller))) | |
538 | 541 | then throw((("You don't own this duck (" + assetId) + ")!! ")) | |
539 | 542 | else if ((size(i.payments) > 1)) | |
540 | 543 | then throw("Please don't add extra payments") | |
541 | 544 | else { | |
542 | 545 | let owner = toString(i.caller) | |
543 | 546 | let result = claimStakingResult(owner, assetId, true) | |
544 | 547 | $Tuple2((validPayment ++ result._1), result._2) | |
545 | 548 | } | |
546 | 549 | else throw("Strict value is not equal to itself.") | |
547 | 550 | } | |
548 | 551 | ||
549 | 552 | ||
550 | 553 | @Verifier(tx) | |
551 | 554 | func verify () = if (isTestEnv()) | |
552 | 555 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
553 | 556 | else { | |
554 | 557 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
555 | 558 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
556 | 559 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
557 | 560 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
558 | 561 | then 1 | |
559 | 562 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
560 | 563 | then 1 | |
561 | 564 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
562 | 565 | then 1 | |
563 | 566 | else 0 | |
564 | 567 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
565 | 568 | then 1 | |
566 | 569 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
567 | 570 | then 1 | |
568 | 571 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
569 | 572 | then 1 | |
570 | 573 | else 0 | |
571 | 574 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
572 | 575 | then 1 | |
573 | 576 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
574 | 577 | then 1 | |
575 | 578 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
576 | 579 | then 1 | |
577 | 580 | else 0 | |
578 | 581 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
579 | 582 | match tx { | |
580 | 583 | case _ => | |
581 | 584 | (signaturesCount >= 1) | |
582 | 585 | } | |
583 | 586 | } | |
584 | 587 |
github/deemru/w8io/169f3d6 56.79 ms ◑