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