tx · DFf5UtP5FxE6BKATqTYMzcbRLRvv8HUmJppNQLZrecX8 3Mrj66WrZRC5TYVqoGS8WXGNN9ib23GMUEh: -0.02100000 Waves 2024.10.03 13:16 [3310539] smart account 3Mrj66WrZRC5TYVqoGS8WXGNN9ib23GMUEh > SELF 0.00000000 Waves
{ "type": 13, "id": "DFf5UtP5FxE6BKATqTYMzcbRLRvv8HUmJppNQLZrecX8", "fee": 2100000, "feeAssetId": null, "timestamp": 1727950572954, "version": 2, "chainId": 84, "sender": "3Mrj66WrZRC5TYVqoGS8WXGNN9ib23GMUEh", "senderPublicKey": "HtAuuH8fNTR1JCCJQQz1CsvFkGChAXrRT48xCPAYBfRY", "proofs": [ "54xZtCi9KzQTjBpf7LaakKeqKdisDwiTrszkChsNpsm5RBWCFj5pH6mAxLFEfTTRBM8HvT7E5Gxhd9agrjBZBp1X" ], "script": "base64:AAIFAAAAAAAAACEIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEBEgMKAQgAAAAyAQAAAAdnZXRCb29sAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiBwEAAAAJaXNUZXN0RW52AAAAAAkBAAAAB2dldEJvb2wAAAABAgAAAAdURVNURU5WAAAAAAVTY2FsZQAAAAAABfXhAAEAAAAUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5CQEAAAAUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwAAAACBQAAA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0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACnNlY29uZFVzZXIAAAAAAAAAAAEDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAKc2Vjb25kVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAAAAAAAAAAAABAAAAA90aGlyZFVzZXJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3NpZ25hdHVyZXNDb3VudAkAAGQAAAACCQAAZAAAAAIFAAAAD2ZpcnN0VXNlclNpZ25lZAUAAAAQc2Vjb25kVXNlclNpZ25lZAUAAAAPdGhpcmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAJgf3xC", "height": 3310539, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 67E5KPYtASEP43CpRCYpG3rXtT8m1bMzm3YVk6oBpqxQ Next: GymeRQtwEjwQR7oRC7trmsfvZXxoXxeMupuTDKCFcbuW Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getBool (key) = match getBoolean(this, key) { | |
5 | + | case b: Boolean => | |
6 | + | b | |
7 | + | case _ => | |
8 | + | false | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func isTestEnv () = getBool("TESTENV") | |
13 | + | ||
14 | + | ||
4 | 15 | let Scale = 100000000 | |
5 | 16 | ||
6 | 17 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
394 | 405 | } | |
395 | 406 | ||
396 | 407 | ||
408 | + | @Verifier(tx) | |
409 | + | func verify () = if (isTestEnv()) | |
410 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
411 | + | else { | |
412 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
413 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
414 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
415 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
416 | + | then 1 | |
417 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
418 | + | then 1 | |
419 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
420 | + | then 1 | |
421 | + | else 0 | |
422 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
423 | + | then 1 | |
424 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
425 | + | then 1 | |
426 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
427 | + | then 1 | |
428 | + | else 0 | |
429 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
430 | + | then 1 | |
431 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
432 | + | then 1 | |
433 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
434 | + | then 1 | |
435 | + | else 0 | |
436 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
437 | + | match tx { | |
438 | + | case _ => | |
439 | + | (signaturesCount >= 2) | |
440 | + | } | |
441 | + | } | |
442 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getBool (key) = match getBoolean(this, key) { | |
5 | + | case b: Boolean => | |
6 | + | b | |
7 | + | case _ => | |
8 | + | false | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func isTestEnv () = getBool("TESTENV") | |
13 | + | ||
14 | + | ||
4 | 15 | let Scale = 100000000 | |
5 | 16 | ||
6 | 17 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
7 | 18 | case a: String => | |
8 | 19 | a | |
9 | 20 | case _ => | |
10 | 21 | "" | |
11 | 22 | } | |
12 | 23 | ||
13 | 24 | ||
14 | 25 | func tryGetString (key) = tryGetStringExternal(this, key) | |
15 | 26 | ||
16 | 27 | ||
17 | 28 | func staticKey_refContractAddress () = "static_refContractAddress" | |
18 | 29 | ||
19 | 30 | ||
20 | 31 | let keyGlobalLastInterest = "global_lastCheck_interest" | |
21 | 32 | ||
22 | 33 | func staticKey_oracleAddress () = "static_oracleAddress" | |
23 | 34 | ||
24 | 35 | ||
25 | 36 | func staticKey_eggAssetId () = "static_eggAssetId" | |
26 | 37 | ||
27 | 38 | ||
28 | 39 | func staticKey_incubatorAddress () = "static_incubatorAddress" | |
29 | 40 | ||
30 | 41 | ||
31 | 42 | func staticKey_breederAddress () = "static_breederAddress" | |
32 | 43 | ||
33 | 44 | ||
34 | 45 | func staticKey_accBoosterAddress () = "static_accBoosterAddress" | |
35 | 46 | ||
36 | 47 | ||
37 | 48 | func staticKey_duckWrapper () = "static_duckWrapper" | |
38 | 49 | ||
39 | 50 | ||
40 | 51 | func staticKey_couponsAddress () = "static_couponsAddress" | |
41 | 52 | ||
42 | 53 | ||
43 | 54 | func staticKey_burnAddress () = "static_burnAddress" | |
44 | 55 | ||
45 | 56 | ||
46 | 57 | func staticKey_extraFee () = "static_extraFee" | |
47 | 58 | ||
48 | 59 | ||
49 | 60 | func staticKey_feeAggregator () = "static_feeAggregator" | |
50 | 61 | ||
51 | 62 | ||
52 | 63 | let keyGlobalEarned = "global_earnings" | |
53 | 64 | ||
54 | 65 | func staticKey_veggPerchFee () = "static_veggPerchFee" | |
55 | 66 | ||
56 | 67 | ||
57 | 68 | func totalStakedKey () = "total_staked" | |
58 | 69 | ||
59 | 70 | ||
60 | 71 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
61 | 72 | ||
62 | 73 | ||
63 | 74 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
64 | 75 | ||
65 | 76 | ||
66 | 77 | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_incubatorAddress()))) | |
67 | 78 | ||
68 | 79 | ||
69 | 80 | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress()))) | |
70 | 81 | ||
71 | 82 | ||
72 | 83 | func getAccBoosterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_accBoosterAddress()))) | |
73 | 84 | ||
74 | 85 | ||
75 | 86 | func getDuckWrapperSc () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_duckWrapper()))) | |
76 | 87 | ||
77 | 88 | ||
78 | 89 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
79 | 90 | ||
80 | 91 | ||
81 | 92 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
82 | 93 | ||
83 | 94 | ||
84 | 95 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
85 | 96 | ||
86 | 97 | ||
87 | 98 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
88 | 99 | ||
89 | 100 | ||
90 | 101 | func keyLastCheckInterest (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_lastCheckInterest") | |
91 | 102 | ||
92 | 103 | ||
93 | 104 | func assetFarmingPower (address,asset) = (((("address_" + address) + "_asset_") + asset) + "_farmingPower") | |
94 | 105 | ||
95 | 106 | ||
96 | 107 | func rewardClaimedKey (address,asset) = (((address + "_asset_") + asset) + "_claimed") | |
97 | 108 | ||
98 | 109 | ||
99 | 110 | func totalStakedUserKey (address) = ("total_staked_" + address) | |
100 | 111 | ||
101 | 112 | ||
102 | 113 | let RefererReward = 5 | |
103 | 114 | ||
104 | 115 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
105 | 116 | then throw("FCAP: Please attach waves") | |
106 | 117 | else { | |
107 | 118 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
108 | 119 | if ((payment.amount != feeAmount)) | |
109 | 120 | then throw((("FCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
110 | 121 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
111 | 122 | } | |
112 | 123 | ||
113 | 124 | ||
114 | 125 | func tryGetInteger (key) = match getInteger(this, key) { | |
115 | 126 | case b: Int => | |
116 | 127 | b | |
117 | 128 | case _ => | |
118 | 129 | 0 | |
119 | 130 | } | |
120 | 131 | ||
121 | 132 | ||
122 | 133 | func asInt (value) = match value { | |
123 | 134 | case int: Int => | |
124 | 135 | int | |
125 | 136 | case _ => | |
126 | 137 | throw("FAI: wrong type, expected: Int") | |
127 | 138 | } | |
128 | 139 | ||
129 | 140 | ||
130 | 141 | func asIntTuple (value) = match value { | |
131 | 142 | case int: (Int, Int) => | |
132 | 143 | int | |
133 | 144 | case _ => | |
134 | 145 | throw("FAI: wrong type, expected: (Int,Int)") | |
135 | 146 | } | |
136 | 147 | ||
137 | 148 | ||
138 | 149 | func handleStakingTopUp (amount) = { | |
139 | 150 | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
140 | 151 | let totalStakedAmount = tryGetInteger(totalStakedKey()) | |
141 | 152 | let interestDelta = if ((totalStakedAmount > 0)) | |
142 | 153 | then fraction(amount, Scale, totalStakedAmount) | |
143 | 154 | else 0 | |
144 | 155 | [IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + amount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta))] | |
145 | 156 | } | |
146 | 157 | ||
147 | 158 | ||
148 | 159 | func asString (value) = match value { | |
149 | 160 | case string: String => | |
150 | 161 | string | |
151 | 162 | case _ => | |
152 | 163 | throw("FAS: wrong type, expected: String") | |
153 | 164 | } | |
154 | 165 | ||
155 | 166 | ||
156 | 167 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
157 | 168 | case b: Boolean => | |
158 | 169 | b | |
159 | 170 | case _ => | |
160 | 171 | false | |
161 | 172 | } | |
162 | 173 | ||
163 | 174 | ||
164 | 175 | func tryGetBooleanExternal (address,key) = match getBoolean(address, key) { | |
165 | 176 | case b: Boolean => | |
166 | 177 | b | |
167 | 178 | case _ => | |
168 | 179 | false | |
169 | 180 | } | |
170 | 181 | ||
171 | 182 | ||
172 | 183 | func getAssetOrigin (generation) = if ((generation == "G")) | |
173 | 184 | then getIncubatorAddress() | |
174 | 185 | else getBreederAddress() | |
175 | 186 | ||
176 | 187 | ||
177 | 188 | func getAssetRarity (genotype,generation) = { | |
178 | 189 | let quantity = valueOrErrorMessage(getInteger(getAssetOrigin(generation), (("stats_" + genotype) + "_quantity")), (("stats_" + genotype) + "_quantity not found")) | |
179 | 190 | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
180 | 191 | if ((power > 0)) | |
181 | 192 | then power | |
182 | 193 | else 2 | |
183 | 194 | } | |
184 | 195 | ||
185 | 196 | ||
186 | 197 | func getAssetRarityComplete (isJackpot,assetName) = { | |
187 | 198 | let rarity = if (isJackpot) | |
188 | 199 | then 100 | |
189 | 200 | else { | |
190 | 201 | let generation = take(takeRight(assetName, 2), 1) | |
191 | 202 | let farmGen = asString(invoke(getBreederAddress(), "getGenFromName", [assetName], nil)) | |
192 | 203 | if ((farmGen == farmGen)) | |
193 | 204 | then getAssetRarity(farmGen, generation) | |
194 | 205 | else throw("Strict value is not equal to itself.") | |
195 | 206 | } | |
196 | 207 | rarity | |
197 | 208 | } | |
198 | 209 | ||
199 | 210 | ||
200 | 211 | func updateFarmingPower (address,asset) = { | |
201 | 212 | let totalStaked = tryGetInteger(totalStakedKey()) | |
202 | 213 | let totalStakedUser = tryGetInteger(totalStakedUserKey(address)) | |
203 | 214 | let currentFP = tryGetInteger(assetFarmingPower(address, asset)) | |
204 | 215 | let newFP = asIntTuple(invoke(this, "calculateFarmPower", [asset], nil)) | |
205 | 216 | [IntegerEntry(totalStakedKey(), ((tryGetInteger(totalStakedKey()) - currentFP) + newFP._1)), IntegerEntry(totalStakedUserKey(address), ((tryGetInteger(totalStakedUserKey(address)) - currentFP) + newFP._1)), IntegerEntry(assetFarmingPower(address, asset), newFP._1), IntegerEntry("DEBUG_currentFP", currentFP), IntegerEntry("DEBUG_newFP", newFP._1)] | |
206 | 217 | } | |
207 | 218 | ||
208 | 219 | ||
209 | 220 | func claimStakingResult (address,asset) = { | |
210 | 221 | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
211 | 222 | let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address, asset)) | |
212 | 223 | let stakedAmount = tryGetInteger(assetFarmingPower(address, asset)) | |
213 | 224 | let fpUpdate = updateFarmingPower(address, asset) | |
214 | 225 | let reward = if ((lastCheckInterest > 0)) | |
215 | 226 | then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale) | |
216 | 227 | else 0 | |
217 | 228 | let invokeResult = if ((reward > 0)) | |
218 | 229 | then invoke(getCouponsAddress(), "addCouponsFarming", [address, reward], nil) | |
219 | 230 | else unit | |
220 | 231 | if ((invokeResult == invokeResult)) | |
221 | 232 | then ([IntegerEntry(keyLastCheckInterest(address, asset), currentInterest), IntegerEntry(rewardClaimedKey(address, asset), (tryGetInteger(rewardClaimedKey(address, asset)) + reward))] ++ fpUpdate) | |
222 | 233 | else throw("Strict value is not equal to itself.") | |
223 | 234 | } | |
224 | 235 | ||
225 | 236 | ||
226 | 237 | func asBoolean (value) = match value { | |
227 | 238 | case boolean: Boolean => | |
228 | 239 | boolean | |
229 | 240 | case _ => | |
230 | 241 | throw("FAB: wrong type, expected: Boolean") | |
231 | 242 | } | |
232 | 243 | ||
233 | 244 | ||
234 | 245 | func calculatePerchPrice (address) = { | |
235 | 246 | let hasArtefactStaked = tryGetStringExternal(getAccBoosterAddress(), (("ART-XMISTL_" + address) + "_owner")) | |
236 | 247 | let perchPrice = getIntegerValue(getOracle(), staticKey_veggPerchFee()) | |
237 | 248 | if ((hasArtefactStaked == "")) | |
238 | 249 | then perchPrice | |
239 | 250 | else perchPrice | |
240 | 251 | } | |
241 | 252 | ||
242 | 253 | ||
243 | 254 | @Callable(i) | |
244 | 255 | func calculateFarmPower (assetId) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreederAddress())) | |
245 | 256 | then true | |
246 | 257 | else (value(assetInfo(fromBase58String(assetId))).issuer == getIncubatorAddress()))) | |
247 | 258 | then throw("This does not seem like a valid Duck!") | |
248 | 259 | else { | |
249 | 260 | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
250 | 261 | let gen = takeRight(assetName, 1) | |
251 | 262 | let isJackpot = (takeRight(assetName, 1) == "U") | |
252 | 263 | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
253 | 264 | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
254 | 265 | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
255 | 266 | then (accum :+ nextGen) | |
256 | 267 | else accum | |
257 | 268 | ||
258 | 269 | let uniqueList = { | |
259 | 270 | let $l = genotype | |
260 | 271 | let $s = size($l) | |
261 | 272 | let $acc0 = nil | |
262 | 273 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
263 | 274 | then $a | |
264 | 275 | else uniqueArrayFilter($a, $l[$i]) | |
265 | 276 | ||
266 | 277 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
267 | 278 | then $a | |
268 | 279 | else throw("List size exceeds 8") | |
269 | 280 | ||
270 | 281 | $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) | |
271 | 282 | } | |
272 | 283 | let totalGenes = if ((gen == "U")) | |
273 | 284 | then 8 | |
274 | 285 | else size(uniqueList) | |
275 | 286 | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
276 | 287 | let multiplier = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
277 | 288 | let basePower = tryGetInteger((assetId + "_basePower")) | |
278 | 289 | let finalPower = if ((basePower > 0)) | |
279 | 290 | then basePower | |
280 | 291 | else ((power * multiplier) / 100) | |
281 | 292 | let finalPowerRarity = ((finalPower * rarity) / 100) | |
282 | 293 | $Tuple2([IntegerEntry(("DEBUG_" + assetName), finalPower), IntegerEntry(("DEBUG_RARITY" + assetName), rarity), IntegerEntry(("DEBUG_FPRARITY_" + assetName), finalPowerRarity), IntegerEntry(("DEBUG_BASEPOWER_" + assetName), basePower), IntegerEntry(("DEBUG_COEFFICIENT_" + assetName), multiplier)], $Tuple2(finalPowerRarity, finalPower)) | |
283 | 294 | } | |
284 | 295 | ||
285 | 296 | ||
286 | 297 | ||
287 | 298 | @Callable(i) | |
288 | 299 | func configureOracle (oracle) = if ((i.caller != this)) | |
289 | 300 | then throw("FCO: admin only") | |
290 | 301 | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
291 | 302 | ||
292 | 303 | ||
293 | 304 | ||
294 | 305 | @Callable(i) | |
295 | 306 | func buyPerch (colorI,refererAddress) = { | |
296 | 307 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
297 | 308 | if ((validPayment == validPayment)) | |
298 | 309 | then { | |
299 | 310 | let color = if ((colorI == "U")) | |
300 | 311 | then "B" | |
301 | 312 | else colorI | |
302 | 313 | if ((0 > value(indexOf(["B", "R", "G", "Y"], color)))) | |
303 | 314 | then throw("you need to set color properly") | |
304 | 315 | else { | |
305 | 316 | let exactPrice = calculatePerchPrice(toString(i.caller)) | |
306 | 317 | let firstPayment = if ((size(i.payments) == 2)) | |
307 | 318 | then value(i.payments[1]) | |
308 | 319 | else value(i.payments[0]) | |
309 | 320 | if ((firstPayment.assetId != getEggAssetId())) | |
310 | 321 | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
311 | 322 | else if ((firstPayment.amount != exactPrice)) | |
312 | 323 | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(exactPrice)) + " ") + toString(i.caller))) | |
313 | 324 | else { | |
314 | 325 | let refererRewardForPerch = fraction(exactPrice, 5, 100) | |
315 | 326 | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForPerch)])) | |
316 | 327 | if ((refCall == refCall)) | |
317 | 328 | then { | |
318 | 329 | let toBurn = if (refCall) | |
319 | 330 | then (exactPrice - refererRewardForPerch) | |
320 | 331 | else exactPrice | |
321 | 332 | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
322 | 333 | if ((burnCall == burnCall)) | |
323 | 334 | then { | |
324 | 335 | let perchAmountKey = ((("address_" + toString(i.caller)) + "_perchesAvailable_") + color) | |
325 | 336 | let perchAmount = tryGetInteger(perchAmountKey) | |
326 | 337 | ([IntegerEntry(perchAmountKey, (perchAmount + 1))] ++ validPayment) | |
327 | 338 | } | |
328 | 339 | else throw("Strict value is not equal to itself.") | |
329 | 340 | } | |
330 | 341 | else throw("Strict value is not equal to itself.") | |
331 | 342 | } | |
332 | 343 | } | |
333 | 344 | } | |
334 | 345 | else throw("Strict value is not equal to itself.") | |
335 | 346 | } | |
336 | 347 | ||
337 | 348 | ||
338 | 349 | ||
339 | 350 | @Callable(i) | |
340 | 351 | func stakeNFT (jColor) = { | |
341 | 352 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
342 | 353 | if ((validPayment == validPayment)) | |
343 | 354 | then { | |
344 | 355 | let pmt = value(i.payments[1]) | |
345 | 356 | let assetId = value(pmt.assetId) | |
346 | 357 | let assetName = value(value(assetInfo(assetId)).name) | |
347 | 358 | let isJackpot = (takeRight(assetName, 1) == "U") | |
348 | 359 | let address = toString(i.caller) | |
349 | 360 | let rarity = getAssetRarityComplete(isJackpot, assetName) | |
350 | 361 | if ((70 > rarity)) | |
351 | 362 | then throw("Only ducks with a rarity above 70 can be locked!") | |
352 | 363 | else { | |
353 | 364 | let color = if (isJackpot) | |
354 | 365 | then jColor | |
355 | 366 | else takeRight(assetName, 1) | |
356 | 367 | let availablePerches = tryGetInteger(((("address_" + address) + "_perchesAvailable_") + color)) | |
357 | 368 | if ((pmt.amount != 1)) | |
358 | 369 | then throw("NFT is not attached") | |
359 | 370 | else if ((0 >= availablePerches)) | |
360 | 371 | then throw(("no perches available for the color " + color)) | |
361 | 372 | else { | |
362 | 373 | let farmingPower = asIntTuple(invoke(this, "calculateFarmPower", [toBase58String(assetId)], nil)) | |
363 | 374 | if ((farmingPower == farmingPower)) | |
364 | 375 | then (([IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) + farmingPower._1)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) + farmingPower._1)), IntegerEntry(((("address_" + address) + "_perchesAvailable_") + color), (availablePerches - 1)), StringEntry((toBase58String(assetId) + "_owner"), address), IntegerEntry(assetFarmingPower(address, toBase58String(assetId)), farmingPower._1), IntegerEntry((toBase58String(assetId) + "_basePower"), farmingPower._2), StringEntry((((("address_" + address) + "_asset_") + toBase58String(assetId)) + "_perchColor"), color)] ++ claimStakingResult(address, toBase58String(assetId))) ++ validPayment) | |
365 | 376 | else throw("Strict value is not equal to itself.") | |
366 | 377 | } | |
367 | 378 | } | |
368 | 379 | } | |
369 | 380 | else throw("Strict value is not equal to itself.") | |
370 | 381 | } | |
371 | 382 | ||
372 | 383 | ||
373 | 384 | ||
374 | 385 | @Callable(i) | |
375 | 386 | func topUpReward (amount) = if ((i.caller != getCouponsAddress())) | |
376 | 387 | then throw("VFTUP: Only couponsdapp can do topup!") | |
377 | 388 | else { | |
378 | 389 | let resHandleStaking = handleStakingTopUp(amount) | |
379 | 390 | $Tuple2(resHandleStaking, true) | |
380 | 391 | } | |
381 | 392 | ||
382 | 393 | ||
383 | 394 | ||
384 | 395 | @Callable(i) | |
385 | 396 | func claimReward (assetId) = { | |
386 | 397 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
387 | 398 | if ((validPayment == validPayment)) | |
388 | 399 | then if ((tryGetString((assetId + "_owner")) != toString(i.caller))) | |
389 | 400 | then throw("You don't own this duck!!") | |
390 | 401 | else if ((size(i.payments) > 1)) | |
391 | 402 | then throw("Please don't add extra payments") | |
392 | 403 | else (claimStakingResult(toString(i.caller), assetId) ++ validPayment) | |
393 | 404 | else throw("Strict value is not equal to itself.") | |
394 | 405 | } | |
395 | 406 | ||
396 | 407 | ||
408 | + | @Verifier(tx) | |
409 | + | func verify () = if (isTestEnv()) | |
410 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
411 | + | else { | |
412 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
413 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
414 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
415 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
416 | + | then 1 | |
417 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
418 | + | then 1 | |
419 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
420 | + | then 1 | |
421 | + | else 0 | |
422 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
423 | + | then 1 | |
424 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
425 | + | then 1 | |
426 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
427 | + | then 1 | |
428 | + | else 0 | |
429 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
430 | + | then 1 | |
431 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
432 | + | then 1 | |
433 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
434 | + | then 1 | |
435 | + | else 0 | |
436 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
437 | + | match tx { | |
438 | + | case _ => | |
439 | + | (signaturesCount >= 2) | |
440 | + | } | |
441 | + | } | |
442 | + |
github/deemru/w8io/026f985 38.20 ms ◑