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 | - | let a = 100000000 | |
4 | + | func a (b) = { | |
5 | + | let c = getBoolean(this, b) | |
6 | + | if ($isInstanceOf(c, "Boolean")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else false | |
12 | + | } | |
5 | 13 | ||
6 | - | func b (c,d) = { | |
7 | - | let e = getString(c, d) | |
8 | - | if ($isInstanceOf(e, "String")) | |
14 | + | ||
15 | + | func e () = a("TESTENV") | |
16 | + | ||
17 | + | ||
18 | + | let f = 100000000 | |
19 | + | ||
20 | + | func g (h,b) = { | |
21 | + | let c = getString(h, b) | |
22 | + | if ($isInstanceOf(c, "String")) | |
9 | 23 | then { | |
10 | - | let | |
11 | - | | |
24 | + | let i = c | |
25 | + | i | |
12 | 26 | } | |
13 | 27 | else "" | |
14 | 28 | } | |
15 | 29 | ||
16 | 30 | ||
17 | - | func | |
31 | + | func j (b) = g(this, b) | |
18 | 32 | ||
19 | 33 | ||
20 | - | func | |
34 | + | func k () = "static_refContractAddress" | |
21 | 35 | ||
22 | 36 | ||
23 | - | let | |
37 | + | let l = "global_lastCheck_interest" | |
24 | 38 | ||
25 | - | func | |
39 | + | func m () = "static_oracleAddress" | |
26 | 40 | ||
27 | 41 | ||
28 | - | func | |
42 | + | func n () = "static_eggAssetId" | |
29 | 43 | ||
30 | 44 | ||
31 | - | func | |
45 | + | func o () = "static_incubatorAddress" | |
32 | 46 | ||
33 | 47 | ||
34 | - | func | |
48 | + | func p () = "static_breederAddress" | |
35 | 49 | ||
36 | 50 | ||
37 | - | func | |
51 | + | func q () = "static_accBoosterAddress" | |
38 | 52 | ||
39 | 53 | ||
40 | - | func | |
54 | + | func r () = "static_duckWrapper" | |
41 | 55 | ||
42 | 56 | ||
43 | - | func | |
57 | + | func s () = "static_couponsAddress" | |
44 | 58 | ||
45 | 59 | ||
46 | - | func | |
60 | + | func t () = "static_burnAddress" | |
47 | 61 | ||
48 | 62 | ||
49 | - | func | |
63 | + | func u () = "static_extraFee" | |
50 | 64 | ||
51 | 65 | ||
52 | - | func | |
66 | + | func v () = "static_feeAggregator" | |
53 | 67 | ||
54 | 68 | ||
55 | - | let | |
69 | + | let w = "global_earnings" | |
56 | 70 | ||
57 | - | func | |
71 | + | func x () = "static_veggPerchFee" | |
58 | 72 | ||
59 | 73 | ||
60 | - | func | |
74 | + | func y () = "total_staked" | |
61 | 75 | ||
62 | 76 | ||
63 | - | func | |
77 | + | func z () = Address(fromBase58String(j(m()))) | |
64 | 78 | ||
65 | 79 | ||
66 | - | func | |
80 | + | func A () = fromBase58String(g(z(), n())) | |
67 | 81 | ||
68 | 82 | ||
69 | - | func | |
83 | + | func B () = Address(fromBase58String(g(z(), o()))) | |
70 | 84 | ||
71 | 85 | ||
72 | - | func | |
86 | + | func C () = Address(fromBase58String(g(z(), p()))) | |
73 | 87 | ||
74 | 88 | ||
75 | - | func | |
89 | + | func D () = Address(fromBase58String(g(z(), q()))) | |
76 | 90 | ||
77 | 91 | ||
78 | - | func | |
92 | + | func E () = Address(fromBase58String(g(z(), r()))) | |
79 | 93 | ||
80 | 94 | ||
81 | - | func | |
95 | + | func F () = Address(fromBase58String(g(z(), s()))) | |
82 | 96 | ||
83 | 97 | ||
84 | - | func | |
98 | + | func G () = Address(fromBase58String(g(z(), t()))) | |
85 | 99 | ||
86 | 100 | ||
87 | - | func | |
101 | + | func H () = Address(fromBase58String(g(z(), v()))) | |
88 | 102 | ||
89 | 103 | ||
90 | - | func | |
104 | + | func I () = Address(fromBase58String(g(z(), k()))) | |
91 | 105 | ||
92 | 106 | ||
93 | - | func | |
107 | + | func J (h,K) = (((("address_" + h) + "_asset_") + K) + "_lastCheckInterest") | |
94 | 108 | ||
95 | 109 | ||
96 | - | func | |
110 | + | func L (h,K) = (((("address_" + h) + "_asset_") + K) + "_farmingPower") | |
97 | 111 | ||
98 | 112 | ||
99 | - | func | |
113 | + | func M (h,K) = (((h + "_asset_") + K) + "_claimed") | |
100 | 114 | ||
101 | 115 | ||
102 | - | func | |
116 | + | func N (h) = ("total_staked_" + h) | |
103 | 117 | ||
104 | 118 | ||
105 | - | let | |
119 | + | let O = 5 | |
106 | 120 | ||
107 | - | func | |
121 | + | func P (Q) = if (isDefined(Q.assetId)) | |
108 | 122 | then throw("FCAP: Please attach waves") | |
109 | 123 | else { | |
110 | - | let | |
111 | - | if (( | |
112 | - | then throw((("FCAP: Please attach exactly " + toString( | |
113 | - | else [ScriptTransfer( | |
124 | + | let R = getIntegerValue(z(), u()) | |
125 | + | if ((Q.amount != R)) | |
126 | + | then throw((("FCAP: Please attach exactly " + toString(R)) + " amount of wavelets")) | |
127 | + | else [ScriptTransfer(H(), R, unit)] | |
114 | 128 | } | |
115 | 129 | ||
116 | 130 | ||
117 | - | func | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
131 | + | func S (b) = { | |
132 | + | let c = getInteger(this, b) | |
133 | + | if ($isInstanceOf(c, "Int")) | |
120 | 134 | then { | |
121 | - | let | |
122 | - | | |
135 | + | let d = c | |
136 | + | d | |
123 | 137 | } | |
124 | 138 | else 0 | |
125 | 139 | } | |
126 | 140 | ||
127 | 141 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
142 | + | func T (U) = { | |
143 | + | let c = U | |
144 | + | if ($isInstanceOf(c, "Int")) | |
131 | 145 | then { | |
132 | - | let | |
133 | - | | |
146 | + | let V = c | |
147 | + | V | |
134 | 148 | } | |
135 | 149 | else throw("FAI: wrong type, expected: Int") | |
136 | 150 | } | |
137 | 151 | ||
138 | 152 | ||
139 | - | func | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
153 | + | func W (U) = { | |
154 | + | let c = U | |
155 | + | if ($isInstanceOf(c, "(Int, Int)")) | |
142 | 156 | then { | |
143 | - | let | |
144 | - | | |
157 | + | let V = c | |
158 | + | V | |
145 | 159 | } | |
146 | 160 | else throw("FAI: wrong type, expected: (Int,Int)") | |
147 | 161 | } | |
148 | 162 | ||
149 | 163 | ||
150 | - | func | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | then fraction( | |
164 | + | func X (Y) = { | |
165 | + | let Z = S(l) | |
166 | + | let aa = S(y()) | |
167 | + | let ab = if ((aa > 0)) | |
168 | + | then fraction(Y, f, aa) | |
155 | 169 | else 0 | |
156 | - | [IntegerEntry( | |
170 | + | [IntegerEntry(w, (S(w) + Y)), IntegerEntry(l, (Z + ab))] | |
157 | 171 | } | |
158 | 172 | ||
159 | 173 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
174 | + | func ac (U) = { | |
175 | + | let c = U | |
176 | + | if ($isInstanceOf(c, "String")) | |
163 | 177 | then { | |
164 | - | let | |
165 | - | | |
178 | + | let ad = c | |
179 | + | ad | |
166 | 180 | } | |
167 | 181 | else throw("FAS: wrong type, expected: String") | |
168 | 182 | } | |
169 | 183 | ||
170 | 184 | ||
171 | - | func | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
185 | + | func ae (b) = { | |
186 | + | let c = getBoolean(this, b) | |
187 | + | if ($isInstanceOf(c, "Boolean")) | |
174 | 188 | then { | |
175 | - | let | |
176 | - | | |
189 | + | let d = c | |
190 | + | d | |
177 | 191 | } | |
178 | 192 | else false | |
179 | 193 | } | |
180 | 194 | ||
181 | 195 | ||
182 | - | func | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
196 | + | func af (h,b) = { | |
197 | + | let c = getBoolean(h, b) | |
198 | + | if ($isInstanceOf(c, "Boolean")) | |
185 | 199 | then { | |
186 | - | let | |
187 | - | | |
200 | + | let d = c | |
201 | + | d | |
188 | 202 | } | |
189 | 203 | else false | |
190 | 204 | } | |
191 | 205 | ||
192 | 206 | ||
193 | - | func | |
194 | - | then | |
195 | - | else | |
207 | + | func ag (ah) = if ((ah == "G")) | |
208 | + | then B() | |
209 | + | else C() | |
196 | 210 | ||
197 | 211 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
202 | - | then | |
212 | + | func ai (aj,ah) = { | |
213 | + | let ak = valueOrErrorMessage(getInteger(ag(ah), (("stats_" + aj) + "_quantity")), (("stats_" + aj) + "_quantity not found")) | |
214 | + | let al = pow((10000 / ak), 4, 5, 1, 2, FLOOR) | |
215 | + | if ((al > 0)) | |
216 | + | then al | |
203 | 217 | else 2 | |
204 | 218 | } | |
205 | 219 | ||
206 | 220 | ||
207 | - | func | |
208 | - | let | |
221 | + | func am (an,ao) = { | |
222 | + | let ap = if (an) | |
209 | 223 | then 100 | |
210 | 224 | else { | |
211 | - | let | |
212 | - | let | |
213 | - | if (( | |
214 | - | then | |
225 | + | let ah = take(takeRight(ao, 2), 1) | |
226 | + | let aq = ac(invoke(C(), "getGenFromName", [ao], nil)) | |
227 | + | if ((aq == aq)) | |
228 | + | then ai(aq, ah) | |
215 | 229 | else throw("Strict value is not equal to itself.") | |
216 | 230 | } | |
217 | - | | |
231 | + | ap | |
218 | 232 | } | |
219 | 233 | ||
220 | 234 | ||
221 | - | func | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | [IntegerEntry( | |
235 | + | func ar (h,K) = { | |
236 | + | let as = S(y()) | |
237 | + | let at = S(N(h)) | |
238 | + | let au = S(L(h, K)) | |
239 | + | let av = W(invoke(this, "calculateFarmPower", [K], nil)) | |
240 | + | [IntegerEntry(y(), ((S(y()) - au) + av._1)), IntegerEntry(N(h), ((S(N(h)) - au) + av._1)), IntegerEntry(L(h, K), av._1), IntegerEntry("DEBUG_currentFP", au), IntegerEntry("DEBUG_newFP", av._1)] | |
227 | 241 | } | |
228 | 242 | ||
229 | 243 | ||
230 | - | func | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | then fraction(( | |
244 | + | func aw (h,K) = { | |
245 | + | let Z = S(l) | |
246 | + | let ax = S(J(h, K)) | |
247 | + | let ay = S(L(h, K)) | |
248 | + | let az = ar(h, K) | |
249 | + | let aA = if ((ax > 0)) | |
250 | + | then fraction((Z - ax), ay, f) | |
237 | 251 | else 0 | |
238 | - | let | |
239 | - | then invoke( | |
252 | + | let aB = if ((aA > 0)) | |
253 | + | then invoke(F(), "addCouponsFarming", [h, aA], nil) | |
240 | 254 | else unit | |
241 | - | if (( | |
242 | - | then ([IntegerEntry( | |
255 | + | if ((aB == aB)) | |
256 | + | then ([IntegerEntry(J(h, K), Z), IntegerEntry(M(h, K), (S(M(h, K)) + aA))] ++ az) | |
243 | 257 | else throw("Strict value is not equal to itself.") | |
244 | 258 | } | |
245 | 259 | ||
246 | 260 | ||
247 | - | func | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
261 | + | func aC (U) = { | |
262 | + | let c = U | |
263 | + | if ($isInstanceOf(c, "Boolean")) | |
250 | 264 | then { | |
251 | - | let | |
252 | - | | |
265 | + | let aD = c | |
266 | + | aD | |
253 | 267 | } | |
254 | 268 | else throw("FAB: wrong type, expected: Boolean") | |
255 | 269 | } | |
256 | 270 | ||
257 | 271 | ||
258 | - | func | |
259 | - | let | |
260 | - | let | |
261 | - | if (( | |
262 | - | then | |
263 | - | else | |
272 | + | func aE (h) = { | |
273 | + | let aF = g(D(), (("ART-XMISTL_" + h) + "_owner")) | |
274 | + | let aG = getIntegerValue(z(), x()) | |
275 | + | if ((aF == "")) | |
276 | + | then aG | |
277 | + | else aG | |
264 | 278 | } | |
265 | 279 | ||
266 | 280 | ||
267 | - | @Callable( | |
268 | - | func calculateFarmPower ( | |
281 | + | @Callable(aH) | |
282 | + | func calculateFarmPower (aI) = if (!(if ((value(assetInfo(fromBase58String(aI))).issuer == C())) | |
269 | 283 | then true | |
270 | - | else (value(assetInfo(fromBase58String( | |
284 | + | else (value(assetInfo(fromBase58String(aI))).issuer == B()))) | |
271 | 285 | then throw("This does not seem like a valid Duck!") | |
272 | 286 | else { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then ( | |
280 | - | else | |
287 | + | let ao = value(assetInfo(fromBase58String(aI))).name | |
288 | + | let aJ = takeRight(ao, 1) | |
289 | + | let an = (takeRight(ao, 1) == "U") | |
290 | + | let ap = am(an, ao) | |
291 | + | let aj = split(dropRight(drop(ao, 5), 3), "") | |
292 | + | func aK (aL,aM) = if (!(containsElement(aL, aM))) | |
293 | + | then (aL :+ aM) | |
294 | + | else aL | |
281 | 295 | ||
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | func | |
287 | - | then | |
288 | - | else | |
296 | + | let aN = { | |
297 | + | let aO = aj | |
298 | + | let aP = size(aO) | |
299 | + | let aQ = nil | |
300 | + | func aR (aS,aT) = if ((aT >= aP)) | |
301 | + | then aS | |
302 | + | else aK(aS, aO[aT]) | |
289 | 303 | ||
290 | - | func | |
291 | - | then | |
304 | + | func aU (aS,aT) = if ((aT >= aP)) | |
305 | + | then aS | |
292 | 306 | else throw("List size exceeds 8") | |
293 | 307 | ||
294 | - | | |
308 | + | aU(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
295 | 309 | } | |
296 | - | let | |
310 | + | let aV = if ((aJ == "U")) | |
297 | 311 | then 8 | |
298 | - | else size( | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | then | |
304 | - | else (( | |
305 | - | let | |
306 | - | $Tuple2([IntegerEntry(("DEBUG_" + | |
312 | + | else size(aN) | |
313 | + | let al = pow(15, 1, aV, 0, 2, DOWN) | |
314 | + | let aW = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
315 | + | let aX = S((aI + "_basePower")) | |
316 | + | let aY = if ((aX > 0)) | |
317 | + | then aX | |
318 | + | else ((al * aW) / 100) | |
319 | + | let aZ = ((aY * ap) / 100) | |
320 | + | $Tuple2([IntegerEntry(("DEBUG_" + ao), aY), IntegerEntry(("DEBUG_RARITY" + ao), ap), IntegerEntry(("DEBUG_FPRARITY_" + ao), aZ), IntegerEntry(("DEBUG_BASEPOWER_" + ao), aX), IntegerEntry(("DEBUG_COEFFICIENT_" + ao), aW)], $Tuple2(aZ, aY)) | |
307 | 321 | } | |
308 | 322 | ||
309 | 323 | ||
310 | 324 | ||
311 | - | @Callable( | |
312 | - | func configureOracle ( | |
325 | + | @Callable(aH) | |
326 | + | func configureOracle (ba) = if ((aH.caller != this)) | |
313 | 327 | then throw("FCO: admin only") | |
314 | - | else [StringEntry( | |
328 | + | else [StringEntry(m(), ba)] | |
315 | 329 | ||
316 | 330 | ||
317 | 331 | ||
318 | - | @Callable( | |
319 | - | func buyPerch ( | |
320 | - | let | |
321 | - | if (( | |
332 | + | @Callable(aH) | |
333 | + | func buyPerch (bb,bc) = { | |
334 | + | let bd = P(aH.payments[0]) | |
335 | + | if ((bd == bd)) | |
322 | 336 | then { | |
323 | - | let | |
337 | + | let be = if ((bb == "U")) | |
324 | 338 | then "B" | |
325 | - | else | |
326 | - | if ((0 > value(indexOf(["B", "R", "G", "Y"], | |
339 | + | else bb | |
340 | + | if ((0 > value(indexOf(["B", "R", "G", "Y"], be)))) | |
327 | 341 | then throw("you need to set color properly") | |
328 | 342 | else { | |
329 | - | let | |
330 | - | let | |
331 | - | then value( | |
332 | - | else value( | |
333 | - | if (( | |
334 | - | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String( | |
335 | - | else if (( | |
336 | - | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString( | |
343 | + | let bf = aE(toString(aH.caller)) | |
344 | + | let bg = if ((size(aH.payments) == 2)) | |
345 | + | then value(aH.payments[1]) | |
346 | + | else value(aH.payments[0]) | |
347 | + | if ((bg.assetId != A())) | |
348 | + | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(A()))) | |
349 | + | else if ((bg.amount != bf)) | |
350 | + | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(bf)) + " ") + toString(aH.caller))) | |
337 | 351 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (( | |
352 | + | let bh = fraction(bf, 5, 100) | |
353 | + | let bi = aC(invoke(I(), "refPayment", [bc], [AttachedPayment(A(), bh)])) | |
354 | + | if ((bi == bi)) | |
341 | 355 | then { | |
342 | - | let | |
343 | - | then ( | |
344 | - | else | |
345 | - | let | |
346 | - | if (( | |
356 | + | let bj = if (bi) | |
357 | + | then (bf - bh) | |
358 | + | else bf | |
359 | + | let bk = invoke(G(), "burnAttachedPayments", nil, [AttachedPayment(A(), bj)]) | |
360 | + | if ((bk == bk)) | |
347 | 361 | then { | |
348 | - | let | |
349 | - | let | |
350 | - | ([IntegerEntry( | |
362 | + | let bl = ((("address_" + toString(aH.caller)) + "_perchesAvailable_") + be) | |
363 | + | let bm = S(bl) | |
364 | + | ([IntegerEntry(bl, (bm + 1))] ++ bd) | |
351 | 365 | } | |
352 | 366 | else throw("Strict value is not equal to itself.") | |
353 | 367 | } | |
360 | 374 | ||
361 | 375 | ||
362 | 376 | ||
363 | - | @Callable( | |
364 | - | func stakeNFT ( | |
365 | - | let | |
366 | - | if (( | |
377 | + | @Callable(aH) | |
378 | + | func stakeNFT (bn) = { | |
379 | + | let bd = P(aH.payments[0]) | |
380 | + | if ((bd == bd)) | |
367 | 381 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | if ((70 > | |
382 | + | let bo = value(aH.payments[1]) | |
383 | + | let aI = value(bo.assetId) | |
384 | + | let ao = value(value(assetInfo(aI)).name) | |
385 | + | let an = (takeRight(ao, 1) == "U") | |
386 | + | let h = toString(aH.caller) | |
387 | + | let ap = am(an, ao) | |
388 | + | if ((70 > ap)) | |
375 | 389 | then throw("Only ducks with a rarity above 70 can be locked!") | |
376 | 390 | else { | |
377 | - | let | |
378 | - | then | |
379 | - | else takeRight( | |
380 | - | let | |
381 | - | if (( | |
391 | + | let be = if (an) | |
392 | + | then bn | |
393 | + | else takeRight(ao, 1) | |
394 | + | let bp = S(((("address_" + h) + "_perchesAvailable_") + be)) | |
395 | + | if ((bo.amount != 1)) | |
382 | 396 | then throw("NFT is not attached") | |
383 | - | else if ((0 >= | |
384 | - | then throw(("no perches available for the color " + | |
397 | + | else if ((0 >= bp)) | |
398 | + | then throw(("no perches available for the color " + be)) | |
385 | 399 | else { | |
386 | - | let | |
387 | - | if (( | |
388 | - | then (([IntegerEntry( | |
400 | + | let bq = W(invoke(this, "calculateFarmPower", [toBase58String(aI)], nil)) | |
401 | + | if ((bq == bq)) | |
402 | + | then (([IntegerEntry(y(), (S(y()) + bq._1)), IntegerEntry(N(h), (S(N(h)) + bq._1)), IntegerEntry(((("address_" + h) + "_perchesAvailable_") + be), (bp - 1)), StringEntry((toBase58String(aI) + "_owner"), h), IntegerEntry(L(h, toBase58String(aI)), bq._1), IntegerEntry((toBase58String(aI) + "_basePower"), bq._2), StringEntry((((("address_" + h) + "_asset_") + toBase58String(aI)) + "_perchColor"), be)] ++ aw(h, toBase58String(aI))) ++ bd) | |
389 | 403 | else throw("Strict value is not equal to itself.") | |
390 | 404 | } | |
391 | 405 | } | |
395 | 409 | ||
396 | 410 | ||
397 | 411 | ||
398 | - | @Callable( | |
399 | - | func topUpReward ( | |
412 | + | @Callable(aH) | |
413 | + | func topUpReward (Y) = if ((aH.caller != F())) | |
400 | 414 | then throw("VFTUP: Only couponsdapp can do topup!") | |
401 | 415 | else { | |
402 | - | let | |
403 | - | $Tuple2( | |
416 | + | let br = X(Y) | |
417 | + | $Tuple2(br, true) | |
404 | 418 | } | |
405 | 419 | ||
406 | 420 | ||
407 | 421 | ||
408 | - | @Callable( | |
409 | - | func claimReward ( | |
410 | - | let | |
411 | - | if (( | |
412 | - | then if (( | |
422 | + | @Callable(aH) | |
423 | + | func claimReward (aI) = { | |
424 | + | let bd = P(aH.payments[0]) | |
425 | + | if ((bd == bd)) | |
426 | + | then if ((j((aI + "_owner")) != toString(aH.caller))) | |
413 | 427 | then throw("You don't own this duck!!") | |
414 | - | else if ((size( | |
428 | + | else if ((size(aH.payments) > 1)) | |
415 | 429 | then throw("Please don't add extra payments") | |
416 | - | else ( | |
430 | + | else (aw(toString(aH.caller), aI) ++ bd) | |
417 | 431 | else throw("Strict value is not equal to itself.") | |
418 | 432 | } | |
419 | 433 | ||
434 | + | ||
435 | + | @Verifier(bs) | |
436 | + | func bt () = if (e()) | |
437 | + | then sigVerify(bs.bodyBytes, bs.proofs[0], bs.senderPublicKey) | |
438 | + | else { | |
439 | + | let bu = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
440 | + | let bv = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
441 | + | let bw = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
442 | + | let bx = if (sigVerify(bs.bodyBytes, bs.proofs[0], bu)) | |
443 | + | then 1 | |
444 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bu)) | |
445 | + | then 1 | |
446 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bu)) | |
447 | + | then 1 | |
448 | + | else 0 | |
449 | + | let by = if (sigVerify(bs.bodyBytes, bs.proofs[0], bv)) | |
450 | + | then 1 | |
451 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bv)) | |
452 | + | then 1 | |
453 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bv)) | |
454 | + | then 1 | |
455 | + | else 0 | |
456 | + | let bz = if (sigVerify(bs.bodyBytes, bs.proofs[0], bw)) | |
457 | + | then 1 | |
458 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bw)) | |
459 | + | then 1 | |
460 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bw)) | |
461 | + | then 1 | |
462 | + | else 0 | |
463 | + | let bA = ((bx + by) + bz) | |
464 | + | let c = bs | |
465 | + | (bA >= 2) | |
466 | + | } | |
420 | 467 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = 100000000 | |
4 | + | func a (b) = { | |
5 | + | let c = getBoolean(this, b) | |
6 | + | if ($isInstanceOf(c, "Boolean")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else false | |
12 | + | } | |
5 | 13 | ||
6 | - | func b (c,d) = { | |
7 | - | let e = getString(c, d) | |
8 | - | if ($isInstanceOf(e, "String")) | |
14 | + | ||
15 | + | func e () = a("TESTENV") | |
16 | + | ||
17 | + | ||
18 | + | let f = 100000000 | |
19 | + | ||
20 | + | func g (h,b) = { | |
21 | + | let c = getString(h, b) | |
22 | + | if ($isInstanceOf(c, "String")) | |
9 | 23 | then { | |
10 | - | let | |
11 | - | | |
24 | + | let i = c | |
25 | + | i | |
12 | 26 | } | |
13 | 27 | else "" | |
14 | 28 | } | |
15 | 29 | ||
16 | 30 | ||
17 | - | func | |
31 | + | func j (b) = g(this, b) | |
18 | 32 | ||
19 | 33 | ||
20 | - | func | |
34 | + | func k () = "static_refContractAddress" | |
21 | 35 | ||
22 | 36 | ||
23 | - | let | |
37 | + | let l = "global_lastCheck_interest" | |
24 | 38 | ||
25 | - | func | |
39 | + | func m () = "static_oracleAddress" | |
26 | 40 | ||
27 | 41 | ||
28 | - | func | |
42 | + | func n () = "static_eggAssetId" | |
29 | 43 | ||
30 | 44 | ||
31 | - | func | |
45 | + | func o () = "static_incubatorAddress" | |
32 | 46 | ||
33 | 47 | ||
34 | - | func | |
48 | + | func p () = "static_breederAddress" | |
35 | 49 | ||
36 | 50 | ||
37 | - | func | |
51 | + | func q () = "static_accBoosterAddress" | |
38 | 52 | ||
39 | 53 | ||
40 | - | func | |
54 | + | func r () = "static_duckWrapper" | |
41 | 55 | ||
42 | 56 | ||
43 | - | func | |
57 | + | func s () = "static_couponsAddress" | |
44 | 58 | ||
45 | 59 | ||
46 | - | func | |
60 | + | func t () = "static_burnAddress" | |
47 | 61 | ||
48 | 62 | ||
49 | - | func | |
63 | + | func u () = "static_extraFee" | |
50 | 64 | ||
51 | 65 | ||
52 | - | func | |
66 | + | func v () = "static_feeAggregator" | |
53 | 67 | ||
54 | 68 | ||
55 | - | let | |
69 | + | let w = "global_earnings" | |
56 | 70 | ||
57 | - | func | |
71 | + | func x () = "static_veggPerchFee" | |
58 | 72 | ||
59 | 73 | ||
60 | - | func | |
74 | + | func y () = "total_staked" | |
61 | 75 | ||
62 | 76 | ||
63 | - | func | |
77 | + | func z () = Address(fromBase58String(j(m()))) | |
64 | 78 | ||
65 | 79 | ||
66 | - | func | |
80 | + | func A () = fromBase58String(g(z(), n())) | |
67 | 81 | ||
68 | 82 | ||
69 | - | func | |
83 | + | func B () = Address(fromBase58String(g(z(), o()))) | |
70 | 84 | ||
71 | 85 | ||
72 | - | func | |
86 | + | func C () = Address(fromBase58String(g(z(), p()))) | |
73 | 87 | ||
74 | 88 | ||
75 | - | func | |
89 | + | func D () = Address(fromBase58String(g(z(), q()))) | |
76 | 90 | ||
77 | 91 | ||
78 | - | func | |
92 | + | func E () = Address(fromBase58String(g(z(), r()))) | |
79 | 93 | ||
80 | 94 | ||
81 | - | func | |
95 | + | func F () = Address(fromBase58String(g(z(), s()))) | |
82 | 96 | ||
83 | 97 | ||
84 | - | func | |
98 | + | func G () = Address(fromBase58String(g(z(), t()))) | |
85 | 99 | ||
86 | 100 | ||
87 | - | func | |
101 | + | func H () = Address(fromBase58String(g(z(), v()))) | |
88 | 102 | ||
89 | 103 | ||
90 | - | func | |
104 | + | func I () = Address(fromBase58String(g(z(), k()))) | |
91 | 105 | ||
92 | 106 | ||
93 | - | func | |
107 | + | func J (h,K) = (((("address_" + h) + "_asset_") + K) + "_lastCheckInterest") | |
94 | 108 | ||
95 | 109 | ||
96 | - | func | |
110 | + | func L (h,K) = (((("address_" + h) + "_asset_") + K) + "_farmingPower") | |
97 | 111 | ||
98 | 112 | ||
99 | - | func | |
113 | + | func M (h,K) = (((h + "_asset_") + K) + "_claimed") | |
100 | 114 | ||
101 | 115 | ||
102 | - | func | |
116 | + | func N (h) = ("total_staked_" + h) | |
103 | 117 | ||
104 | 118 | ||
105 | - | let | |
119 | + | let O = 5 | |
106 | 120 | ||
107 | - | func | |
121 | + | func P (Q) = if (isDefined(Q.assetId)) | |
108 | 122 | then throw("FCAP: Please attach waves") | |
109 | 123 | else { | |
110 | - | let | |
111 | - | if (( | |
112 | - | then throw((("FCAP: Please attach exactly " + toString( | |
113 | - | else [ScriptTransfer( | |
124 | + | let R = getIntegerValue(z(), u()) | |
125 | + | if ((Q.amount != R)) | |
126 | + | then throw((("FCAP: Please attach exactly " + toString(R)) + " amount of wavelets")) | |
127 | + | else [ScriptTransfer(H(), R, unit)] | |
114 | 128 | } | |
115 | 129 | ||
116 | 130 | ||
117 | - | func | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
131 | + | func S (b) = { | |
132 | + | let c = getInteger(this, b) | |
133 | + | if ($isInstanceOf(c, "Int")) | |
120 | 134 | then { | |
121 | - | let | |
122 | - | | |
135 | + | let d = c | |
136 | + | d | |
123 | 137 | } | |
124 | 138 | else 0 | |
125 | 139 | } | |
126 | 140 | ||
127 | 141 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
142 | + | func T (U) = { | |
143 | + | let c = U | |
144 | + | if ($isInstanceOf(c, "Int")) | |
131 | 145 | then { | |
132 | - | let | |
133 | - | | |
146 | + | let V = c | |
147 | + | V | |
134 | 148 | } | |
135 | 149 | else throw("FAI: wrong type, expected: Int") | |
136 | 150 | } | |
137 | 151 | ||
138 | 152 | ||
139 | - | func | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
153 | + | func W (U) = { | |
154 | + | let c = U | |
155 | + | if ($isInstanceOf(c, "(Int, Int)")) | |
142 | 156 | then { | |
143 | - | let | |
144 | - | | |
157 | + | let V = c | |
158 | + | V | |
145 | 159 | } | |
146 | 160 | else throw("FAI: wrong type, expected: (Int,Int)") | |
147 | 161 | } | |
148 | 162 | ||
149 | 163 | ||
150 | - | func | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | then fraction( | |
164 | + | func X (Y) = { | |
165 | + | let Z = S(l) | |
166 | + | let aa = S(y()) | |
167 | + | let ab = if ((aa > 0)) | |
168 | + | then fraction(Y, f, aa) | |
155 | 169 | else 0 | |
156 | - | [IntegerEntry( | |
170 | + | [IntegerEntry(w, (S(w) + Y)), IntegerEntry(l, (Z + ab))] | |
157 | 171 | } | |
158 | 172 | ||
159 | 173 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
174 | + | func ac (U) = { | |
175 | + | let c = U | |
176 | + | if ($isInstanceOf(c, "String")) | |
163 | 177 | then { | |
164 | - | let | |
165 | - | | |
178 | + | let ad = c | |
179 | + | ad | |
166 | 180 | } | |
167 | 181 | else throw("FAS: wrong type, expected: String") | |
168 | 182 | } | |
169 | 183 | ||
170 | 184 | ||
171 | - | func | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
185 | + | func ae (b) = { | |
186 | + | let c = getBoolean(this, b) | |
187 | + | if ($isInstanceOf(c, "Boolean")) | |
174 | 188 | then { | |
175 | - | let | |
176 | - | | |
189 | + | let d = c | |
190 | + | d | |
177 | 191 | } | |
178 | 192 | else false | |
179 | 193 | } | |
180 | 194 | ||
181 | 195 | ||
182 | - | func | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
196 | + | func af (h,b) = { | |
197 | + | let c = getBoolean(h, b) | |
198 | + | if ($isInstanceOf(c, "Boolean")) | |
185 | 199 | then { | |
186 | - | let | |
187 | - | | |
200 | + | let d = c | |
201 | + | d | |
188 | 202 | } | |
189 | 203 | else false | |
190 | 204 | } | |
191 | 205 | ||
192 | 206 | ||
193 | - | func | |
194 | - | then | |
195 | - | else | |
207 | + | func ag (ah) = if ((ah == "G")) | |
208 | + | then B() | |
209 | + | else C() | |
196 | 210 | ||
197 | 211 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
202 | - | then | |
212 | + | func ai (aj,ah) = { | |
213 | + | let ak = valueOrErrorMessage(getInteger(ag(ah), (("stats_" + aj) + "_quantity")), (("stats_" + aj) + "_quantity not found")) | |
214 | + | let al = pow((10000 / ak), 4, 5, 1, 2, FLOOR) | |
215 | + | if ((al > 0)) | |
216 | + | then al | |
203 | 217 | else 2 | |
204 | 218 | } | |
205 | 219 | ||
206 | 220 | ||
207 | - | func | |
208 | - | let | |
221 | + | func am (an,ao) = { | |
222 | + | let ap = if (an) | |
209 | 223 | then 100 | |
210 | 224 | else { | |
211 | - | let | |
212 | - | let | |
213 | - | if (( | |
214 | - | then | |
225 | + | let ah = take(takeRight(ao, 2), 1) | |
226 | + | let aq = ac(invoke(C(), "getGenFromName", [ao], nil)) | |
227 | + | if ((aq == aq)) | |
228 | + | then ai(aq, ah) | |
215 | 229 | else throw("Strict value is not equal to itself.") | |
216 | 230 | } | |
217 | - | | |
231 | + | ap | |
218 | 232 | } | |
219 | 233 | ||
220 | 234 | ||
221 | - | func | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | [IntegerEntry( | |
235 | + | func ar (h,K) = { | |
236 | + | let as = S(y()) | |
237 | + | let at = S(N(h)) | |
238 | + | let au = S(L(h, K)) | |
239 | + | let av = W(invoke(this, "calculateFarmPower", [K], nil)) | |
240 | + | [IntegerEntry(y(), ((S(y()) - au) + av._1)), IntegerEntry(N(h), ((S(N(h)) - au) + av._1)), IntegerEntry(L(h, K), av._1), IntegerEntry("DEBUG_currentFP", au), IntegerEntry("DEBUG_newFP", av._1)] | |
227 | 241 | } | |
228 | 242 | ||
229 | 243 | ||
230 | - | func | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | then fraction(( | |
244 | + | func aw (h,K) = { | |
245 | + | let Z = S(l) | |
246 | + | let ax = S(J(h, K)) | |
247 | + | let ay = S(L(h, K)) | |
248 | + | let az = ar(h, K) | |
249 | + | let aA = if ((ax > 0)) | |
250 | + | then fraction((Z - ax), ay, f) | |
237 | 251 | else 0 | |
238 | - | let | |
239 | - | then invoke( | |
252 | + | let aB = if ((aA > 0)) | |
253 | + | then invoke(F(), "addCouponsFarming", [h, aA], nil) | |
240 | 254 | else unit | |
241 | - | if (( | |
242 | - | then ([IntegerEntry( | |
255 | + | if ((aB == aB)) | |
256 | + | then ([IntegerEntry(J(h, K), Z), IntegerEntry(M(h, K), (S(M(h, K)) + aA))] ++ az) | |
243 | 257 | else throw("Strict value is not equal to itself.") | |
244 | 258 | } | |
245 | 259 | ||
246 | 260 | ||
247 | - | func | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
261 | + | func aC (U) = { | |
262 | + | let c = U | |
263 | + | if ($isInstanceOf(c, "Boolean")) | |
250 | 264 | then { | |
251 | - | let | |
252 | - | | |
265 | + | let aD = c | |
266 | + | aD | |
253 | 267 | } | |
254 | 268 | else throw("FAB: wrong type, expected: Boolean") | |
255 | 269 | } | |
256 | 270 | ||
257 | 271 | ||
258 | - | func | |
259 | - | let | |
260 | - | let | |
261 | - | if (( | |
262 | - | then | |
263 | - | else | |
272 | + | func aE (h) = { | |
273 | + | let aF = g(D(), (("ART-XMISTL_" + h) + "_owner")) | |
274 | + | let aG = getIntegerValue(z(), x()) | |
275 | + | if ((aF == "")) | |
276 | + | then aG | |
277 | + | else aG | |
264 | 278 | } | |
265 | 279 | ||
266 | 280 | ||
267 | - | @Callable( | |
268 | - | func calculateFarmPower ( | |
281 | + | @Callable(aH) | |
282 | + | func calculateFarmPower (aI) = if (!(if ((value(assetInfo(fromBase58String(aI))).issuer == C())) | |
269 | 283 | then true | |
270 | - | else (value(assetInfo(fromBase58String( | |
284 | + | else (value(assetInfo(fromBase58String(aI))).issuer == B()))) | |
271 | 285 | then throw("This does not seem like a valid Duck!") | |
272 | 286 | else { | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then ( | |
280 | - | else | |
287 | + | let ao = value(assetInfo(fromBase58String(aI))).name | |
288 | + | let aJ = takeRight(ao, 1) | |
289 | + | let an = (takeRight(ao, 1) == "U") | |
290 | + | let ap = am(an, ao) | |
291 | + | let aj = split(dropRight(drop(ao, 5), 3), "") | |
292 | + | func aK (aL,aM) = if (!(containsElement(aL, aM))) | |
293 | + | then (aL :+ aM) | |
294 | + | else aL | |
281 | 295 | ||
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | func | |
287 | - | then | |
288 | - | else | |
296 | + | let aN = { | |
297 | + | let aO = aj | |
298 | + | let aP = size(aO) | |
299 | + | let aQ = nil | |
300 | + | func aR (aS,aT) = if ((aT >= aP)) | |
301 | + | then aS | |
302 | + | else aK(aS, aO[aT]) | |
289 | 303 | ||
290 | - | func | |
291 | - | then | |
304 | + | func aU (aS,aT) = if ((aT >= aP)) | |
305 | + | then aS | |
292 | 306 | else throw("List size exceeds 8") | |
293 | 307 | ||
294 | - | | |
308 | + | aU(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
295 | 309 | } | |
296 | - | let | |
310 | + | let aV = if ((aJ == "U")) | |
297 | 311 | then 8 | |
298 | - | else size( | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | then | |
304 | - | else (( | |
305 | - | let | |
306 | - | $Tuple2([IntegerEntry(("DEBUG_" + | |
312 | + | else size(aN) | |
313 | + | let al = pow(15, 1, aV, 0, 2, DOWN) | |
314 | + | let aW = (((height - 3750000) * 100) / (((60 * 24) * 30) * 3)) | |
315 | + | let aX = S((aI + "_basePower")) | |
316 | + | let aY = if ((aX > 0)) | |
317 | + | then aX | |
318 | + | else ((al * aW) / 100) | |
319 | + | let aZ = ((aY * ap) / 100) | |
320 | + | $Tuple2([IntegerEntry(("DEBUG_" + ao), aY), IntegerEntry(("DEBUG_RARITY" + ao), ap), IntegerEntry(("DEBUG_FPRARITY_" + ao), aZ), IntegerEntry(("DEBUG_BASEPOWER_" + ao), aX), IntegerEntry(("DEBUG_COEFFICIENT_" + ao), aW)], $Tuple2(aZ, aY)) | |
307 | 321 | } | |
308 | 322 | ||
309 | 323 | ||
310 | 324 | ||
311 | - | @Callable( | |
312 | - | func configureOracle ( | |
325 | + | @Callable(aH) | |
326 | + | func configureOracle (ba) = if ((aH.caller != this)) | |
313 | 327 | then throw("FCO: admin only") | |
314 | - | else [StringEntry( | |
328 | + | else [StringEntry(m(), ba)] | |
315 | 329 | ||
316 | 330 | ||
317 | 331 | ||
318 | - | @Callable( | |
319 | - | func buyPerch ( | |
320 | - | let | |
321 | - | if (( | |
332 | + | @Callable(aH) | |
333 | + | func buyPerch (bb,bc) = { | |
334 | + | let bd = P(aH.payments[0]) | |
335 | + | if ((bd == bd)) | |
322 | 336 | then { | |
323 | - | let | |
337 | + | let be = if ((bb == "U")) | |
324 | 338 | then "B" | |
325 | - | else | |
326 | - | if ((0 > value(indexOf(["B", "R", "G", "Y"], | |
339 | + | else bb | |
340 | + | if ((0 > value(indexOf(["B", "R", "G", "Y"], be)))) | |
327 | 341 | then throw("you need to set color properly") | |
328 | 342 | else { | |
329 | - | let | |
330 | - | let | |
331 | - | then value( | |
332 | - | else value( | |
333 | - | if (( | |
334 | - | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String( | |
335 | - | else if (( | |
336 | - | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString( | |
343 | + | let bf = aE(toString(aH.caller)) | |
344 | + | let bg = if ((size(aH.payments) == 2)) | |
345 | + | then value(aH.payments[1]) | |
346 | + | else value(aH.payments[0]) | |
347 | + | if ((bg.assetId != A())) | |
348 | + | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(A()))) | |
349 | + | else if ((bg.amount != bf)) | |
350 | + | then throw(((("FBP: To buy a perch you currently need the following amount of EGGlets: " + toString(bf)) + " ") + toString(aH.caller))) | |
337 | 351 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (( | |
352 | + | let bh = fraction(bf, 5, 100) | |
353 | + | let bi = aC(invoke(I(), "refPayment", [bc], [AttachedPayment(A(), bh)])) | |
354 | + | if ((bi == bi)) | |
341 | 355 | then { | |
342 | - | let | |
343 | - | then ( | |
344 | - | else | |
345 | - | let | |
346 | - | if (( | |
356 | + | let bj = if (bi) | |
357 | + | then (bf - bh) | |
358 | + | else bf | |
359 | + | let bk = invoke(G(), "burnAttachedPayments", nil, [AttachedPayment(A(), bj)]) | |
360 | + | if ((bk == bk)) | |
347 | 361 | then { | |
348 | - | let | |
349 | - | let | |
350 | - | ([IntegerEntry( | |
362 | + | let bl = ((("address_" + toString(aH.caller)) + "_perchesAvailable_") + be) | |
363 | + | let bm = S(bl) | |
364 | + | ([IntegerEntry(bl, (bm + 1))] ++ bd) | |
351 | 365 | } | |
352 | 366 | else throw("Strict value is not equal to itself.") | |
353 | 367 | } | |
354 | 368 | else throw("Strict value is not equal to itself.") | |
355 | 369 | } | |
356 | 370 | } | |
357 | 371 | } | |
358 | 372 | else throw("Strict value is not equal to itself.") | |
359 | 373 | } | |
360 | 374 | ||
361 | 375 | ||
362 | 376 | ||
363 | - | @Callable( | |
364 | - | func stakeNFT ( | |
365 | - | let | |
366 | - | if (( | |
377 | + | @Callable(aH) | |
378 | + | func stakeNFT (bn) = { | |
379 | + | let bd = P(aH.payments[0]) | |
380 | + | if ((bd == bd)) | |
367 | 381 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | if ((70 > | |
382 | + | let bo = value(aH.payments[1]) | |
383 | + | let aI = value(bo.assetId) | |
384 | + | let ao = value(value(assetInfo(aI)).name) | |
385 | + | let an = (takeRight(ao, 1) == "U") | |
386 | + | let h = toString(aH.caller) | |
387 | + | let ap = am(an, ao) | |
388 | + | if ((70 > ap)) | |
375 | 389 | then throw("Only ducks with a rarity above 70 can be locked!") | |
376 | 390 | else { | |
377 | - | let | |
378 | - | then | |
379 | - | else takeRight( | |
380 | - | let | |
381 | - | if (( | |
391 | + | let be = if (an) | |
392 | + | then bn | |
393 | + | else takeRight(ao, 1) | |
394 | + | let bp = S(((("address_" + h) + "_perchesAvailable_") + be)) | |
395 | + | if ((bo.amount != 1)) | |
382 | 396 | then throw("NFT is not attached") | |
383 | - | else if ((0 >= | |
384 | - | then throw(("no perches available for the color " + | |
397 | + | else if ((0 >= bp)) | |
398 | + | then throw(("no perches available for the color " + be)) | |
385 | 399 | else { | |
386 | - | let | |
387 | - | if (( | |
388 | - | then (([IntegerEntry( | |
400 | + | let bq = W(invoke(this, "calculateFarmPower", [toBase58String(aI)], nil)) | |
401 | + | if ((bq == bq)) | |
402 | + | then (([IntegerEntry(y(), (S(y()) + bq._1)), IntegerEntry(N(h), (S(N(h)) + bq._1)), IntegerEntry(((("address_" + h) + "_perchesAvailable_") + be), (bp - 1)), StringEntry((toBase58String(aI) + "_owner"), h), IntegerEntry(L(h, toBase58String(aI)), bq._1), IntegerEntry((toBase58String(aI) + "_basePower"), bq._2), StringEntry((((("address_" + h) + "_asset_") + toBase58String(aI)) + "_perchColor"), be)] ++ aw(h, toBase58String(aI))) ++ bd) | |
389 | 403 | else throw("Strict value is not equal to itself.") | |
390 | 404 | } | |
391 | 405 | } | |
392 | 406 | } | |
393 | 407 | else throw("Strict value is not equal to itself.") | |
394 | 408 | } | |
395 | 409 | ||
396 | 410 | ||
397 | 411 | ||
398 | - | @Callable( | |
399 | - | func topUpReward ( | |
412 | + | @Callable(aH) | |
413 | + | func topUpReward (Y) = if ((aH.caller != F())) | |
400 | 414 | then throw("VFTUP: Only couponsdapp can do topup!") | |
401 | 415 | else { | |
402 | - | let | |
403 | - | $Tuple2( | |
416 | + | let br = X(Y) | |
417 | + | $Tuple2(br, true) | |
404 | 418 | } | |
405 | 419 | ||
406 | 420 | ||
407 | 421 | ||
408 | - | @Callable( | |
409 | - | func claimReward ( | |
410 | - | let | |
411 | - | if (( | |
412 | - | then if (( | |
422 | + | @Callable(aH) | |
423 | + | func claimReward (aI) = { | |
424 | + | let bd = P(aH.payments[0]) | |
425 | + | if ((bd == bd)) | |
426 | + | then if ((j((aI + "_owner")) != toString(aH.caller))) | |
413 | 427 | then throw("You don't own this duck!!") | |
414 | - | else if ((size( | |
428 | + | else if ((size(aH.payments) > 1)) | |
415 | 429 | then throw("Please don't add extra payments") | |
416 | - | else ( | |
430 | + | else (aw(toString(aH.caller), aI) ++ bd) | |
417 | 431 | else throw("Strict value is not equal to itself.") | |
418 | 432 | } | |
419 | 433 | ||
434 | + | ||
435 | + | @Verifier(bs) | |
436 | + | func bt () = if (e()) | |
437 | + | then sigVerify(bs.bodyBytes, bs.proofs[0], bs.senderPublicKey) | |
438 | + | else { | |
439 | + | let bu = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
440 | + | let bv = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
441 | + | let bw = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
442 | + | let bx = if (sigVerify(bs.bodyBytes, bs.proofs[0], bu)) | |
443 | + | then 1 | |
444 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bu)) | |
445 | + | then 1 | |
446 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bu)) | |
447 | + | then 1 | |
448 | + | else 0 | |
449 | + | let by = if (sigVerify(bs.bodyBytes, bs.proofs[0], bv)) | |
450 | + | then 1 | |
451 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bv)) | |
452 | + | then 1 | |
453 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bv)) | |
454 | + | then 1 | |
455 | + | else 0 | |
456 | + | let bz = if (sigVerify(bs.bodyBytes, bs.proofs[0], bw)) | |
457 | + | then 1 | |
458 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[1], bw)) | |
459 | + | then 1 | |
460 | + | else if (sigVerify(bs.bodyBytes, bs.proofs[2], bw)) | |
461 | + | then 1 | |
462 | + | else 0 | |
463 | + | let bA = ((bx + by) + bz) | |
464 | + | let c = bs | |
465 | + | (bA >= 2) | |
466 | + | } | |
420 | 467 |
github/deemru/w8io/026f985 150.24 ms ◑