tx · CgW8Kzru4Cuxd1d4czQtFpBfKjvcedupZSWrk92HDaWi 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.14000000 Waves 2022.11.15 09:49 [2317901] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "CgW8Kzru4Cuxd1d4czQtFpBfKjvcedupZSWrk92HDaWi", "fee": 14000000, "feeAssetId": null, "timestamp": 1668495004515, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "2VAo86bYhGsJ1bQCY7rrx4NJPCVwwLbFQZUkGQDVtpTMmhCRv5JgCbDhaxwWsjUtgA1LY27HbPXaosYYE7vPWM3v", "4n5cCz4TMiogLegq9i6CP2PQzhVdk8mxv13icpz7yDwHBptNsth5ks9UWnttkeH1CjVAcDDQs6KLDzsWC1QAz3LM" ], "script": "base64:BgJcCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBaAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZWlnaHQAG2tUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAIedG90YWxfc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AAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgTiMBg=", "height": 2317901, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GbotN5FiRVpLN44N6iBGD1kPERA9VAy8XwheBCenhrXo Next: 8twS7zvqugChLtVgFiBJ7SQcooSJNne1f97CvNwgjexG Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | ||
72 | 72 | let I = "share_limit_on_first_harvest" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "cpmm_contract" | |
75 | 75 | ||
76 | - | let K = "admin_pub_ | |
76 | + | let K = "admin_pub_1" | |
77 | 77 | ||
78 | - | let L = "admin_pub_ | |
78 | + | let L = "admin_pub_2" | |
79 | 79 | ||
80 | - | let M = "admin_ | |
80 | + | let M = "admin_pub_3" | |
81 | 81 | ||
82 | - | let N = " | |
82 | + | let N = "admin_invoke_pub" | |
83 | 83 | ||
84 | - | let O = " | |
84 | + | let O = "money_box_address" | |
85 | 85 | ||
86 | - | let P = " | |
86 | + | let P = "voting_address" | |
87 | 87 | ||
88 | - | let Q = " | |
88 | + | let Q = "governance_address" | |
89 | 89 | ||
90 | - | let R = "farming | |
90 | + | let R = "lp_farming" | |
91 | 91 | ||
92 | - | let S = | |
92 | + | let S = "farming_treasure" | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
95 | 95 | ||
96 | - | let U = | |
96 | + | let U = 10000000000 | |
97 | 97 | ||
98 | - | let V = | |
98 | + | let V = 100000000 | |
99 | 99 | ||
100 | - | let W = | |
100 | + | let W = 1000 | |
101 | 101 | ||
102 | - | func X (Y) = { | |
103 | - | let Z = getString(S, Y) | |
104 | - | if ($isInstanceOf(Z, "String")) | |
102 | + | let X = 500 | |
103 | + | ||
104 | + | func Y (Z) = { | |
105 | + | let aa = getString(T, Z) | |
106 | + | if ($isInstanceOf(aa, "String")) | |
105 | 107 | then { | |
106 | - | let | |
107 | - | fromBase58String( | |
108 | + | let ab = aa | |
109 | + | fromBase58String(ab) | |
108 | 110 | } | |
109 | 111 | else { | |
110 | - | let | |
111 | - | throw(( | |
112 | + | let ac = aa | |
113 | + | throw((Z + "is empty")) | |
112 | 114 | } | |
113 | 115 | } | |
114 | 116 | ||
115 | 117 | ||
116 | - | let | |
118 | + | let ad = Y(K) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = Y(L) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = Y(M) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = Address(Y(O)) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = Address(Y(P)) | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = Address(Y(Q)) | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = Y(N) | |
129 | 131 | ||
130 | - | let | |
132 | + | let ak = Address(Y(R)) | |
131 | 133 | ||
132 | - | let | |
134 | + | let al = Address(Y(S)) | |
133 | 135 | ||
134 | - | let | |
136 | + | let am = Address(Y(J)) | |
135 | 137 | ||
136 | - | let | |
138 | + | let an = getBooleanValue(this, a) | |
137 | 139 | ||
138 | - | let | |
140 | + | let ao = valueOrElse(getBoolean(T, b), true) | |
139 | 141 | ||
140 | - | func ao (ap) = valueOrElse(getInteger(Address(fromBase58String(ap)), H), 0) | |
142 | + | let ap = fromBase58String(getStringValue(this, A)) | |
143 | + | ||
144 | + | func aq (ar) = valueOrElse(getInteger(Address(fromBase58String(ar)), H), 0) | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func as (ar) = valueOrErrorMessage(getInteger(ar, I), ("No data on the key: " + I)) | |
144 | 148 | ||
145 | 149 | ||
146 | - | func | |
150 | + | func at (ar) = valueOrErrorMessage(getInteger(this, (ar + o)), (("No data on the key: " + ar) + o)) | |
147 | 151 | ||
148 | 152 | ||
149 | - | func | |
153 | + | func au (ar) = valueOrElse(getInteger(ah, (ar + E)), 0) | |
150 | 154 | ||
151 | 155 | ||
152 | - | func | |
156 | + | func av (ar,aw) = valueOrElse(getInteger(ah, (((aw + "_") + ar) + F)), 0) | |
153 | 157 | ||
154 | 158 | ||
155 | - | func | |
159 | + | func ax (ar) = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
156 | 160 | ||
157 | 161 | ||
158 | - | func | |
159 | - | let | |
160 | - | if ($isInstanceOf( | |
162 | + | func ay (az) = { | |
163 | + | let aa = az | |
164 | + | if ($isInstanceOf(aa, "ByteVector")) | |
161 | 165 | then { | |
162 | - | let | |
163 | - | assetBalance(this, | |
166 | + | let aA = aa | |
167 | + | assetBalance(this, aA) | |
164 | 168 | } | |
165 | - | else if ($isInstanceOf( | |
169 | + | else if ($isInstanceOf(aa, "Unit")) | |
166 | 170 | then { | |
167 | - | let | |
171 | + | let aB = aa | |
168 | 172 | wavesBalance(this).available | |
169 | 173 | } | |
170 | 174 | else throw("Match error") | |
171 | 175 | } | |
172 | 176 | ||
173 | 177 | ||
174 | - | func | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | pow(10, 0, | |
178 | + | func aC (aD,aE) = { | |
179 | + | let aF = value(assetInfo(aD)).decimals | |
180 | + | let aG = value(assetInfo(aE)).decimals | |
181 | + | let aH = ((aG - aF) + 8) | |
182 | + | pow(10, 0, aH, 0, 0, DOWN) | |
179 | 183 | } | |
180 | 184 | ||
181 | 185 | ||
182 | - | func | |
186 | + | func aI (ar,aw) = valueOrElse(getInteger(this, (((ar + "_") + aw) + B)), 0) | |
183 | 187 | ||
184 | 188 | ||
185 | - | func | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if (if (( | |
189 | + | func aJ (ar) = { | |
190 | + | let aK = valueOrErrorMessage(getInteger(ai, g), ((("No data on the key: " + g) + " at address ") + toString(ai))) | |
191 | + | let aL = valueOrErrorMessage(getInteger(ai, h), ((("No data on the key: " + h) + " at address ") + toString(ai))) | |
192 | + | let aM = valueOrErrorMessage(getInteger(ai, (ar + d)), (((("No data on the key: " + ar) + d) + " at address ") + toString(ai))) | |
193 | + | let aN = valueOrErrorMessage(getInteger(ai, i), ((("No data on the key: " + i) + " at address ") + toString(ai))) | |
194 | + | let aO = valueOrElse(getInteger(ai, (ar + f)), aN) | |
195 | + | let aP = valueOrErrorMessage(getInteger(ai, (ar + e)), (((("No data on the key: " + ar) + e) + " at address ") + toString(ai))) | |
196 | + | let aQ = fraction(aK, aM, U) | |
197 | + | let aR = fraction(aK, aP, U) | |
198 | + | if (if ((aQ > aK)) | |
195 | 199 | then true | |
196 | - | else ( | |
200 | + | else (aR > aL)) | |
197 | 201 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
198 | - | else $Tuple4( | |
202 | + | else $Tuple4(aQ, aN, aR, aO) | |
199 | 203 | } | |
200 | 204 | ||
201 | 205 | ||
202 | - | func | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | $Tuple4(aU, | |
206 | + | func aS (ar) = { | |
207 | + | let aT = valueOrErrorMessage(getInteger(this, (ar + t)), (("No data on the key: " + ar) + t)) | |
208 | + | let aU = valueOrErrorMessage(getInteger(this, (ar + v)), (("No data on the key: " + ar) + v)) | |
209 | + | let aV = valueOrErrorMessage(getInteger(this, (ar + x)), (("No data on the key: " + ar) + x)) | |
210 | + | let aW = valueOrElse(getInteger(this, (ar + z)), height) | |
211 | + | $Tuple4(aW, aT, aU, aV) | |
208 | 212 | } | |
209 | 213 | ||
210 | 214 | ||
211 | - | func | |
212 | - | let | |
213 | - | fraction( | |
215 | + | func aX (ar,aY) = { | |
216 | + | let aZ = valueOrElse(getInteger(this, (ar + s)), X) | |
217 | + | fraction(aY, W, (aZ + W)) | |
214 | 218 | } | |
215 | 219 | ||
216 | 220 | ||
217 | - | func | |
218 | - | let | |
219 | - | fraction( | |
221 | + | func ba (ar,aY) = { | |
222 | + | let aZ = valueOrElse(getInteger(this, (ar + s)), X) | |
223 | + | fraction(aY, aZ, (aZ + W)) | |
220 | 224 | } | |
221 | 225 | ||
222 | 226 | ||
223 | - | func | |
224 | - | then $Tuple3( | |
227 | + | func bb (ar,aW,aN,aO,aT,aU,bc,bd,be,bf,bg,bh) = if ((bf == 0)) | |
228 | + | then $Tuple3(aT, aU, bd) | |
225 | 229 | else { | |
226 | - | let | |
227 | - | then ( | |
230 | + | let bi = if (if (if ((aN > height)) | |
231 | + | then (aN == aO) | |
228 | 232 | else false) | |
229 | 233 | then true | |
230 | - | else if ((height > | |
231 | - | then ( | |
234 | + | else if ((height > aN)) | |
235 | + | then (aN != aO) | |
232 | 236 | else false) | |
233 | 237 | then { | |
234 | - | let | |
235 | - | $Tuple4( | |
238 | + | let bj = (bg * (height - aW)) | |
239 | + | $Tuple4(bj, aT, aU, bd) | |
236 | 240 | } | |
237 | - | else if (if (if ((height > | |
238 | - | then ( | |
241 | + | else if (if (if ((height > aN)) | |
242 | + | then (aN == aO) | |
239 | 243 | else false) | |
240 | - | then ( | |
244 | + | then (aW > aN) | |
241 | 245 | else false) | |
242 | 246 | then { | |
243 | - | let | |
244 | - | $Tuple4( | |
247 | + | let bj = (be * (height - aW)) | |
248 | + | $Tuple4(bj, aT, aU, bd) | |
245 | 249 | } | |
246 | 250 | else { | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | then fraction( | |
251 | + | let bk = (bg * (aN - aW)) | |
252 | + | let bl = (aT + fraction(aX(ar, bk), bh, bf)) | |
253 | + | let bm = (aU + (if ((bc > 0)) | |
254 | + | then fraction(ba(ar, bk), V, bc) | |
251 | 255 | else 0)) | |
252 | - | let | |
253 | - | then fraction(fraction( | |
256 | + | let bn = (bd + (if ((bc > 0)) | |
257 | + | then fraction(fraction(ba(ar, bk), V, bf), V, bc) | |
254 | 258 | else 0)) | |
255 | - | let | |
256 | - | $Tuple4(bm, | |
259 | + | let bo = (be * (height - aN)) | |
260 | + | $Tuple4(bo, bl, bm, bn) | |
257 | 261 | } | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | then fraction( | |
262 | + | let bp = bi._1 | |
263 | + | let bq = bi._2 | |
264 | + | let br = bi._3 | |
265 | + | let bs = bi._4 | |
266 | + | let bt = (bq + fraction(aX(ar, bp), bh, bf)) | |
267 | + | let bu = (br + (if ((bc > 0)) | |
268 | + | then fraction(ba(ar, bp), V, bc) | |
265 | 269 | else 0)) | |
266 | - | let | |
267 | - | then fraction(fraction( | |
270 | + | let bv = (bs + (if ((bc > 0)) | |
271 | + | then fraction(fraction(ba(ar, bp), V, bf), V, bc) | |
268 | 272 | else 0)) | |
269 | - | $Tuple3( | |
273 | + | $Tuple3(bt, bu, bv) | |
270 | 274 | } | |
271 | 275 | ||
272 | 276 | ||
273 | - | func | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ((0 > | |
277 | + | func bw (ar,aw) = { | |
278 | + | let bh = aC(ap, ax(ar)) | |
279 | + | let bc = au(ar) | |
280 | + | let bx = av(ar, aw) | |
281 | + | let by = at(ar) | |
282 | + | let bz = valueOrElse(getInteger(this, (ar + p)), by) | |
283 | + | let bA = aS(ar) | |
284 | + | let aW = bA._1 | |
285 | + | let aT = bA._2 | |
286 | + | let aU = bA._3 | |
287 | + | let aV = bA._4 | |
288 | + | let bB = aJ(ar) | |
289 | + | let be = bB._1 | |
290 | + | let aN = bB._2 | |
291 | + | let bg = bB._3 | |
292 | + | let aO = bB._4 | |
293 | + | let bC = valueOrElse(getInteger(this, (((ar + "_") + aw) + u)), aT) | |
294 | + | let bD = valueOrElse(getInteger(this, (((ar + "_") + aw) + w)), aU) | |
295 | + | let bE = valueOrElse(getInteger(this, (((ar + "_") + aw) + y)), aV) | |
296 | + | let bF = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
297 | + | let bG = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), bF) | |
298 | + | let bH = bb(ar, aW, aN, aO, aT, aU, bc, aV, be, bz, bg, bh) | |
299 | + | let bt = bH._1 | |
300 | + | let bu = bH._2 | |
301 | + | let bv = bH._3 | |
302 | + | let bI = fraction(bG, (bt - bC), bh) | |
303 | + | let bJ = fraction(bx, (bu - bD), V) | |
304 | + | let bK = fraction(toBigInt(bG), toBigInt(bx), toBigInt(1)) | |
305 | + | let bL = toInt(fraction(fraction(bK, toBigInt((bv - bE)), toBigInt(V)), toBigInt(1), toBigInt(V))) | |
306 | + | let bM = (bJ - bL) | |
307 | + | if ((0 > bM)) | |
304 | 308 | then throw("toTreasury < 0") | |
305 | - | else $Tuple5( | |
309 | + | else $Tuple5(bt, bu, bv, (bI + bL), bM) | |
306 | 310 | } | |
307 | 311 | ||
308 | 312 | ||
309 | - | func | |
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | $Tuple2(( | |
313 | + | func bN (bO,aw) = { | |
314 | + | func bP (bQ,ar) = { | |
315 | + | let bR = bQ | |
316 | + | let bS = bR._1 | |
317 | + | let bT = bR._2 | |
318 | + | let bU = bw(ar, aw) | |
319 | + | let bV = bU._1 | |
320 | + | let bW = bU._2 | |
321 | + | let bX = bU._3 | |
322 | + | let bY = bU._4 | |
323 | + | let bZ = bU._5 | |
324 | + | let ca = (aI(ar, aw) + bY) | |
325 | + | $Tuple2((bS :+ ar), (bT :+ ca)) | |
322 | 326 | } | |
323 | 327 | ||
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | func | |
328 | - | then | |
329 | - | else | |
328 | + | let cb = bO | |
329 | + | let cc = size(cb) | |
330 | + | let cd = $Tuple2(nil, nil) | |
331 | + | func ce (cf,cg) = if ((cg >= cc)) | |
332 | + | then cf | |
333 | + | else bP(cf, cb[cg]) | |
330 | 334 | ||
331 | - | func | |
332 | - | then | |
335 | + | func ch (cf,cg) = if ((cg >= cc)) | |
336 | + | then cf | |
333 | 337 | else throw("List size exceeds 60") | |
334 | 338 | ||
335 | - | | |
339 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
336 | 340 | } | |
337 | 341 | ||
338 | 342 | ||
339 | - | func | |
343 | + | func ci (ar,aw,cj,ck,cl) = if ((aq(ar) > height)) | |
340 | 344 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | if (( | |
345 | + | let cm = valueOrElse(getInteger(ah, (ar + D)), 0) | |
346 | + | let cn = valueOrElse(getInteger(ah, (((aw + "_") + ar) + G)), 0) | |
347 | + | let co = as(addressFromStringValue(ar)) | |
348 | + | let cp = (fraction(co, cn, cm) - cj) | |
349 | + | if ((cl > 0)) | |
346 | 350 | then throw("You can't lock shareTokens till first harvest end.") | |
347 | - | else if (( | |
351 | + | else if ((cn == 0)) | |
348 | 352 | then 0 | |
349 | - | else if (( | |
350 | - | then ( | |
353 | + | else if ((ck >= cp)) | |
354 | + | then (ck - cp) | |
351 | 355 | else 0 | |
352 | 356 | } | |
353 | 357 | else 0 | |
354 | 358 | ||
355 | 359 | ||
356 | - | func | |
357 | - | let | |
358 | - | $Tuple2(parseIntValue( | |
360 | + | func cq (cr) = { | |
361 | + | let cs = split(valueOrErrorMessage(getString(this, (toString(cr) + q)), ("There are no key for lock type" + toString(cr))), "_") | |
362 | + | $Tuple2(parseIntValue(cs[0]), parseIntValue(cs[1])) | |
359 | 363 | } | |
360 | 364 | ||
361 | 365 | ||
362 | - | func | |
366 | + | func ct (cu) = [BooleanEntry(a, false), StringEntry(c, cu)] | |
363 | 367 | ||
364 | 368 | ||
365 | - | func | |
366 | - | then | |
369 | + | func cv () = if (if (an) | |
370 | + | then ao | |
367 | 371 | else false) | |
368 | 372 | then unit | |
369 | 373 | else throw("DApp is inactive at this moment") | |
370 | 374 | ||
371 | 375 | ||
372 | - | func | |
376 | + | func cw (cx) = if (containsElement([ad, ae, af], cx.callerPublicKey)) | |
373 | 377 | then unit | |
374 | 378 | else throw("Only admin can call this function") | |
375 | 379 | ||
376 | 380 | ||
377 | - | func cw (cv,ap) = if ((toString(cv.caller) == ap)) | |
381 | + | func cy (cx,ar) = if (if ((toString(cx.caller) == ar)) | |
382 | + | then true | |
383 | + | else (cx.caller == am)) | |
378 | 384 | then unit | |
379 | 385 | else throw("Only pool can call this function") | |
380 | 386 | ||
381 | 387 | ||
382 | - | func | |
388 | + | func cz (cx) = if ((cx.caller == this)) | |
383 | 389 | then unit | |
384 | 390 | else throw("Only contract itself can call this function") | |
385 | 391 | ||
386 | 392 | ||
387 | - | func | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | if (( | |
393 | + | func cA (cx,cB,ar,cl) = { | |
394 | + | let cC = ax(ar) | |
395 | + | let aw = toString(cB) | |
396 | + | let cD = at(ar) | |
397 | + | let bz = valueOrElse(getInteger(this, (ar + p)), cD) | |
398 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
399 | + | let cF = valueOrElse(getInteger(this, (((ar + "_") + aw) + m)), 0) | |
400 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
401 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
402 | + | let cI = ((cE + cG) + cx.payments[0].amount) | |
403 | + | let cJ = cq(cl) | |
404 | + | let cK = cJ._1 | |
405 | + | let cL = cJ._2 | |
406 | + | let cM = getIntegerValue(this, r) | |
407 | + | if ((cx.payments[0].assetId != cC)) | |
402 | 408 | then throw("Wrong sharetoken in payment") | |
403 | - | else if ((0 >= | |
409 | + | else if ((0 >= cx.payments[0].amount)) | |
404 | 410 | then throw("Payment amount must be greater than 0") | |
405 | - | else if ((0 > | |
411 | + | else if ((0 > cl)) | |
406 | 412 | then throw("lockType must be >= 0") | |
407 | 413 | else { | |
408 | - | let | |
409 | - | if (( | |
414 | + | let cN = ci(ar, aw, cE, cx.payments[0].amount, cl) | |
415 | + | if ((cN == cN)) | |
410 | 416 | then { | |
411 | - | let | |
417 | + | let cO = if ((cl == 0)) | |
412 | 418 | then { | |
413 | - | let | |
414 | - | $Tuple2([IntegerEntry(((( | |
419 | + | let cP = ((cH + cx.payments[0].amount) - cN) | |
420 | + | $Tuple2([IntegerEntry((((ar + "_") + aw) + j), ((cE + cx.payments[0].amount) - cN)), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz + cx.payments[0].amount) - cN)), ScriptTransfer(cB, cN, cx.payments[0].assetId)], ((cD + cx.payments[0].amount) - cN)) | |
415 | 421 | } | |
416 | - | else if (if (( | |
417 | - | then if (if ((2 > size( | |
422 | + | else if (if ((cF == 0)) | |
423 | + | then if (if ((2 > size(cx.payments))) | |
418 | 424 | then true | |
419 | - | else ( | |
425 | + | else (cx.payments[1].assetId != unit)) | |
420 | 426 | then true | |
421 | - | else ( | |
427 | + | else (cM > cx.payments[1].amount) | |
422 | 428 | else false) | |
423 | - | then throw((("You need to pay additional waves comission " + toString( | |
424 | - | else if (( | |
429 | + | then throw((("You need to pay additional waves comission " + toString(cM)) + "WAVES")) | |
430 | + | else if ((cF > (height + cK))) | |
425 | 431 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
426 | 432 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | $Tuple2([IntegerEntry(((( | |
433 | + | let cQ = (cG + cx.payments[0].amount) | |
434 | + | let cR = (height + cK) | |
435 | + | let cP = (fraction(cQ, cL, W) + cE) | |
436 | + | $Tuple2([IntegerEntry((((ar + "_") + aw) + k), cQ), IntegerEntry((((ar + "_") + aw) + m), cR), IntegerEntry((((ar + "_") + aw) + l), cl), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz - cH) + cP))], (cD + cx.payments[0].amount)) | |
431 | 437 | } | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
438 | + | let cS = cO._1 | |
439 | + | let cT = cO._2 | |
440 | + | if ((ay(cC) > cT)) | |
435 | 441 | then throw("Balance of share-token is lower than totalAmount") | |
436 | 442 | else { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | then invoke( | |
443 | + | let cU = bw(ar, aw) | |
444 | + | let aT = cU._1 | |
445 | + | let aU = cU._2 | |
446 | + | let cV = cU._3 | |
447 | + | let bY = cU._4 | |
448 | + | let cW = cU._5 | |
449 | + | let cX = (aI(ar, aw) + bY) | |
450 | + | let cY = if ((getString(Address(fromBase58String(ar)), "version") == "3.0.0")) | |
451 | + | then invoke(ak, "updateUserInterest", [aw, ar, cI], nil) | |
446 | 452 | else 0 | |
447 | - | if (( | |
448 | - | then ([IntegerEntry(((( | |
453 | + | if ((cY == cY)) | |
454 | + | then ([IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((ar + o), cT), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] ++ cS) | |
449 | 455 | else throw("Strict value is not equal to itself.") | |
450 | 456 | } | |
451 | 457 | } | |
454 | 460 | } | |
455 | 461 | ||
456 | 462 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
463 | + | func cZ (cx,cB,ar,da) = valueOrElse(cv(), { | |
464 | + | let db = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
465 | + | let aw = toString(cB) | |
466 | + | let dc = bw(ar, aw) | |
467 | + | let aT = dc._1 | |
468 | + | let aU = dc._2 | |
469 | + | let cV = dc._3 | |
470 | + | let bY = dc._4 | |
471 | + | let cW = dc._5 | |
472 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
473 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
474 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
475 | + | let dd = (cE - da) | |
476 | + | let cX = (aI(ar, aw) + bY) | |
477 | + | let de = at(ar) | |
478 | + | let bz = valueOrElse(getInteger(this, (ar + p)), de) | |
479 | + | let df = (de - da) | |
480 | + | let dg = (bz - da) | |
481 | + | let cP = (cH - da) | |
482 | + | if ((da > cE)) | |
477 | 483 | then throw("Withdraw amount more then user locked amount") | |
478 | - | else if (( | |
484 | + | else if ((ay(db) > de)) | |
479 | 485 | then throw("Balance of share-token is lower than totalAmount") | |
480 | 486 | else { | |
481 | - | let | |
482 | - | then invoke( | |
487 | + | let cY = if ((getString(Address(fromBase58String(ar)), "version") == "3.0.0")) | |
488 | + | then invoke(ak, "updateUserInterest", [aw, ar, (cE + cG)], nil) | |
483 | 489 | else 0 | |
484 | - | if (( | |
485 | - | then [IntegerEntry(((( | |
490 | + | if ((cY == cY)) | |
491 | + | then [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + o), df), IntegerEntry((ar + p), dg), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap), ScriptTransfer(cx.caller, da, db)] | |
486 | 492 | else throw("Strict value is not equal to itself.") | |
487 | 493 | } | |
488 | 494 | }) | |
489 | 495 | ||
490 | 496 | ||
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | if (( | |
497 | + | func dh (cx,ar,cB) = { | |
498 | + | let db = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
499 | + | let aw = toString(cB) | |
500 | + | let bf = at(ar) | |
501 | + | let di = bw(ar, aw) | |
502 | + | let aT = di._1 | |
503 | + | let aU = di._2 | |
504 | + | let cV = di._3 | |
505 | + | let bY = di._4 | |
506 | + | let cW = di._5 | |
507 | + | let ca = (aI(ar, aw) + bY) | |
508 | + | if ((ca == 0)) | |
503 | 509 | then throw("You have 0 available SWOP") | |
504 | - | else if (( | |
510 | + | else if ((ay(db) > bf)) | |
505 | 511 | then throw("Balance of share-token is lower than totalAmount") | |
506 | 512 | else { | |
507 | - | let | |
508 | - | then [ScriptTransfer( | |
513 | + | let dj = if ((cx.caller != this)) | |
514 | + | then [ScriptTransfer(cx.caller, ca, ap)] | |
509 | 515 | else nil | |
510 | - | $Tuple2(([IntegerEntry(((( | |
516 | + | $Tuple2(([IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), 0), Reissue(ap, (cW + ca), true), ScriptTransfer(al, cW, ap)] ++ dj), ca) | |
511 | 517 | } | |
512 | 518 | } | |
513 | 519 | ||
514 | 520 | ||
515 | - | @Callable( | |
516 | - | func init ( | |
521 | + | @Callable(cx) | |
522 | + | func init (dk) = if (isDefined(getString(this, A))) | |
517 | 523 | then throw("SWOP already initialized") | |
518 | 524 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
525 | + | let dl = 100000000000000 | |
526 | + | let dm = Issue("SWOP", "SWOP protocol token", dl, 8, true) | |
527 | + | let dn = calculateAssetId(dm) | |
528 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", dl, 8, true), StringEntry(A, toBase58String(dn))] | |
523 | 529 | } | |
524 | 530 | ||
525 | 531 | ||
526 | 532 | ||
527 | - | @Callable( | |
528 | - | func initPoolShareFarming ( | |
533 | + | @Callable(cx) | |
534 | + | func initPoolShareFarming (ar) = valueOrElse(cw(cx), [IntegerEntry((ar + o), 0), IntegerEntry((ar + t), 0), IntegerEntry((ar + v), 0), IntegerEntry((ar + x), 0), IntegerEntry((ar + z), height)]) | |
529 | 535 | ||
530 | 536 | ||
531 | 537 | ||
532 | - | @Callable( | |
533 | - | func updatePoolInterest ( | |
538 | + | @Callable(cx) | |
539 | + | func updatePoolInterest (ar) = valueOrElse(cv(), if ((cx.caller != ai)) | |
534 | 540 | then throw("Only Governance can call this function") | |
535 | 541 | else { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | [IntegerEntry(( | |
542 | + | let aw = toString(addressFromPublicKey(aj)) | |
543 | + | let do = bw(ar, aw) | |
544 | + | let aT = do._1 | |
545 | + | let aU = do._2 | |
546 | + | let cV = do._3 | |
547 | + | [IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height)] | |
542 | 548 | }) | |
543 | 549 | ||
544 | 550 | ||
545 | 551 | ||
546 | - | @Callable( | |
547 | - | func lockShareTokens ( | |
552 | + | @Callable(cx) | |
553 | + | func lockShareTokens (ar,cl) = valueOrElse(cv(), cA(cx, cx.caller, ar, cl)) | |
548 | 554 | ||
549 | 555 | ||
550 | 556 | ||
551 | - | @Callable( | |
552 | - | func lockShareTokensFromPool ( | |
557 | + | @Callable(cx) | |
558 | + | func lockShareTokensFromPool (dp,ar,cl) = valueOrElse(cv(), valueOrElse(cy(cx, ar), cA(cx, Address(dp), ar, cl))) | |
553 | 559 | ||
554 | 560 | ||
555 | 561 | ||
556 | - | @Callable( | |
557 | - | func lockStakedShareTokens ( | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | if (( | |
562 | + | @Callable(cx) | |
563 | + | func lockStakedShareTokens (ar,cl,dq) = valueOrElse(cv(), { | |
564 | + | let cC = ax(ar) | |
565 | + | let aw = toString(cx.caller) | |
566 | + | let cD = at(ar) | |
567 | + | let bz = valueOrElse(getInteger(this, (ar + p)), cD) | |
568 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
569 | + | let cF = valueOrElse(getInteger(this, (((ar + "_") + aw) + m)), 0) | |
570 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
571 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
572 | + | let cI = (cE + cG) | |
573 | + | let dr = cq(cl) | |
574 | + | let cK = dr._1 | |
575 | + | let cL = dr._2 | |
576 | + | let cM = getIntegerValue(this, r) | |
577 | + | if ((aq(ar) > height)) | |
572 | 578 | then throw("You can't lock shareTokens till first harvest end.") | |
573 | - | else if ((0 >= | |
579 | + | else if ((0 >= cl)) | |
574 | 580 | then throw("lockType must be > 0") | |
575 | - | else if (( | |
576 | - | then throw(("You can't lock more than " + toString( | |
577 | - | else if (( | |
581 | + | else if ((dq > cE)) | |
582 | + | then throw(("You can't lock more than " + toString(cE))) | |
583 | + | else if ((ay(cC) > cD)) | |
578 | 584 | then throw("Balance of share-token is lower than totalAmount") | |
579 | - | else if (if (( | |
580 | - | then if (if ((1 > size( | |
585 | + | else if (if ((cF == 0)) | |
586 | + | then if (if ((1 > size(cx.payments))) | |
581 | 587 | then true | |
582 | - | else ( | |
588 | + | else (cx.payments[0].assetId != unit)) | |
583 | 589 | then true | |
584 | - | else ( | |
590 | + | else (cM > cx.payments[0].amount) | |
585 | 591 | else false) | |
586 | - | then throw((("You need to pay additional waves comission " + toString( | |
587 | - | else if (if (( | |
588 | - | then (0 >= | |
592 | + | then throw((("You need to pay additional waves comission " + toString(cM)) + "WAVES")) | |
593 | + | else if (if ((cF == 0)) | |
594 | + | then (0 >= dq) | |
589 | 595 | else false) | |
590 | 596 | then throw("lockAmount must be greater than 0") | |
591 | - | else if ((0 > | |
597 | + | else if ((0 > dq)) | |
592 | 598 | then throw("lockAmount must be positive") | |
593 | - | else if (( | |
599 | + | else if ((cF > (height + cK))) | |
594 | 600 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
595 | 601 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [IntegerEntry(((( | |
602 | + | let cQ = (cG + dq) | |
603 | + | let dd = (cE - dq) | |
604 | + | let cR = (height + cK) | |
605 | + | let cP = (fraction(cQ, cL, W) + dd) | |
606 | + | let ds = bw(ar, aw) | |
607 | + | let aT = ds._1 | |
608 | + | let aU = ds._2 | |
609 | + | let cV = ds._3 | |
610 | + | let bY = ds._4 | |
611 | + | let cW = ds._5 | |
612 | + | let cX = (aI(ar, aw) + bY) | |
613 | + | [IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + k), cQ), IntegerEntry((((ar + "_") + aw) + m), cR), IntegerEntry((((ar + "_") + aw) + l), cl), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz - cH) + cP)), IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] | |
608 | 614 | } | |
609 | 615 | }) | |
610 | 616 | ||
611 | 617 | ||
612 | 618 | ||
613 | - | @Callable( | |
614 | - | func unlockUserLock ( | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if (( | |
622 | - | then throw(("You can't unlock sharetokens till " + toString( | |
619 | + | @Callable(cx) | |
620 | + | func unlockUserLock (ar,aw) = valueOrElse(cv(), { | |
621 | + | let cM = getIntegerValue(this, r) | |
622 | + | let cF = valueOrErrorMessage(getInteger(this, (((ar + "_") + aw) + m)), (((("There is no pool " + ar) + " or user ") + aw) + "with lock")) | |
623 | + | let bz = getIntegerValue(this, (ar + p)) | |
624 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
625 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
626 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
627 | + | if ((cF > height)) | |
628 | + | then throw(("You can't unlock sharetokens till " + toString(cF))) | |
623 | 629 | else { | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | [IntegerEntry(((( | |
630 | + | let dd = (cE + cG) | |
631 | + | let dt = bw(ar, aw) | |
632 | + | let aT = dt._1 | |
633 | + | let aU = dt._2 | |
634 | + | let cV = dt._3 | |
635 | + | let bY = dt._4 | |
636 | + | let cW = dt._5 | |
637 | + | let cX = (aI(ar, aw) + bY) | |
638 | + | [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + n), dd), IntegerEntry((ar + p), ((bz - cH) + dd)), IntegerEntry((((ar + "_") + aw) + B), cX), DeleteEntry((((ar + "_") + aw) + k)), DeleteEntry((((ar + "_") + aw) + m)), DeleteEntry((((ar + "_") + aw) + l)), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap), ScriptTransfer(cx.caller, cM, unit)] | |
633 | 639 | } | |
634 | 640 | }) | |
635 | 641 | ||
636 | 642 | ||
637 | 643 | ||
638 | - | @Callable( | |
639 | - | func withdrawShareTokens ( | |
644 | + | @Callable(cx) | |
645 | + | func withdrawShareTokens (ar,da) = valueOrElse(cv(), cZ(cx, cx.caller, ar, da)) | |
640 | 646 | ||
641 | 647 | ||
642 | 648 | ||
643 | - | @Callable( | |
644 | - | func withdrawShareTokensFromPool ( | |
649 | + | @Callable(cx) | |
650 | + | func withdrawShareTokensFromPool (dp,ar,da) = valueOrElse(cv(), valueOrElse(cy(cx, ar), cZ(cx, Address(dp), ar, da))) | |
645 | 651 | ||
646 | 652 | ||
647 | 653 | ||
648 | - | @Callable( | |
649 | - | func claim ( | |
654 | + | @Callable(cx) | |
655 | + | func claim (ar) = valueOrElse(cv(), dh(cx, ar, cx.caller)) | |
650 | 656 | ||
651 | 657 | ||
652 | 658 | ||
653 | - | @Callable( | |
654 | - | func claimInternal ( | |
659 | + | @Callable(cx) | |
660 | + | func claimInternal (ar,cB) = valueOrElse(cv(), valueOrElse(cz(cx), dh(cx, ar, Address(cB)))) | |
655 | 661 | ||
656 | 662 | ||
657 | 663 | ||
658 | - | @Callable( | |
659 | - | func claimAndStake ( | |
660 | - | let | |
661 | - | let | |
662 | - | if ($isInstanceOf( | |
663 | - | then | |
664 | - | else throw(($getType( | |
664 | + | @Callable(cx) | |
665 | + | func claimAndStake (ar) = valueOrElse(cv(), { | |
666 | + | let bY = { | |
667 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
668 | + | if ($isInstanceOf(du, "Int")) | |
669 | + | then du | |
670 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
665 | 671 | } | |
666 | - | if (( | |
672 | + | if ((bY == bY)) | |
667 | 673 | then { | |
668 | - | let | |
669 | - | if (( | |
674 | + | let dv = invoke(ai, "lockSWOPFromFarming", nil, [AttachedPayment(ap, bY)]) | |
675 | + | if ((dv == dv)) | |
670 | 676 | then nil | |
671 | 677 | else throw("Strict value is not equal to itself.") | |
672 | 678 | } | |
675 | 681 | ||
676 | 682 | ||
677 | 683 | ||
678 | - | @Callable( | |
679 | - | func claimAll ( | |
680 | - | func | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | - | then | |
685 | - | else throw(($getType( | |
684 | + | @Callable(cx) | |
685 | + | func claimAll (bO) = valueOrElse(cv(), { | |
686 | + | func dw (dx,ar) = { | |
687 | + | let bY = { | |
688 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
689 | + | if ($isInstanceOf(du, "Int")) | |
690 | + | then du | |
691 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
686 | 692 | } | |
687 | - | if (( | |
688 | - | then ( | |
693 | + | if ((bY == bY)) | |
694 | + | then (dx + bY) | |
689 | 695 | else throw("Strict value is not equal to itself.") | |
690 | 696 | } | |
691 | 697 | ||
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | func | |
697 | - | then | |
698 | - | else | |
698 | + | let dx = { | |
699 | + | let cb = bO | |
700 | + | let cc = size(cb) | |
701 | + | let cd = 0 | |
702 | + | func ce (cf,cg) = if ((cg >= cc)) | |
703 | + | then cf | |
704 | + | else dw(cf, cb[cg]) | |
699 | 705 | ||
700 | - | func | |
701 | - | then | |
706 | + | func ch (cf,cg) = if ((cg >= cc)) | |
707 | + | then cf | |
702 | 708 | else throw("List size exceeds 60") | |
703 | 709 | ||
704 | - | | |
710 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
705 | 711 | } | |
706 | - | if (( | |
712 | + | if ((dx == 0)) | |
707 | 713 | then throw("You have 0 available SWOP") | |
708 | - | else [ScriptTransfer( | |
714 | + | else [ScriptTransfer(cx.caller, dx, ap)] | |
709 | 715 | }) | |
710 | 716 | ||
711 | 717 | ||
712 | 718 | ||
713 | - | @Callable( | |
714 | - | func claimAllAndStake ( | |
715 | - | func | |
716 | - | let | |
717 | - | let | |
718 | - | if ($isInstanceOf( | |
719 | - | then | |
720 | - | else throw(($getType( | |
719 | + | @Callable(cx) | |
720 | + | func claimAllAndStake (bO) = valueOrElse(cv(), { | |
721 | + | func dw (dx,ar) = { | |
722 | + | let bY = { | |
723 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
724 | + | if ($isInstanceOf(du, "Int")) | |
725 | + | then du | |
726 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
721 | 727 | } | |
722 | - | if (( | |
723 | - | then ( | |
728 | + | if ((bY == bY)) | |
729 | + | then (dx + bY) | |
724 | 730 | else throw("Strict value is not equal to itself.") | |
725 | 731 | } | |
726 | 732 | ||
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | func | |
732 | - | then | |
733 | - | else | |
733 | + | let dx = { | |
734 | + | let cb = bO | |
735 | + | let cc = size(cb) | |
736 | + | let cd = 0 | |
737 | + | func ce (cf,cg) = if ((cg >= cc)) | |
738 | + | then cf | |
739 | + | else dw(cf, cb[cg]) | |
734 | 740 | ||
735 | - | func | |
736 | - | then | |
741 | + | func ch (cf,cg) = if ((cg >= cc)) | |
742 | + | then cf | |
737 | 743 | else throw("List size exceeds 60") | |
738 | 744 | ||
739 | - | | |
745 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
740 | 746 | } | |
741 | - | if (( | |
747 | + | if ((dx == 0)) | |
742 | 748 | then throw("You have 0 available SWOP") | |
743 | 749 | else { | |
744 | - | let | |
745 | - | if (( | |
750 | + | let dv = invoke(ai, "lockSWOPFromFarming", nil, [AttachedPayment(ap, dx)]) | |
751 | + | if ((dv == dv)) | |
746 | 752 | then nil | |
747 | 753 | else throw("Strict value is not equal to itself.") | |
748 | 754 | } | |
750 | 756 | ||
751 | 757 | ||
752 | 758 | ||
753 | - | @Callable( | |
754 | - | func updateUserBoostInterest ( | |
759 | + | @Callable(cx) | |
760 | + | func updateUserBoostInterest (ar,aw) = valueOrElse(cv(), if ((cx.caller != ah)) | |
755 | 761 | then throw("Only voiting can call this function") | |
756 | 762 | else { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | [IntegerEntry(((( | |
763 | + | let dy = bw(ar, aw) | |
764 | + | let aT = dy._1 | |
765 | + | let aU = dy._2 | |
766 | + | let cV = dy._3 | |
767 | + | let bY = dy._4 | |
768 | + | let cW = dy._5 | |
769 | + | let cX = (aI(ar, aw) + bY) | |
770 | + | [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] | |
765 | 771 | }) | |
766 | 772 | ||
767 | 773 | ||
768 | 774 | ||
769 | - | @Callable( | |
770 | - | func shutdown () = valueOrElse( | |
775 | + | @Callable(cx) | |
776 | + | func shutdown () = valueOrElse(cw(cx), if (!(an)) | |
771 | 777 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
772 | - | else | |
778 | + | else ct("Paused by admin")) | |
773 | 779 | ||
774 | 780 | ||
775 | 781 | ||
776 | - | @Callable( | |
777 | - | func activate () = valueOrElse( | |
782 | + | @Callable(cx) | |
783 | + | func activate () = valueOrElse(cw(cx), if (an) | |
778 | 784 | then throw("DApp is already active") | |
779 | 785 | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
780 | 786 | ||
781 | 787 | ||
782 | - | @Verifier( | |
783 | - | func | |
784 | - | let | |
785 | - | let | |
788 | + | @Verifier(dz) | |
789 | + | func dA () = { | |
790 | + | let aa = dz | |
791 | + | let dB = if (sigVerify(dz.bodyBytes, dz.proofs[0], ad)) | |
786 | 792 | then 1 | |
787 | 793 | else 0 | |
788 | - | let | |
794 | + | let dC = if (sigVerify(dz.bodyBytes, dz.proofs[1], ae)) | |
789 | 795 | then 1 | |
790 | 796 | else 0 | |
791 | - | let | |
797 | + | let dD = if (sigVerify(dz.bodyBytes, dz.proofs[2], af)) | |
792 | 798 | then 1 | |
793 | 799 | else 0 | |
794 | - | ((( | |
800 | + | (((dB + dC) + dD) >= 2) | |
795 | 801 | } | |
796 | 802 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "shutdown_cause" | |
9 | 9 | ||
10 | 10 | let d = "_current_pool_fraction_reward" | |
11 | 11 | ||
12 | 12 | let e = "_previous_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let f = "_pool_reward_update_height" | |
15 | 15 | ||
16 | 16 | let g = "total_reward_per_block_current" | |
17 | 17 | ||
18 | 18 | let h = "total_reward_per_block_previous" | |
19 | 19 | ||
20 | 20 | let i = "reward_update_height" | |
21 | 21 | ||
22 | 22 | let j = "_share_tokens_locked" | |
23 | 23 | ||
24 | 24 | let k = "_share_tokens_blocked" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_blocked_type" | |
27 | 27 | ||
28 | 28 | let m = "_share_tokens_blocked_height" | |
29 | 29 | ||
30 | 30 | let n = "_share_tokens_virtual" | |
31 | 31 | ||
32 | 32 | let o = "_total_share_tokens_locked" | |
33 | 33 | ||
34 | 34 | let p = "_total_share_tokens_virtual" | |
35 | 35 | ||
36 | 36 | let q = "_lock_params" | |
37 | 37 | ||
38 | 38 | let r = "lock_waves_fee" | |
39 | 39 | ||
40 | 40 | let s = "_boost_coef" | |
41 | 41 | ||
42 | 42 | let t = "_last_interest" | |
43 | 43 | ||
44 | 44 | let u = "_last_interest" | |
45 | 45 | ||
46 | 46 | let v = "_last_interest_b" | |
47 | 47 | ||
48 | 48 | let w = "_last_interest_u_b" | |
49 | 49 | ||
50 | 50 | let x = "_last_interest_lpb" | |
51 | 51 | ||
52 | 52 | let y = "_last_interest_u_lpb" | |
53 | 53 | ||
54 | 54 | let z = "_last_interest_height" | |
55 | 55 | ||
56 | 56 | let A = "SWOP_id" | |
57 | 57 | ||
58 | 58 | let B = "_available_SWOP" | |
59 | 59 | ||
60 | 60 | let C = "swop_year_emission" | |
61 | 61 | ||
62 | 62 | let D = "_harvest_pool_vote_gSWOP" | |
63 | 63 | ||
64 | 64 | let E = "_pool_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let F = "_user_vote_gSWOP" | |
67 | 67 | ||
68 | 68 | let G = "_harvest_user_pool_vote_gSWOP" | |
69 | 69 | ||
70 | 70 | let H = "first_harvest_height" | |
71 | 71 | ||
72 | 72 | let I = "share_limit_on_first_harvest" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "cpmm_contract" | |
75 | 75 | ||
76 | - | let K = "admin_pub_ | |
76 | + | let K = "admin_pub_1" | |
77 | 77 | ||
78 | - | let L = "admin_pub_ | |
78 | + | let L = "admin_pub_2" | |
79 | 79 | ||
80 | - | let M = "admin_ | |
80 | + | let M = "admin_pub_3" | |
81 | 81 | ||
82 | - | let N = " | |
82 | + | let N = "admin_invoke_pub" | |
83 | 83 | ||
84 | - | let O = " | |
84 | + | let O = "money_box_address" | |
85 | 85 | ||
86 | - | let P = " | |
86 | + | let P = "voting_address" | |
87 | 87 | ||
88 | - | let Q = " | |
88 | + | let Q = "governance_address" | |
89 | 89 | ||
90 | - | let R = "farming | |
90 | + | let R = "lp_farming" | |
91 | 91 | ||
92 | - | let S = | |
92 | + | let S = "farming_treasure" | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
95 | 95 | ||
96 | - | let U = | |
96 | + | let U = 10000000000 | |
97 | 97 | ||
98 | - | let V = | |
98 | + | let V = 100000000 | |
99 | 99 | ||
100 | - | let W = | |
100 | + | let W = 1000 | |
101 | 101 | ||
102 | - | func X (Y) = { | |
103 | - | let Z = getString(S, Y) | |
104 | - | if ($isInstanceOf(Z, "String")) | |
102 | + | let X = 500 | |
103 | + | ||
104 | + | func Y (Z) = { | |
105 | + | let aa = getString(T, Z) | |
106 | + | if ($isInstanceOf(aa, "String")) | |
105 | 107 | then { | |
106 | - | let | |
107 | - | fromBase58String( | |
108 | + | let ab = aa | |
109 | + | fromBase58String(ab) | |
108 | 110 | } | |
109 | 111 | else { | |
110 | - | let | |
111 | - | throw(( | |
112 | + | let ac = aa | |
113 | + | throw((Z + "is empty")) | |
112 | 114 | } | |
113 | 115 | } | |
114 | 116 | ||
115 | 117 | ||
116 | - | let | |
118 | + | let ad = Y(K) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = Y(L) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = Y(M) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = Address(Y(O)) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = Address(Y(P)) | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = Address(Y(Q)) | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = Y(N) | |
129 | 131 | ||
130 | - | let | |
132 | + | let ak = Address(Y(R)) | |
131 | 133 | ||
132 | - | let | |
134 | + | let al = Address(Y(S)) | |
133 | 135 | ||
134 | - | let | |
136 | + | let am = Address(Y(J)) | |
135 | 137 | ||
136 | - | let | |
138 | + | let an = getBooleanValue(this, a) | |
137 | 139 | ||
138 | - | let | |
140 | + | let ao = valueOrElse(getBoolean(T, b), true) | |
139 | 141 | ||
140 | - | func ao (ap) = valueOrElse(getInteger(Address(fromBase58String(ap)), H), 0) | |
142 | + | let ap = fromBase58String(getStringValue(this, A)) | |
143 | + | ||
144 | + | func aq (ar) = valueOrElse(getInteger(Address(fromBase58String(ar)), H), 0) | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func as (ar) = valueOrErrorMessage(getInteger(ar, I), ("No data on the key: " + I)) | |
144 | 148 | ||
145 | 149 | ||
146 | - | func | |
150 | + | func at (ar) = valueOrErrorMessage(getInteger(this, (ar + o)), (("No data on the key: " + ar) + o)) | |
147 | 151 | ||
148 | 152 | ||
149 | - | func | |
153 | + | func au (ar) = valueOrElse(getInteger(ah, (ar + E)), 0) | |
150 | 154 | ||
151 | 155 | ||
152 | - | func | |
156 | + | func av (ar,aw) = valueOrElse(getInteger(ah, (((aw + "_") + ar) + F)), 0) | |
153 | 157 | ||
154 | 158 | ||
155 | - | func | |
159 | + | func ax (ar) = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
156 | 160 | ||
157 | 161 | ||
158 | - | func | |
159 | - | let | |
160 | - | if ($isInstanceOf( | |
162 | + | func ay (az) = { | |
163 | + | let aa = az | |
164 | + | if ($isInstanceOf(aa, "ByteVector")) | |
161 | 165 | then { | |
162 | - | let | |
163 | - | assetBalance(this, | |
166 | + | let aA = aa | |
167 | + | assetBalance(this, aA) | |
164 | 168 | } | |
165 | - | else if ($isInstanceOf( | |
169 | + | else if ($isInstanceOf(aa, "Unit")) | |
166 | 170 | then { | |
167 | - | let | |
171 | + | let aB = aa | |
168 | 172 | wavesBalance(this).available | |
169 | 173 | } | |
170 | 174 | else throw("Match error") | |
171 | 175 | } | |
172 | 176 | ||
173 | 177 | ||
174 | - | func | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | pow(10, 0, | |
178 | + | func aC (aD,aE) = { | |
179 | + | let aF = value(assetInfo(aD)).decimals | |
180 | + | let aG = value(assetInfo(aE)).decimals | |
181 | + | let aH = ((aG - aF) + 8) | |
182 | + | pow(10, 0, aH, 0, 0, DOWN) | |
179 | 183 | } | |
180 | 184 | ||
181 | 185 | ||
182 | - | func | |
186 | + | func aI (ar,aw) = valueOrElse(getInteger(this, (((ar + "_") + aw) + B)), 0) | |
183 | 187 | ||
184 | 188 | ||
185 | - | func | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if (if (( | |
189 | + | func aJ (ar) = { | |
190 | + | let aK = valueOrErrorMessage(getInteger(ai, g), ((("No data on the key: " + g) + " at address ") + toString(ai))) | |
191 | + | let aL = valueOrErrorMessage(getInteger(ai, h), ((("No data on the key: " + h) + " at address ") + toString(ai))) | |
192 | + | let aM = valueOrErrorMessage(getInteger(ai, (ar + d)), (((("No data on the key: " + ar) + d) + " at address ") + toString(ai))) | |
193 | + | let aN = valueOrErrorMessage(getInteger(ai, i), ((("No data on the key: " + i) + " at address ") + toString(ai))) | |
194 | + | let aO = valueOrElse(getInteger(ai, (ar + f)), aN) | |
195 | + | let aP = valueOrErrorMessage(getInteger(ai, (ar + e)), (((("No data on the key: " + ar) + e) + " at address ") + toString(ai))) | |
196 | + | let aQ = fraction(aK, aM, U) | |
197 | + | let aR = fraction(aK, aP, U) | |
198 | + | if (if ((aQ > aK)) | |
195 | 199 | then true | |
196 | - | else ( | |
200 | + | else (aR > aL)) | |
197 | 201 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
198 | - | else $Tuple4( | |
202 | + | else $Tuple4(aQ, aN, aR, aO) | |
199 | 203 | } | |
200 | 204 | ||
201 | 205 | ||
202 | - | func | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | $Tuple4(aU, | |
206 | + | func aS (ar) = { | |
207 | + | let aT = valueOrErrorMessage(getInteger(this, (ar + t)), (("No data on the key: " + ar) + t)) | |
208 | + | let aU = valueOrErrorMessage(getInteger(this, (ar + v)), (("No data on the key: " + ar) + v)) | |
209 | + | let aV = valueOrErrorMessage(getInteger(this, (ar + x)), (("No data on the key: " + ar) + x)) | |
210 | + | let aW = valueOrElse(getInteger(this, (ar + z)), height) | |
211 | + | $Tuple4(aW, aT, aU, aV) | |
208 | 212 | } | |
209 | 213 | ||
210 | 214 | ||
211 | - | func | |
212 | - | let | |
213 | - | fraction( | |
215 | + | func aX (ar,aY) = { | |
216 | + | let aZ = valueOrElse(getInteger(this, (ar + s)), X) | |
217 | + | fraction(aY, W, (aZ + W)) | |
214 | 218 | } | |
215 | 219 | ||
216 | 220 | ||
217 | - | func | |
218 | - | let | |
219 | - | fraction( | |
221 | + | func ba (ar,aY) = { | |
222 | + | let aZ = valueOrElse(getInteger(this, (ar + s)), X) | |
223 | + | fraction(aY, aZ, (aZ + W)) | |
220 | 224 | } | |
221 | 225 | ||
222 | 226 | ||
223 | - | func | |
224 | - | then $Tuple3( | |
227 | + | func bb (ar,aW,aN,aO,aT,aU,bc,bd,be,bf,bg,bh) = if ((bf == 0)) | |
228 | + | then $Tuple3(aT, aU, bd) | |
225 | 229 | else { | |
226 | - | let | |
227 | - | then ( | |
230 | + | let bi = if (if (if ((aN > height)) | |
231 | + | then (aN == aO) | |
228 | 232 | else false) | |
229 | 233 | then true | |
230 | - | else if ((height > | |
231 | - | then ( | |
234 | + | else if ((height > aN)) | |
235 | + | then (aN != aO) | |
232 | 236 | else false) | |
233 | 237 | then { | |
234 | - | let | |
235 | - | $Tuple4( | |
238 | + | let bj = (bg * (height - aW)) | |
239 | + | $Tuple4(bj, aT, aU, bd) | |
236 | 240 | } | |
237 | - | else if (if (if ((height > | |
238 | - | then ( | |
241 | + | else if (if (if ((height > aN)) | |
242 | + | then (aN == aO) | |
239 | 243 | else false) | |
240 | - | then ( | |
244 | + | then (aW > aN) | |
241 | 245 | else false) | |
242 | 246 | then { | |
243 | - | let | |
244 | - | $Tuple4( | |
247 | + | let bj = (be * (height - aW)) | |
248 | + | $Tuple4(bj, aT, aU, bd) | |
245 | 249 | } | |
246 | 250 | else { | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | then fraction( | |
251 | + | let bk = (bg * (aN - aW)) | |
252 | + | let bl = (aT + fraction(aX(ar, bk), bh, bf)) | |
253 | + | let bm = (aU + (if ((bc > 0)) | |
254 | + | then fraction(ba(ar, bk), V, bc) | |
251 | 255 | else 0)) | |
252 | - | let | |
253 | - | then fraction(fraction( | |
256 | + | let bn = (bd + (if ((bc > 0)) | |
257 | + | then fraction(fraction(ba(ar, bk), V, bf), V, bc) | |
254 | 258 | else 0)) | |
255 | - | let | |
256 | - | $Tuple4(bm, | |
259 | + | let bo = (be * (height - aN)) | |
260 | + | $Tuple4(bo, bl, bm, bn) | |
257 | 261 | } | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | then fraction( | |
262 | + | let bp = bi._1 | |
263 | + | let bq = bi._2 | |
264 | + | let br = bi._3 | |
265 | + | let bs = bi._4 | |
266 | + | let bt = (bq + fraction(aX(ar, bp), bh, bf)) | |
267 | + | let bu = (br + (if ((bc > 0)) | |
268 | + | then fraction(ba(ar, bp), V, bc) | |
265 | 269 | else 0)) | |
266 | - | let | |
267 | - | then fraction(fraction( | |
270 | + | let bv = (bs + (if ((bc > 0)) | |
271 | + | then fraction(fraction(ba(ar, bp), V, bf), V, bc) | |
268 | 272 | else 0)) | |
269 | - | $Tuple3( | |
273 | + | $Tuple3(bt, bu, bv) | |
270 | 274 | } | |
271 | 275 | ||
272 | 276 | ||
273 | - | func | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ((0 > | |
277 | + | func bw (ar,aw) = { | |
278 | + | let bh = aC(ap, ax(ar)) | |
279 | + | let bc = au(ar) | |
280 | + | let bx = av(ar, aw) | |
281 | + | let by = at(ar) | |
282 | + | let bz = valueOrElse(getInteger(this, (ar + p)), by) | |
283 | + | let bA = aS(ar) | |
284 | + | let aW = bA._1 | |
285 | + | let aT = bA._2 | |
286 | + | let aU = bA._3 | |
287 | + | let aV = bA._4 | |
288 | + | let bB = aJ(ar) | |
289 | + | let be = bB._1 | |
290 | + | let aN = bB._2 | |
291 | + | let bg = bB._3 | |
292 | + | let aO = bB._4 | |
293 | + | let bC = valueOrElse(getInteger(this, (((ar + "_") + aw) + u)), aT) | |
294 | + | let bD = valueOrElse(getInteger(this, (((ar + "_") + aw) + w)), aU) | |
295 | + | let bE = valueOrElse(getInteger(this, (((ar + "_") + aw) + y)), aV) | |
296 | + | let bF = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
297 | + | let bG = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), bF) | |
298 | + | let bH = bb(ar, aW, aN, aO, aT, aU, bc, aV, be, bz, bg, bh) | |
299 | + | let bt = bH._1 | |
300 | + | let bu = bH._2 | |
301 | + | let bv = bH._3 | |
302 | + | let bI = fraction(bG, (bt - bC), bh) | |
303 | + | let bJ = fraction(bx, (bu - bD), V) | |
304 | + | let bK = fraction(toBigInt(bG), toBigInt(bx), toBigInt(1)) | |
305 | + | let bL = toInt(fraction(fraction(bK, toBigInt((bv - bE)), toBigInt(V)), toBigInt(1), toBigInt(V))) | |
306 | + | let bM = (bJ - bL) | |
307 | + | if ((0 > bM)) | |
304 | 308 | then throw("toTreasury < 0") | |
305 | - | else $Tuple5( | |
309 | + | else $Tuple5(bt, bu, bv, (bI + bL), bM) | |
306 | 310 | } | |
307 | 311 | ||
308 | 312 | ||
309 | - | func | |
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | $Tuple2(( | |
313 | + | func bN (bO,aw) = { | |
314 | + | func bP (bQ,ar) = { | |
315 | + | let bR = bQ | |
316 | + | let bS = bR._1 | |
317 | + | let bT = bR._2 | |
318 | + | let bU = bw(ar, aw) | |
319 | + | let bV = bU._1 | |
320 | + | let bW = bU._2 | |
321 | + | let bX = bU._3 | |
322 | + | let bY = bU._4 | |
323 | + | let bZ = bU._5 | |
324 | + | let ca = (aI(ar, aw) + bY) | |
325 | + | $Tuple2((bS :+ ar), (bT :+ ca)) | |
322 | 326 | } | |
323 | 327 | ||
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | func | |
328 | - | then | |
329 | - | else | |
328 | + | let cb = bO | |
329 | + | let cc = size(cb) | |
330 | + | let cd = $Tuple2(nil, nil) | |
331 | + | func ce (cf,cg) = if ((cg >= cc)) | |
332 | + | then cf | |
333 | + | else bP(cf, cb[cg]) | |
330 | 334 | ||
331 | - | func | |
332 | - | then | |
335 | + | func ch (cf,cg) = if ((cg >= cc)) | |
336 | + | then cf | |
333 | 337 | else throw("List size exceeds 60") | |
334 | 338 | ||
335 | - | | |
339 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
336 | 340 | } | |
337 | 341 | ||
338 | 342 | ||
339 | - | func | |
343 | + | func ci (ar,aw,cj,ck,cl) = if ((aq(ar) > height)) | |
340 | 344 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | if (( | |
345 | + | let cm = valueOrElse(getInteger(ah, (ar + D)), 0) | |
346 | + | let cn = valueOrElse(getInteger(ah, (((aw + "_") + ar) + G)), 0) | |
347 | + | let co = as(addressFromStringValue(ar)) | |
348 | + | let cp = (fraction(co, cn, cm) - cj) | |
349 | + | if ((cl > 0)) | |
346 | 350 | then throw("You can't lock shareTokens till first harvest end.") | |
347 | - | else if (( | |
351 | + | else if ((cn == 0)) | |
348 | 352 | then 0 | |
349 | - | else if (( | |
350 | - | then ( | |
353 | + | else if ((ck >= cp)) | |
354 | + | then (ck - cp) | |
351 | 355 | else 0 | |
352 | 356 | } | |
353 | 357 | else 0 | |
354 | 358 | ||
355 | 359 | ||
356 | - | func | |
357 | - | let | |
358 | - | $Tuple2(parseIntValue( | |
360 | + | func cq (cr) = { | |
361 | + | let cs = split(valueOrErrorMessage(getString(this, (toString(cr) + q)), ("There are no key for lock type" + toString(cr))), "_") | |
362 | + | $Tuple2(parseIntValue(cs[0]), parseIntValue(cs[1])) | |
359 | 363 | } | |
360 | 364 | ||
361 | 365 | ||
362 | - | func | |
366 | + | func ct (cu) = [BooleanEntry(a, false), StringEntry(c, cu)] | |
363 | 367 | ||
364 | 368 | ||
365 | - | func | |
366 | - | then | |
369 | + | func cv () = if (if (an) | |
370 | + | then ao | |
367 | 371 | else false) | |
368 | 372 | then unit | |
369 | 373 | else throw("DApp is inactive at this moment") | |
370 | 374 | ||
371 | 375 | ||
372 | - | func | |
376 | + | func cw (cx) = if (containsElement([ad, ae, af], cx.callerPublicKey)) | |
373 | 377 | then unit | |
374 | 378 | else throw("Only admin can call this function") | |
375 | 379 | ||
376 | 380 | ||
377 | - | func cw (cv,ap) = if ((toString(cv.caller) == ap)) | |
381 | + | func cy (cx,ar) = if (if ((toString(cx.caller) == ar)) | |
382 | + | then true | |
383 | + | else (cx.caller == am)) | |
378 | 384 | then unit | |
379 | 385 | else throw("Only pool can call this function") | |
380 | 386 | ||
381 | 387 | ||
382 | - | func | |
388 | + | func cz (cx) = if ((cx.caller == this)) | |
383 | 389 | then unit | |
384 | 390 | else throw("Only contract itself can call this function") | |
385 | 391 | ||
386 | 392 | ||
387 | - | func | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | if (( | |
393 | + | func cA (cx,cB,ar,cl) = { | |
394 | + | let cC = ax(ar) | |
395 | + | let aw = toString(cB) | |
396 | + | let cD = at(ar) | |
397 | + | let bz = valueOrElse(getInteger(this, (ar + p)), cD) | |
398 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
399 | + | let cF = valueOrElse(getInteger(this, (((ar + "_") + aw) + m)), 0) | |
400 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
401 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
402 | + | let cI = ((cE + cG) + cx.payments[0].amount) | |
403 | + | let cJ = cq(cl) | |
404 | + | let cK = cJ._1 | |
405 | + | let cL = cJ._2 | |
406 | + | let cM = getIntegerValue(this, r) | |
407 | + | if ((cx.payments[0].assetId != cC)) | |
402 | 408 | then throw("Wrong sharetoken in payment") | |
403 | - | else if ((0 >= | |
409 | + | else if ((0 >= cx.payments[0].amount)) | |
404 | 410 | then throw("Payment amount must be greater than 0") | |
405 | - | else if ((0 > | |
411 | + | else if ((0 > cl)) | |
406 | 412 | then throw("lockType must be >= 0") | |
407 | 413 | else { | |
408 | - | let | |
409 | - | if (( | |
414 | + | let cN = ci(ar, aw, cE, cx.payments[0].amount, cl) | |
415 | + | if ((cN == cN)) | |
410 | 416 | then { | |
411 | - | let | |
417 | + | let cO = if ((cl == 0)) | |
412 | 418 | then { | |
413 | - | let | |
414 | - | $Tuple2([IntegerEntry(((( | |
419 | + | let cP = ((cH + cx.payments[0].amount) - cN) | |
420 | + | $Tuple2([IntegerEntry((((ar + "_") + aw) + j), ((cE + cx.payments[0].amount) - cN)), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz + cx.payments[0].amount) - cN)), ScriptTransfer(cB, cN, cx.payments[0].assetId)], ((cD + cx.payments[0].amount) - cN)) | |
415 | 421 | } | |
416 | - | else if (if (( | |
417 | - | then if (if ((2 > size( | |
422 | + | else if (if ((cF == 0)) | |
423 | + | then if (if ((2 > size(cx.payments))) | |
418 | 424 | then true | |
419 | - | else ( | |
425 | + | else (cx.payments[1].assetId != unit)) | |
420 | 426 | then true | |
421 | - | else ( | |
427 | + | else (cM > cx.payments[1].amount) | |
422 | 428 | else false) | |
423 | - | then throw((("You need to pay additional waves comission " + toString( | |
424 | - | else if (( | |
429 | + | then throw((("You need to pay additional waves comission " + toString(cM)) + "WAVES")) | |
430 | + | else if ((cF > (height + cK))) | |
425 | 431 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
426 | 432 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | $Tuple2([IntegerEntry(((( | |
433 | + | let cQ = (cG + cx.payments[0].amount) | |
434 | + | let cR = (height + cK) | |
435 | + | let cP = (fraction(cQ, cL, W) + cE) | |
436 | + | $Tuple2([IntegerEntry((((ar + "_") + aw) + k), cQ), IntegerEntry((((ar + "_") + aw) + m), cR), IntegerEntry((((ar + "_") + aw) + l), cl), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz - cH) + cP))], (cD + cx.payments[0].amount)) | |
431 | 437 | } | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
438 | + | let cS = cO._1 | |
439 | + | let cT = cO._2 | |
440 | + | if ((ay(cC) > cT)) | |
435 | 441 | then throw("Balance of share-token is lower than totalAmount") | |
436 | 442 | else { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | then invoke( | |
443 | + | let cU = bw(ar, aw) | |
444 | + | let aT = cU._1 | |
445 | + | let aU = cU._2 | |
446 | + | let cV = cU._3 | |
447 | + | let bY = cU._4 | |
448 | + | let cW = cU._5 | |
449 | + | let cX = (aI(ar, aw) + bY) | |
450 | + | let cY = if ((getString(Address(fromBase58String(ar)), "version") == "3.0.0")) | |
451 | + | then invoke(ak, "updateUserInterest", [aw, ar, cI], nil) | |
446 | 452 | else 0 | |
447 | - | if (( | |
448 | - | then ([IntegerEntry(((( | |
453 | + | if ((cY == cY)) | |
454 | + | then ([IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((ar + o), cT), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] ++ cS) | |
449 | 455 | else throw("Strict value is not equal to itself.") | |
450 | 456 | } | |
451 | 457 | } | |
452 | 458 | else throw("Strict value is not equal to itself.") | |
453 | 459 | } | |
454 | 460 | } | |
455 | 461 | ||
456 | 462 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
463 | + | func cZ (cx,cB,ar,da) = valueOrElse(cv(), { | |
464 | + | let db = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
465 | + | let aw = toString(cB) | |
466 | + | let dc = bw(ar, aw) | |
467 | + | let aT = dc._1 | |
468 | + | let aU = dc._2 | |
469 | + | let cV = dc._3 | |
470 | + | let bY = dc._4 | |
471 | + | let cW = dc._5 | |
472 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
473 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
474 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
475 | + | let dd = (cE - da) | |
476 | + | let cX = (aI(ar, aw) + bY) | |
477 | + | let de = at(ar) | |
478 | + | let bz = valueOrElse(getInteger(this, (ar + p)), de) | |
479 | + | let df = (de - da) | |
480 | + | let dg = (bz - da) | |
481 | + | let cP = (cH - da) | |
482 | + | if ((da > cE)) | |
477 | 483 | then throw("Withdraw amount more then user locked amount") | |
478 | - | else if (( | |
484 | + | else if ((ay(db) > de)) | |
479 | 485 | then throw("Balance of share-token is lower than totalAmount") | |
480 | 486 | else { | |
481 | - | let | |
482 | - | then invoke( | |
487 | + | let cY = if ((getString(Address(fromBase58String(ar)), "version") == "3.0.0")) | |
488 | + | then invoke(ak, "updateUserInterest", [aw, ar, (cE + cG)], nil) | |
483 | 489 | else 0 | |
484 | - | if (( | |
485 | - | then [IntegerEntry(((( | |
490 | + | if ((cY == cY)) | |
491 | + | then [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + o), df), IntegerEntry((ar + p), dg), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap), ScriptTransfer(cx.caller, da, db)] | |
486 | 492 | else throw("Strict value is not equal to itself.") | |
487 | 493 | } | |
488 | 494 | }) | |
489 | 495 | ||
490 | 496 | ||
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | if (( | |
497 | + | func dh (cx,ar,cB) = { | |
498 | + | let db = fromBase58String(getStringValue(value(addressFromString(ar)), "share_asset_id")) | |
499 | + | let aw = toString(cB) | |
500 | + | let bf = at(ar) | |
501 | + | let di = bw(ar, aw) | |
502 | + | let aT = di._1 | |
503 | + | let aU = di._2 | |
504 | + | let cV = di._3 | |
505 | + | let bY = di._4 | |
506 | + | let cW = di._5 | |
507 | + | let ca = (aI(ar, aw) + bY) | |
508 | + | if ((ca == 0)) | |
503 | 509 | then throw("You have 0 available SWOP") | |
504 | - | else if (( | |
510 | + | else if ((ay(db) > bf)) | |
505 | 511 | then throw("Balance of share-token is lower than totalAmount") | |
506 | 512 | else { | |
507 | - | let | |
508 | - | then [ScriptTransfer( | |
513 | + | let dj = if ((cx.caller != this)) | |
514 | + | then [ScriptTransfer(cx.caller, ca, ap)] | |
509 | 515 | else nil | |
510 | - | $Tuple2(([IntegerEntry(((( | |
516 | + | $Tuple2(([IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), 0), Reissue(ap, (cW + ca), true), ScriptTransfer(al, cW, ap)] ++ dj), ca) | |
511 | 517 | } | |
512 | 518 | } | |
513 | 519 | ||
514 | 520 | ||
515 | - | @Callable( | |
516 | - | func init ( | |
521 | + | @Callable(cx) | |
522 | + | func init (dk) = if (isDefined(getString(this, A))) | |
517 | 523 | then throw("SWOP already initialized") | |
518 | 524 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
525 | + | let dl = 100000000000000 | |
526 | + | let dm = Issue("SWOP", "SWOP protocol token", dl, 8, true) | |
527 | + | let dn = calculateAssetId(dm) | |
528 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", dl, 8, true), StringEntry(A, toBase58String(dn))] | |
523 | 529 | } | |
524 | 530 | ||
525 | 531 | ||
526 | 532 | ||
527 | - | @Callable( | |
528 | - | func initPoolShareFarming ( | |
533 | + | @Callable(cx) | |
534 | + | func initPoolShareFarming (ar) = valueOrElse(cw(cx), [IntegerEntry((ar + o), 0), IntegerEntry((ar + t), 0), IntegerEntry((ar + v), 0), IntegerEntry((ar + x), 0), IntegerEntry((ar + z), height)]) | |
529 | 535 | ||
530 | 536 | ||
531 | 537 | ||
532 | - | @Callable( | |
533 | - | func updatePoolInterest ( | |
538 | + | @Callable(cx) | |
539 | + | func updatePoolInterest (ar) = valueOrElse(cv(), if ((cx.caller != ai)) | |
534 | 540 | then throw("Only Governance can call this function") | |
535 | 541 | else { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | [IntegerEntry(( | |
542 | + | let aw = toString(addressFromPublicKey(aj)) | |
543 | + | let do = bw(ar, aw) | |
544 | + | let aT = do._1 | |
545 | + | let aU = do._2 | |
546 | + | let cV = do._3 | |
547 | + | [IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height)] | |
542 | 548 | }) | |
543 | 549 | ||
544 | 550 | ||
545 | 551 | ||
546 | - | @Callable( | |
547 | - | func lockShareTokens ( | |
552 | + | @Callable(cx) | |
553 | + | func lockShareTokens (ar,cl) = valueOrElse(cv(), cA(cx, cx.caller, ar, cl)) | |
548 | 554 | ||
549 | 555 | ||
550 | 556 | ||
551 | - | @Callable( | |
552 | - | func lockShareTokensFromPool ( | |
557 | + | @Callable(cx) | |
558 | + | func lockShareTokensFromPool (dp,ar,cl) = valueOrElse(cv(), valueOrElse(cy(cx, ar), cA(cx, Address(dp), ar, cl))) | |
553 | 559 | ||
554 | 560 | ||
555 | 561 | ||
556 | - | @Callable( | |
557 | - | func lockStakedShareTokens ( | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | if (( | |
562 | + | @Callable(cx) | |
563 | + | func lockStakedShareTokens (ar,cl,dq) = valueOrElse(cv(), { | |
564 | + | let cC = ax(ar) | |
565 | + | let aw = toString(cx.caller) | |
566 | + | let cD = at(ar) | |
567 | + | let bz = valueOrElse(getInteger(this, (ar + p)), cD) | |
568 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
569 | + | let cF = valueOrElse(getInteger(this, (((ar + "_") + aw) + m)), 0) | |
570 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
571 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
572 | + | let cI = (cE + cG) | |
573 | + | let dr = cq(cl) | |
574 | + | let cK = dr._1 | |
575 | + | let cL = dr._2 | |
576 | + | let cM = getIntegerValue(this, r) | |
577 | + | if ((aq(ar) > height)) | |
572 | 578 | then throw("You can't lock shareTokens till first harvest end.") | |
573 | - | else if ((0 >= | |
579 | + | else if ((0 >= cl)) | |
574 | 580 | then throw("lockType must be > 0") | |
575 | - | else if (( | |
576 | - | then throw(("You can't lock more than " + toString( | |
577 | - | else if (( | |
581 | + | else if ((dq > cE)) | |
582 | + | then throw(("You can't lock more than " + toString(cE))) | |
583 | + | else if ((ay(cC) > cD)) | |
578 | 584 | then throw("Balance of share-token is lower than totalAmount") | |
579 | - | else if (if (( | |
580 | - | then if (if ((1 > size( | |
585 | + | else if (if ((cF == 0)) | |
586 | + | then if (if ((1 > size(cx.payments))) | |
581 | 587 | then true | |
582 | - | else ( | |
588 | + | else (cx.payments[0].assetId != unit)) | |
583 | 589 | then true | |
584 | - | else ( | |
590 | + | else (cM > cx.payments[0].amount) | |
585 | 591 | else false) | |
586 | - | then throw((("You need to pay additional waves comission " + toString( | |
587 | - | else if (if (( | |
588 | - | then (0 >= | |
592 | + | then throw((("You need to pay additional waves comission " + toString(cM)) + "WAVES")) | |
593 | + | else if (if ((cF == 0)) | |
594 | + | then (0 >= dq) | |
589 | 595 | else false) | |
590 | 596 | then throw("lockAmount must be greater than 0") | |
591 | - | else if ((0 > | |
597 | + | else if ((0 > dq)) | |
592 | 598 | then throw("lockAmount must be positive") | |
593 | - | else if (( | |
599 | + | else if ((cF > (height + cK))) | |
594 | 600 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
595 | 601 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [IntegerEntry(((( | |
602 | + | let cQ = (cG + dq) | |
603 | + | let dd = (cE - dq) | |
604 | + | let cR = (height + cK) | |
605 | + | let cP = (fraction(cQ, cL, W) + dd) | |
606 | + | let ds = bw(ar, aw) | |
607 | + | let aT = ds._1 | |
608 | + | let aU = ds._2 | |
609 | + | let cV = ds._3 | |
610 | + | let bY = ds._4 | |
611 | + | let cW = ds._5 | |
612 | + | let cX = (aI(ar, aw) + bY) | |
613 | + | [IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + k), cQ), IntegerEntry((((ar + "_") + aw) + m), cR), IntegerEntry((((ar + "_") + aw) + l), cl), IntegerEntry((((ar + "_") + aw) + n), cP), IntegerEntry((ar + p), ((bz - cH) + cP)), IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] | |
608 | 614 | } | |
609 | 615 | }) | |
610 | 616 | ||
611 | 617 | ||
612 | 618 | ||
613 | - | @Callable( | |
614 | - | func unlockUserLock ( | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if (( | |
622 | - | then throw(("You can't unlock sharetokens till " + toString( | |
619 | + | @Callable(cx) | |
620 | + | func unlockUserLock (ar,aw) = valueOrElse(cv(), { | |
621 | + | let cM = getIntegerValue(this, r) | |
622 | + | let cF = valueOrErrorMessage(getInteger(this, (((ar + "_") + aw) + m)), (((("There is no pool " + ar) + " or user ") + aw) + "with lock")) | |
623 | + | let bz = getIntegerValue(this, (ar + p)) | |
624 | + | let cE = valueOrElse(getInteger(this, (((ar + "_") + aw) + j)), 0) | |
625 | + | let cG = valueOrElse(getInteger(this, (((ar + "_") + aw) + k)), 0) | |
626 | + | let cH = valueOrElse(getInteger(this, (((ar + "_") + aw) + n)), cE) | |
627 | + | if ((cF > height)) | |
628 | + | then throw(("You can't unlock sharetokens till " + toString(cF))) | |
623 | 629 | else { | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | [IntegerEntry(((( | |
630 | + | let dd = (cE + cG) | |
631 | + | let dt = bw(ar, aw) | |
632 | + | let aT = dt._1 | |
633 | + | let aU = dt._2 | |
634 | + | let cV = dt._3 | |
635 | + | let bY = dt._4 | |
636 | + | let cW = dt._5 | |
637 | + | let cX = (aI(ar, aw) + bY) | |
638 | + | [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + j), dd), IntegerEntry((((ar + "_") + aw) + n), dd), IntegerEntry((ar + p), ((bz - cH) + dd)), IntegerEntry((((ar + "_") + aw) + B), cX), DeleteEntry((((ar + "_") + aw) + k)), DeleteEntry((((ar + "_") + aw) + m)), DeleteEntry((((ar + "_") + aw) + l)), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap), ScriptTransfer(cx.caller, cM, unit)] | |
633 | 639 | } | |
634 | 640 | }) | |
635 | 641 | ||
636 | 642 | ||
637 | 643 | ||
638 | - | @Callable( | |
639 | - | func withdrawShareTokens ( | |
644 | + | @Callable(cx) | |
645 | + | func withdrawShareTokens (ar,da) = valueOrElse(cv(), cZ(cx, cx.caller, ar, da)) | |
640 | 646 | ||
641 | 647 | ||
642 | 648 | ||
643 | - | @Callable( | |
644 | - | func withdrawShareTokensFromPool ( | |
649 | + | @Callable(cx) | |
650 | + | func withdrawShareTokensFromPool (dp,ar,da) = valueOrElse(cv(), valueOrElse(cy(cx, ar), cZ(cx, Address(dp), ar, da))) | |
645 | 651 | ||
646 | 652 | ||
647 | 653 | ||
648 | - | @Callable( | |
649 | - | func claim ( | |
654 | + | @Callable(cx) | |
655 | + | func claim (ar) = valueOrElse(cv(), dh(cx, ar, cx.caller)) | |
650 | 656 | ||
651 | 657 | ||
652 | 658 | ||
653 | - | @Callable( | |
654 | - | func claimInternal ( | |
659 | + | @Callable(cx) | |
660 | + | func claimInternal (ar,cB) = valueOrElse(cv(), valueOrElse(cz(cx), dh(cx, ar, Address(cB)))) | |
655 | 661 | ||
656 | 662 | ||
657 | 663 | ||
658 | - | @Callable( | |
659 | - | func claimAndStake ( | |
660 | - | let | |
661 | - | let | |
662 | - | if ($isInstanceOf( | |
663 | - | then | |
664 | - | else throw(($getType( | |
664 | + | @Callable(cx) | |
665 | + | func claimAndStake (ar) = valueOrElse(cv(), { | |
666 | + | let bY = { | |
667 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
668 | + | if ($isInstanceOf(du, "Int")) | |
669 | + | then du | |
670 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
665 | 671 | } | |
666 | - | if (( | |
672 | + | if ((bY == bY)) | |
667 | 673 | then { | |
668 | - | let | |
669 | - | if (( | |
674 | + | let dv = invoke(ai, "lockSWOPFromFarming", nil, [AttachedPayment(ap, bY)]) | |
675 | + | if ((dv == dv)) | |
670 | 676 | then nil | |
671 | 677 | else throw("Strict value is not equal to itself.") | |
672 | 678 | } | |
673 | 679 | else throw("Strict value is not equal to itself.") | |
674 | 680 | }) | |
675 | 681 | ||
676 | 682 | ||
677 | 683 | ||
678 | - | @Callable( | |
679 | - | func claimAll ( | |
680 | - | func | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | - | then | |
685 | - | else throw(($getType( | |
684 | + | @Callable(cx) | |
685 | + | func claimAll (bO) = valueOrElse(cv(), { | |
686 | + | func dw (dx,ar) = { | |
687 | + | let bY = { | |
688 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
689 | + | if ($isInstanceOf(du, "Int")) | |
690 | + | then du | |
691 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
686 | 692 | } | |
687 | - | if (( | |
688 | - | then ( | |
693 | + | if ((bY == bY)) | |
694 | + | then (dx + bY) | |
689 | 695 | else throw("Strict value is not equal to itself.") | |
690 | 696 | } | |
691 | 697 | ||
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | func | |
697 | - | then | |
698 | - | else | |
698 | + | let dx = { | |
699 | + | let cb = bO | |
700 | + | let cc = size(cb) | |
701 | + | let cd = 0 | |
702 | + | func ce (cf,cg) = if ((cg >= cc)) | |
703 | + | then cf | |
704 | + | else dw(cf, cb[cg]) | |
699 | 705 | ||
700 | - | func | |
701 | - | then | |
706 | + | func ch (cf,cg) = if ((cg >= cc)) | |
707 | + | then cf | |
702 | 708 | else throw("List size exceeds 60") | |
703 | 709 | ||
704 | - | | |
710 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
705 | 711 | } | |
706 | - | if (( | |
712 | + | if ((dx == 0)) | |
707 | 713 | then throw("You have 0 available SWOP") | |
708 | - | else [ScriptTransfer( | |
714 | + | else [ScriptTransfer(cx.caller, dx, ap)] | |
709 | 715 | }) | |
710 | 716 | ||
711 | 717 | ||
712 | 718 | ||
713 | - | @Callable( | |
714 | - | func claimAllAndStake ( | |
715 | - | func | |
716 | - | let | |
717 | - | let | |
718 | - | if ($isInstanceOf( | |
719 | - | then | |
720 | - | else throw(($getType( | |
719 | + | @Callable(cx) | |
720 | + | func claimAllAndStake (bO) = valueOrElse(cv(), { | |
721 | + | func dw (dx,ar) = { | |
722 | + | let bY = { | |
723 | + | let du = invoke(this, "claimInternal", [ar, cx.caller.bytes], nil) | |
724 | + | if ($isInstanceOf(du, "Int")) | |
725 | + | then du | |
726 | + | else throw(($getType(du) + " couldn't be cast to Int")) | |
721 | 727 | } | |
722 | - | if (( | |
723 | - | then ( | |
728 | + | if ((bY == bY)) | |
729 | + | then (dx + bY) | |
724 | 730 | else throw("Strict value is not equal to itself.") | |
725 | 731 | } | |
726 | 732 | ||
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | func | |
732 | - | then | |
733 | - | else | |
733 | + | let dx = { | |
734 | + | let cb = bO | |
735 | + | let cc = size(cb) | |
736 | + | let cd = 0 | |
737 | + | func ce (cf,cg) = if ((cg >= cc)) | |
738 | + | then cf | |
739 | + | else dw(cf, cb[cg]) | |
734 | 740 | ||
735 | - | func | |
736 | - | then | |
741 | + | func ch (cf,cg) = if ((cg >= cc)) | |
742 | + | then cf | |
737 | 743 | else throw("List size exceeds 60") | |
738 | 744 | ||
739 | - | | |
745 | + | ch(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(ce(cd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
740 | 746 | } | |
741 | - | if (( | |
747 | + | if ((dx == 0)) | |
742 | 748 | then throw("You have 0 available SWOP") | |
743 | 749 | else { | |
744 | - | let | |
745 | - | if (( | |
750 | + | let dv = invoke(ai, "lockSWOPFromFarming", nil, [AttachedPayment(ap, dx)]) | |
751 | + | if ((dv == dv)) | |
746 | 752 | then nil | |
747 | 753 | else throw("Strict value is not equal to itself.") | |
748 | 754 | } | |
749 | 755 | }) | |
750 | 756 | ||
751 | 757 | ||
752 | 758 | ||
753 | - | @Callable( | |
754 | - | func updateUserBoostInterest ( | |
759 | + | @Callable(cx) | |
760 | + | func updateUserBoostInterest (ar,aw) = valueOrElse(cv(), if ((cx.caller != ah)) | |
755 | 761 | then throw("Only voiting can call this function") | |
756 | 762 | else { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | [IntegerEntry(((( | |
763 | + | let dy = bw(ar, aw) | |
764 | + | let aT = dy._1 | |
765 | + | let aU = dy._2 | |
766 | + | let cV = dy._3 | |
767 | + | let bY = dy._4 | |
768 | + | let cW = dy._5 | |
769 | + | let cX = (aI(ar, aw) + bY) | |
770 | + | [IntegerEntry((((ar + "_") + aw) + u), aT), IntegerEntry((((ar + "_") + aw) + w), aU), IntegerEntry((((ar + "_") + aw) + y), cV), IntegerEntry((ar + t), aT), IntegerEntry((ar + v), aU), IntegerEntry((ar + x), cV), IntegerEntry((ar + z), height), IntegerEntry((((ar + "_") + aw) + B), cX), Reissue(ap, cW, true), ScriptTransfer(al, cW, ap)] | |
765 | 771 | }) | |
766 | 772 | ||
767 | 773 | ||
768 | 774 | ||
769 | - | @Callable( | |
770 | - | func shutdown () = valueOrElse( | |
775 | + | @Callable(cx) | |
776 | + | func shutdown () = valueOrElse(cw(cx), if (!(an)) | |
771 | 777 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
772 | - | else | |
778 | + | else ct("Paused by admin")) | |
773 | 779 | ||
774 | 780 | ||
775 | 781 | ||
776 | - | @Callable( | |
777 | - | func activate () = valueOrElse( | |
782 | + | @Callable(cx) | |
783 | + | func activate () = valueOrElse(cw(cx), if (an) | |
778 | 784 | then throw("DApp is already active") | |
779 | 785 | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
780 | 786 | ||
781 | 787 | ||
782 | - | @Verifier( | |
783 | - | func | |
784 | - | let | |
785 | - | let | |
788 | + | @Verifier(dz) | |
789 | + | func dA () = { | |
790 | + | let aa = dz | |
791 | + | let dB = if (sigVerify(dz.bodyBytes, dz.proofs[0], ad)) | |
786 | 792 | then 1 | |
787 | 793 | else 0 | |
788 | - | let | |
794 | + | let dC = if (sigVerify(dz.bodyBytes, dz.proofs[1], ae)) | |
789 | 795 | then 1 | |
790 | 796 | else 0 | |
791 | - | let | |
797 | + | let dD = if (sigVerify(dz.bodyBytes, dz.proofs[2], af)) | |
792 | 798 | then 1 | |
793 | 799 | else 0 | |
794 | - | ((( | |
800 | + | (((dB + dC) + dD) >= 2) | |
795 | 801 | } | |
796 | 802 |
github/deemru/w8io/169f3d6 536.20 ms ◑