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