tx · 5ksTh9RwN23PKqr7F325kW8svzkis5rP4kTjvt86fLtQ 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC: -0.01400000 Waves 2021.06.07 21:07 [1560277] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves
{ "type": 13, "id": "5ksTh9RwN23PKqr7F325kW8svzkis5rP4kTjvt86fLtQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1623089273384, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "2GwUYuNj8fVegCCvjL7s6dsaChWjJHYdBWpHB9mDNFE4HZ8Ki1coEdUZTJZHEGyS3Uyke5vc66ac2essb1QSpBgA" ], "script": "base64:AAIEAAAAAAAAABwIAhIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAVAAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAAAtrU2hhcmVMaW1pdAIAAAAcc2hhcmVfbGltaXRfb25fZmlyc3RfaGFydmVzdAAAAAAca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIAAAAdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAAAAAHWtleVJld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAgAAAB5fcHJldmlvdXNfcG9vbF9mcmFjdGlvbl9yZ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haW1lZEFtb3VudE5ldwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAHGtleVVzZXJTV09QTGFzdENsYWltZWRBbW91bnQFAAAAC2NsYWltQW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANYXZhaWxhYmxlRnVuZAUAAAAEU1dPUAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5JABeGA==", "height": 1560277, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: XAMLD4ZSpzc5W9CWhzx33AvPDVVZnfDKatVDNMtQ5EV Next: none Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = "share_limit_on_first_harvest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "_current_pool_fraction_reward" | |
15 | 15 | ||
16 | - | let g = "_ | |
16 | + | let g = "_previous_pool_fraction_reward" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "total_reward_per_block_current" | |
19 | 19 | ||
20 | - | let i = "total_reward_per_block_ | |
20 | + | let i = "total_reward_per_block_previous" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "reward_update_height" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "_last_interest" | |
25 | 25 | ||
26 | - | let l = "_last_interest" | |
26 | + | let l = "_last_interest_height" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_share_tokens_locked" | |
29 | 29 | ||
30 | - | let n = "_ | |
30 | + | let n = "_last_interest" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "SWOP_id" | |
33 | 33 | ||
34 | - | let p = "SWOP_ | |
34 | + | let p = "_SWOP_claimed_amount" | |
35 | 35 | ||
36 | - | let q = "_SWOP_claimed_amount" | |
36 | + | let q = "_SWOP_last_claimed_amount" | |
37 | 37 | ||
38 | - | let r = "_SWOP | |
38 | + | let r = "_available_SWOP" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "farming_start_height" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "apy" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "previous_total_vote_SWOP" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "swop_year_emission" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "A_asset_balance" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "B_asset_balance" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "_harvest_pool_activeVote_struc" | |
53 | 53 | ||
54 | - | let z = "_harvest_pool_activeVote_struc" | |
54 | + | let z = "_harvest_user_pool_activeVote_struc" | |
55 | 55 | ||
56 | - | let A = "_harvest | |
56 | + | let A = "share_limit_on_first_harvest" | |
57 | 57 | ||
58 | - | let B = "_ | |
58 | + | let B = "A_asset_id" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "B_asset_id" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "first_harvest_height" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "first_harvest" | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
71 | 71 | ||
72 | - | let I = Address(base58' | |
72 | + | let I = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = 10106 | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = 10000000000 | |
77 | 77 | ||
78 | - | let L = | |
78 | + | let L = 10 | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = 1000 | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = 100000 | |
83 | 83 | ||
84 | - | let O = | |
84 | + | let O = 1000000 | |
85 | 85 | ||
86 | - | let P = | |
86 | + | let P = 100000000 | |
87 | 87 | ||
88 | - | let Q = | |
88 | + | let Q = 100000000000 | |
89 | 89 | ||
90 | - | let R = 1000000 | |
91 | - | ||
92 | - | let S = 100000000 | |
93 | - | ||
94 | - | let T = 100000000000 | |
95 | - | ||
96 | - | func U (V) = getStringValue(V, E) | |
90 | + | func R (S) = getStringValue(S, B) | |
97 | 91 | ||
98 | 92 | ||
99 | - | func | |
93 | + | func T (S) = getStringValue(S, C) | |
100 | 94 | ||
101 | 95 | ||
102 | - | func | |
96 | + | func U (S) = if ((R(S) == "WAVES")) | |
103 | 97 | then unit | |
104 | - | else fromBase58String( | |
98 | + | else fromBase58String(R(S)) | |
105 | 99 | ||
106 | 100 | ||
107 | - | func | |
101 | + | func V (S) = if ((T(S) == "WAVES")) | |
108 | 102 | then unit | |
109 | - | else fromBase58String( | |
103 | + | else fromBase58String(T(S)) | |
110 | 104 | ||
111 | 105 | ||
112 | - | let | |
106 | + | let W = "base_period" | |
113 | 107 | ||
114 | - | let | |
108 | + | let X = "period_length" | |
115 | 109 | ||
116 | - | let | |
110 | + | let Y = "start_height" | |
117 | 111 | ||
118 | - | let | |
112 | + | let Z = "first_harvest_height" | |
119 | 113 | ||
120 | - | let | |
114 | + | let aa = "duration_full_vote_power" | |
121 | 115 | ||
122 | - | let | |
116 | + | let ab = "min_vote_power" | |
123 | 117 | ||
124 | - | let | |
118 | + | let ac = valueOrErrorMessage(getInteger(H, W), "Empty kBasePeriod") | |
125 | 119 | ||
126 | - | let | |
120 | + | let ad = valueOrErrorMessage(getInteger(H, Y), "Empty kStartHeight") | |
127 | 121 | ||
128 | - | let | |
122 | + | let ae = valueOrErrorMessage(getInteger(H, X), "Empty kPeriodLength") | |
129 | 123 | ||
130 | - | let | |
124 | + | let af = valueOrErrorMessage(getInteger(H, aa), "Empty kDurationFullVotePower") | |
131 | 125 | ||
132 | - | let | |
126 | + | let ag = valueOrErrorMessage(getInteger(H, ab), "Empty kMinVotePower") | |
133 | 127 | ||
134 | - | let | |
128 | + | let ah = (ac + ((height - ad) / ae)) | |
135 | 129 | ||
136 | - | let al = (af + ((height - ag) / ah)) | |
137 | - | ||
138 | - | func am (V) = valueOrElse(getIntegerValue(V, D), 0) | |
130 | + | func ai (S) = valueOrElse(getIntegerValue(S, A), 0) | |
139 | 131 | ||
140 | 132 | ||
141 | - | let | |
133 | + | let aj = getIntegerValue(this, t) | |
142 | 134 | ||
143 | - | let | |
135 | + | let ak = getIntegerValue(this, v) | |
144 | 136 | ||
145 | - | func | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
137 | + | func al (S) = { | |
138 | + | let am = U(S) | |
139 | + | if ($isInstanceOf(am, "ByteVector")) | |
148 | 140 | then { | |
149 | - | let | |
150 | - | value(assetInfo( | |
141 | + | let an = am | |
142 | + | value(assetInfo(an)).name | |
151 | 143 | } | |
152 | - | else if ($isInstanceOf( | |
144 | + | else if ($isInstanceOf(am, "Unit")) | |
153 | 145 | then { | |
154 | - | let | |
146 | + | let ao = am | |
155 | 147 | "WAVES" | |
156 | 148 | } | |
157 | 149 | else throw("Match error") | |
158 | 150 | } | |
159 | 151 | ||
160 | 152 | ||
161 | - | func | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
153 | + | func ap (S) = { | |
154 | + | let am = V(S) | |
155 | + | if ($isInstanceOf(am, "ByteVector")) | |
164 | 156 | then { | |
165 | - | let | |
166 | - | value(assetInfo( | |
157 | + | let an = am | |
158 | + | value(assetInfo(an)).name | |
167 | 159 | } | |
168 | - | else if ($isInstanceOf( | |
160 | + | else if ($isInstanceOf(am, "Unit")) | |
169 | 161 | then { | |
170 | - | let | |
162 | + | let ao = am | |
171 | 163 | "WAVES" | |
172 | 164 | } | |
173 | 165 | else throw("Match error") | |
174 | 166 | } | |
175 | 167 | ||
176 | 168 | ||
177 | - | let | |
169 | + | let aq = fromBase58String(getStringValue(this, o)) | |
178 | 170 | ||
179 | - | func | |
171 | + | func ar (S) = valueOrElse(getBoolean(S, E), false) | |
180 | 172 | ||
181 | 173 | ||
182 | - | func | |
174 | + | func as (S) = valueOrElse(getInteger(S, D), 0) | |
183 | 175 | ||
184 | 176 | ||
185 | - | func | |
177 | + | func at (S) = valueOrErrorMessage(getInteger(S, w), ("No data on the key: " + w)) | |
186 | 178 | ||
187 | 179 | ||
188 | - | func | |
180 | + | func au (S) = valueOrErrorMessage(getInteger(S, x), ("No data on the key: " + x)) | |
189 | 181 | ||
190 | 182 | ||
191 | - | func | |
183 | + | func av (S) = valueOrErrorMessage(getInteger(S, e), ("No data on the key: " + e)) | |
192 | 184 | ||
193 | 185 | ||
194 | - | func | |
186 | + | func aw (S) = valueOrErrorMessage(getInteger(this, (S + d)), (("No data on the key: " + S) + d)) | |
195 | 187 | ||
196 | 188 | ||
197 | - | func | |
189 | + | func ax (S) = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
198 | 190 | ||
199 | 191 | ||
200 | - | func | |
201 | - | let | |
202 | - | if ($isInstanceOf( | |
192 | + | func ay (az) = { | |
193 | + | let am = az | |
194 | + | if ($isInstanceOf(am, "ByteVector")) | |
203 | 195 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | $Tuple3( | |
196 | + | let an = am | |
197 | + | let aA = toBase58String(an) | |
198 | + | let aB = valueOrErrorMessage(assetInfo(an), (("Asset " + aA) + " doesn't exist")) | |
199 | + | $Tuple3(aA, aB.name, aB.decimals) | |
208 | 200 | } | |
209 | - | else if ($isInstanceOf( | |
201 | + | else if ($isInstanceOf(am, "Unit")) | |
210 | 202 | then { | |
211 | - | let | |
203 | + | let ao = am | |
212 | 204 | $Tuple3("WAVES", "WAVES", 8) | |
213 | 205 | } | |
214 | 206 | else throw("Match error") | |
215 | 207 | } | |
216 | 208 | ||
217 | 209 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | pow(10, 0, | |
210 | + | func aC (aD,aE) = { | |
211 | + | let aF = value(assetInfo(aD)).decimals | |
212 | + | let aG = value(assetInfo(aE)).decimals | |
213 | + | let aH = ((aG - aF) + 8) | |
214 | + | pow(10, 0, aH, 0, 0, HALFDOWN) | |
223 | 215 | } | |
224 | 216 | ||
225 | 217 | ||
226 | - | func | |
218 | + | func aI (S,aJ) = valueOrElse(getInteger(this, (((S + "_") + toString(aJ)) + r)), 0) | |
227 | 219 | ||
228 | 220 | ||
229 | - | func aO (V) = { | |
230 | - | let aP = valueOrErrorMessage(getInteger(I, i), ((("No data on the key: " + i) + " at address ") + toString(I))) | |
231 | - | let aQ = valueOrErrorMessage(getInteger(I, j), ((("No data on the key: " + j) + " at address ") + toString(I))) | |
232 | - | let aR = valueOrErrorMessage(getInteger(I, (V + g)), (((("No data on the key: " + V) + g) + " at address ") + toString(I))) | |
233 | - | let aS = valueOrErrorMessage(getInteger(I, k), ((("No data on the key: " + k) + " at address ") + toString(I))) | |
234 | - | let aT = valueOrErrorMessage(getInteger(I, (V + h)), (((("No data on the key: " + V) + h) + " at address ") + toString(I))) | |
235 | - | let aU = fraction(aP, aR, N) | |
236 | - | let aV = fraction(aQ, aT, N) | |
237 | - | if (if ((aU > aP)) | |
221 | + | func aK (S) = if ((S == "3PCdNCULgjM9ZMLEt61M45qxV26ro6o48Jj")) | |
222 | + | then true | |
223 | + | else (S == "3PMcDUBDyjNB1fkRGeLGpsz1ZQPfcmyp4r5") | |
224 | + | ||
225 | + | ||
226 | + | func aL (S) = { | |
227 | + | let aM = valueOrErrorMessage(getInteger(F, h), ((("No data on the key: " + h) + " at address ") + toString(F))) | |
228 | + | let aN = valueOrErrorMessage(getInteger(F, i), ((("No data on the key: " + i) + " at address ") + toString(F))) | |
229 | + | let aO = valueOrErrorMessage(getInteger(F, (S + f)), (((("No data on the key: " + S) + f) + " at address ") + toString(F))) | |
230 | + | let aP = valueOrErrorMessage(getInteger(F, j), ((("No data on the key: " + j) + " at address ") + toString(F))) | |
231 | + | let aQ = valueOrErrorMessage(getInteger(F, (S + g)), (((("No data on the key: " + S) + g) + " at address ") + toString(F))) | |
232 | + | let aR = fraction(aM, aO, K) | |
233 | + | let aS = fraction(aN, aQ, K) | |
234 | + | if (if ((aR > aM)) | |
238 | 235 | then true | |
239 | - | else ( | |
236 | + | else (aS > aN)) | |
240 | 237 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
241 | - | else $Tuple3( | |
238 | + | else $Tuple3(aR, aP, aS) | |
242 | 239 | } | |
243 | 240 | ||
244 | 241 | ||
245 | - | func | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2( | |
242 | + | func aT (S) = { | |
243 | + | let aU = valueOrErrorMessage(getInteger(this, (S + k)), (("No data on the key: " + S) + k)) | |
244 | + | let aV = valueOrElse(getInteger(this, (S + l)), height) | |
245 | + | $Tuple2(aV, aU) | |
249 | 246 | } | |
250 | 247 | ||
251 | 248 | ||
252 | - | func | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
249 | + | func aW (S,aX) = { | |
250 | + | let aY = getInteger(this, (((S + "_") + toString(aX)) + n)) | |
251 | + | let aZ = getInteger(this, (((S + "_") + toString(aX)) + m)) | |
252 | + | let aU = valueOrErrorMessage(getInteger(this, (S + k)), (("No data on the key: " + S) + k)) | |
253 | + | let ba = { | |
254 | + | let am = aY | |
255 | + | if ($isInstanceOf(am, "Int")) | |
259 | 256 | then { | |
260 | - | let | |
261 | - | | |
257 | + | let aY = am | |
258 | + | aY | |
262 | 259 | } | |
263 | - | else | |
260 | + | else aU | |
264 | 261 | } | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
262 | + | let bb = { | |
263 | + | let am = aZ | |
264 | + | if ($isInstanceOf(am, "Int")) | |
268 | 265 | then { | |
269 | - | let | |
270 | - | | |
266 | + | let aZ = am | |
267 | + | aZ | |
271 | 268 | } | |
272 | 269 | else 0 | |
273 | 270 | } | |
274 | - | $Tuple2( | |
271 | + | $Tuple2(ba, bb) | |
275 | 272 | } | |
276 | 273 | ||
277 | 274 | ||
278 | - | func | |
275 | + | func bc (aV,aP,aU,bd,be,bf,bg,bh,bi) = if ((be == 0)) | |
279 | 276 | then 0 | |
280 | - | else if (( | |
277 | + | else if ((aP > height)) | |
281 | 278 | then { | |
282 | - | let | |
283 | - | ( | |
279 | + | let bj = (bf * (height - aV)) | |
280 | + | (aU + fraction(bj, bh, be)) | |
284 | 281 | } | |
285 | - | else if (( | |
282 | + | else if ((aV > aP)) | |
286 | 283 | then { | |
287 | - | let | |
288 | - | ( | |
284 | + | let bj = (bd * (height - aV)) | |
285 | + | (aU + fraction(bj, bh, be)) | |
289 | 286 | } | |
290 | 287 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | ( | |
288 | + | let bk = (bf * (aP - aV)) | |
289 | + | let bl = (aU + fraction(bk, bh, be)) | |
290 | + | let bj = (bd * (height - aP)) | |
291 | + | (bl + fraction(bj, bh, be)) | |
295 | 292 | } | |
296 | 293 | ||
297 | 294 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | $Tuple4( | |
295 | + | func bm (S,bn,bi) = { | |
296 | + | let bg = ax(S) | |
297 | + | let bh = aC(aq, bg) | |
298 | + | let be = aw(S) | |
299 | + | let bo = aT(S) | |
300 | + | let aV = bo._1 | |
301 | + | let aU = bo._2 | |
302 | + | let bp = aL(S) | |
303 | + | let bd = bp._1 | |
304 | + | let aP = bp._2 | |
305 | + | let bf = bp._3 | |
306 | + | let bq = aW(S, bn) | |
307 | + | let aY = bq._1 | |
308 | + | let bb = bq._2 | |
309 | + | let br = bc(aV, aP, aU, bd, be, bf, bg, bh, bi) | |
310 | + | let bs = fraction(bb, (br - aY), bh) | |
311 | + | let bt = br | |
312 | + | $Tuple4(bt, br, bs, bb) | |
316 | 313 | } | |
317 | 314 | ||
318 | 315 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | if (( | |
329 | - | then if (( | |
316 | + | func bu (S) = { | |
317 | + | let bv = aT(S) | |
318 | + | let aV = bv._1 | |
319 | + | let aU = bv._2 | |
320 | + | let bw = aL(S) | |
321 | + | let bd = bw._1 | |
322 | + | let aP = bw._2 | |
323 | + | let bf = bw._3 | |
324 | + | let be = aw(S) | |
325 | + | if ((be == 0)) | |
326 | + | then if ((aP > height)) | |
330 | 327 | then { | |
331 | - | let | |
332 | - | | |
328 | + | let bj = (bf * (height - aV)) | |
329 | + | bj | |
333 | 330 | } | |
334 | - | else if (( | |
331 | + | else if ((aV > aP)) | |
335 | 332 | then { | |
336 | - | let | |
337 | - | | |
333 | + | let bj = (bd * (height - aV)) | |
334 | + | bj | |
338 | 335 | } | |
339 | 336 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | ( | |
337 | + | let bk = (bf * (aP - aV)) | |
338 | + | let bj = (bd * (height - aP)) | |
339 | + | (bj + bk) | |
343 | 340 | } | |
344 | 341 | else 0 | |
345 | 342 | } | |
346 | 343 | ||
347 | 344 | ||
348 | - | func | |
349 | - | let | |
350 | - | if (( | |
345 | + | func bx (S,by) = { | |
346 | + | let bz = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
347 | + | if ((by == bz)) | |
351 | 348 | then true | |
352 | 349 | else false | |
353 | 350 | } | |
354 | 351 | ||
355 | 352 | ||
356 | - | func | |
353 | + | func bA (S,aJ) = valueOrElse(getInteger(this, (((S + "_") + toString(aJ)) + p)), 0) | |
357 | 354 | ||
358 | 355 | ||
359 | - | @Callable( | |
360 | - | func init ( | |
356 | + | @Callable(bB) | |
357 | + | func init (bC) = if (isDefined(getString(this, o))) | |
361 | 358 | then throw("SWOP already initialized") | |
362 | 359 | else { | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | [ | |
360 | + | let bD = 100000000000000 | |
361 | + | let bE = Issue("SWOP", "SWOP protocol token", bD, 8, true) | |
362 | + | let bF = calculateAssetId(bE) | |
363 | + | [Issue("SWOP", "SWOP protocol token", bD, 8, true), StringEntry(o, toBase58String(bF))] | |
367 | 364 | } | |
368 | 365 | ||
369 | 366 | ||
370 | 367 | ||
371 | - | @Callable(bE) | |
372 | - | func initPoolShareFarming (V) = if ((bE.caller != this)) | |
373 | - | then throw("Only the DApp itself can call this function") | |
368 | + | @Callable(bB) | |
369 | + | func initPoolShareFarming (S) = if (aK(S)) | |
370 | + | then throw("Work is currently underway") | |
371 | + | else if ((bB.caller != this)) | |
372 | + | then throw("Only the DApp itself can call this function") | |
373 | + | else { | |
374 | + | let bG = aL(S) | |
375 | + | let bH = bG._1 | |
376 | + | let aP = bG._2 | |
377 | + | let bf = bG._3 | |
378 | + | [IntegerEntry((S + d), 0), IntegerEntry((S + k), 0), IntegerEntry((S + l), height)] | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | @Callable(bB) | |
384 | + | func lockShareTokens (S) = if (aK(S)) | |
385 | + | then throw("Work is currently underway") | |
374 | 386 | else { | |
375 | - | let bJ = aO(V) | |
387 | + | let bI = $Tuple2(bB.payments[0].amount, bB.payments[0].assetId) | |
388 | + | let bi = bI._1 | |
389 | + | let by = bI._2 | |
390 | + | let bJ = ay(by) | |
376 | 391 | let bK = bJ._1 | |
377 | - | let aS = bJ._2 | |
378 | - | let bi = bJ._3 | |
379 | - | [IntegerEntry((V + d), 0), IntegerEntry((V + l), 0), IntegerEntry((V + m), height)] | |
392 | + | let bL = bJ._2 | |
393 | + | let bM = bJ._3 | |
394 | + | let bN = bm(S, bB.caller, bi) | |
395 | + | let bt = bN._1 | |
396 | + | let br = bN._2 | |
397 | + | let bs = bN._3 | |
398 | + | let bb = bN._4 | |
399 | + | let bO = (bb + bi) | |
400 | + | let bP = (aI(S, bB.caller) + bs) | |
401 | + | let bQ = aw(S) | |
402 | + | let bR = (bQ + bi) | |
403 | + | let bS = bA(S, bB.caller) | |
404 | + | let bT = (bS + bs) | |
405 | + | let bU = [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((((S + "_") + toString(bB.caller)) + m), bO), IntegerEntry((S + d), bR), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), IntegerEntry((((S + "_") + toString(bB.caller)) + r), bP)] | |
406 | + | if ((0 >= bi)) | |
407 | + | then throw("You can't lock token") | |
408 | + | else if (!(bx(S, by))) | |
409 | + | then throw("Incorrect pmtAssetId") | |
410 | + | else if (if (ar(Address(fromBase58String(S)))) | |
411 | + | then (as(Address(fromBase58String(S))) > height) | |
412 | + | else false) | |
413 | + | then { | |
414 | + | let bV = ((((as(Address(fromBase58String(S))) - ad) + 1) / ae) - 1) | |
415 | + | let bW = split(getStringValue(H, (((toString(bB.caller) + "_") + S) + "_user_pool_struc")), "_") | |
416 | + | let bX = split(getStringValue(H, (S + "_pool_struc")), "_") | |
417 | + | let bY = split(valueOrElse(getString(H, (((toString(bB.caller) + "_") + S) + z)), ""), "_") | |
418 | + | let bZ = split(valueOrElse(getString(H, (S + y)), ""), "_") | |
419 | + | let ca = bb | |
420 | + | let cb = if ((toString(ah) == bW[2])) | |
421 | + | then valueOrElse(parseInt(bY[0]), 0) | |
422 | + | else valueOrElse(parseInt(bW[1]), 0) | |
423 | + | let cc = if ((toString(ah) == bX[2])) | |
424 | + | then valueOrElse(parseInt(bZ[0]), 0) | |
425 | + | else valueOrElse(parseInt(bX[1]), 0) | |
426 | + | let cd = bu(S) | |
427 | + | if ((cb != 0)) | |
428 | + | then { | |
429 | + | let ce = av(addressFromStringValue(S)) | |
430 | + | let cf = (fraction(ce, cb, cc) - ca) | |
431 | + | if (if ((size(bY) > 1)) | |
432 | + | then (valueOrElse(parseInt(bY[1]), 0) >= bV) | |
433 | + | else false) | |
434 | + | then throw("You can't share token") | |
435 | + | else if ((bi > ce)) | |
436 | + | then throw(("You can't share token more than " + toString(ce))) | |
437 | + | else if ((cf > 0)) | |
438 | + | then if ((bQ == 0)) | |
439 | + | then (bU ++ [ScriptTransfer(G, cd, aq)]) | |
440 | + | else if ((cf >= bi)) | |
441 | + | then bU | |
442 | + | else throw(("Your maximum share token is " + toString(cf))) | |
443 | + | else throw("You can't share token") | |
444 | + | } | |
445 | + | else throw("Your amount of token less than 0") | |
446 | + | } | |
447 | + | else bU | |
380 | 448 | } | |
381 | 449 | ||
382 | 450 | ||
383 | 451 | ||
384 | - | @Callable( | |
385 | - | func | |
386 | - | then throw(" | |
452 | + | @Callable(bB) | |
453 | + | func withdrawShareTokens (S,cg) = if (aK(S)) | |
454 | + | then throw("Work is currently underway") | |
387 | 455 | else { | |
388 | - | let bL = bp(V, L, 0) | |
389 | - | let bw = bL._1 | |
390 | - | let bu = bL._2 | |
391 | - | let bv = bL._3 | |
392 | - | let be = bL._4 | |
393 | - | let bM = aO(V) | |
394 | - | let bK = bM._1 | |
395 | - | let aS = bM._2 | |
396 | - | let bi = bM._3 | |
397 | - | [IntegerEntry((V + d), 0), IntegerEntry((V + l), bw), IntegerEntry((V + m), height)] | |
456 | + | let ch = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
457 | + | let ci = bm(S, bB.caller, 1) | |
458 | + | let bt = ci._1 | |
459 | + | let br = ci._2 | |
460 | + | let bs = ci._3 | |
461 | + | let bb = ci._4 | |
462 | + | let bO = (bb - cg) | |
463 | + | let bP = (aI(S, bB.caller) + bs) | |
464 | + | let bQ = aw(S) | |
465 | + | let bR = (bQ - cg) | |
466 | + | let bS = bA(S, bB.caller) | |
467 | + | let bT = (bS + bs) | |
468 | + | if ((cg > bb)) | |
469 | + | then throw("Withdraw amount more then user locked amount") | |
470 | + | else [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((((S + "_") + toString(bB.caller)) + m), bO), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((S + d), bR), IntegerEntry((((S + "_") + toString(bB.caller)) + r), bP), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), ScriptTransfer(bB.caller, cg, ch)] | |
398 | 471 | } | |
399 | 472 | ||
400 | 473 | ||
401 | 474 | ||
402 | - | @Callable(bE) | |
403 | - | func lockShareTokens (V) = { | |
404 | - | let bN = $Tuple2(bE.payments[0].amount, bE.payments[0].assetId) | |
405 | - | let bl = bN._1 | |
406 | - | let bB = bN._2 | |
407 | - | let bO = aC(bB) | |
408 | - | let bP = bO._1 | |
409 | - | let bQ = bO._2 | |
410 | - | let bR = bO._3 | |
411 | - | let bS = bp(V, bE.caller, bl) | |
412 | - | let bw = bS._1 | |
413 | - | let bu = bS._2 | |
414 | - | let bv = bS._3 | |
415 | - | let be = bS._4 | |
416 | - | let bT = (be + bl) | |
417 | - | let bU = (aM(V, bE.caller) + bv) | |
418 | - | let bV = aA(V) | |
419 | - | let bW = (bV + bl) | |
420 | - | let bX = bD(V, bE.caller) | |
421 | - | let bY = (bX + bv) | |
422 | - | let bZ = [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((((V + "_") + toString(bE.caller)) + n), bT), IntegerEntry((V + d), bW), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), IntegerEntry((((V + "_") + toString(bE.caller)) + s), bU)] | |
423 | - | if ((0 >= bl)) | |
424 | - | then throw("You can't lock token") | |
425 | - | else if (!(bA(V, bB))) | |
426 | - | then throw("Incorrect pmtAssetId") | |
427 | - | else if (if (av(Address(fromBase58String(V)))) | |
428 | - | then (aw(Address(fromBase58String(V))) > height) | |
429 | - | else false) | |
430 | - | then { | |
431 | - | let ca = ((((aw(Address(fromBase58String(V))) - ag) + 1) / ah) - 1) | |
432 | - | let cb = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + "_user_pool_struc")), "_") | |
433 | - | let cc = split(getStringValue(K, (V + "_pool_struc")), "_") | |
434 | - | let cd = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + A)), "_") | |
435 | - | let ce = split(getStringValue(K, (V + z)), "_") | |
436 | - | let cf = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + B)), "_") | |
437 | - | let cg = split(getStringValue(K, (V + C)), "_") | |
438 | - | let ch = be | |
439 | - | let ci = if ((toString(al) == cb[2])) | |
440 | - | then valueOrElse(parseInt(cd[0]), 0) | |
441 | - | else valueOrElse(parseInt(cb[1]), 0) | |
442 | - | let cj = if ((toString(al) == cc[2])) | |
443 | - | then valueOrElse(parseInt(ce[0]), 0) | |
444 | - | else valueOrElse(parseInt(cc[1]), 0) | |
445 | - | let ck = bx(V) | |
446 | - | if ((ci != 0)) | |
447 | - | then { | |
448 | - | let cl = az(addressFromStringValue(V)) | |
449 | - | let cm = (fraction(cl, ci, cj) - ch) | |
450 | - | if ((cd[1] != toString(ca))) | |
451 | - | then throw("You can't share token") | |
452 | - | else if ((bl > cl)) | |
453 | - | then throw(("You can't share token more than " + toString(cl))) | |
454 | - | else if ((cm > 0)) | |
455 | - | then if ((bV == 0)) | |
456 | - | then (bZ ++ [ScriptTransfer(J, ck, au)]) | |
457 | - | else if ((cm >= bl)) | |
458 | - | then bZ | |
459 | - | else throw(("Your maximum share token is " + toString(cm))) | |
460 | - | else throw("You can't share token") | |
461 | - | } | |
462 | - | else throw("Your amount of token less than 0") | |
463 | - | } | |
464 | - | else bZ | |
465 | - | } | |
475 | + | @Callable(bB) | |
476 | + | func claim (S) = if (aK(S)) | |
477 | + | then throw("Work is currently underway") | |
478 | + | else { | |
479 | + | let be = aw(S) | |
480 | + | let cj = aT(S) | |
481 | + | let aV = cj._1 | |
482 | + | let aU = cj._2 | |
483 | + | let ck = aL(S) | |
484 | + | let bd = ck._1 | |
485 | + | let aP = ck._2 | |
486 | + | let bf = ck._3 | |
487 | + | let cl = bm(S, bB.caller, 1) | |
488 | + | let bt = cl._1 | |
489 | + | let br = cl._2 | |
490 | + | let bs = cl._3 | |
491 | + | let bb = cl._4 | |
492 | + | let cm = (aI(S, bB.caller) + bs) | |
493 | + | let bS = bA(S, bB.caller) | |
494 | + | let bT = (bS + bs) | |
495 | + | if ((cm == 0)) | |
496 | + | then throw("You have 0 available SWOP") | |
497 | + | else [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((((S + "_") + toString(bB.caller)) + r), 0), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), ScriptTransfer(bB.caller, cm, aq)] | |
498 | + | } | |
466 | 499 | ||
467 | 500 | ||
468 | - | ||
469 | - | @Callable(bE) | |
470 | - | func withdrawShareTokens (V,cn) = { | |
471 | - | let co = fromBase58String(getStringValue(value(addressFromString(V)), "share_asset_id")) | |
472 | - | let cp = bp(V, bE.caller, 1) | |
473 | - | let bw = cp._1 | |
474 | - | let bu = cp._2 | |
475 | - | let bv = cp._3 | |
476 | - | let be = cp._4 | |
477 | - | let bT = (be - cn) | |
478 | - | let bU = (aM(V, bE.caller) + bv) | |
479 | - | let bV = aA(V) | |
480 | - | let bW = (bV - cn) | |
481 | - | let bX = bD(V, bE.caller) | |
482 | - | let bY = (bX + bv) | |
483 | - | if ((cn > be)) | |
484 | - | then throw("Withdraw amount more then user locked amount") | |
485 | - | else [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((((V + "_") + toString(bE.caller)) + n), bT), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((V + d), bW), IntegerEntry((((V + "_") + toString(bE.caller)) + s), bU), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), ScriptTransfer(bE.caller, cn, co)] | |
486 | - | } | |
487 | - | ||
488 | - | ||
489 | - | ||
490 | - | @Callable(bE) | |
491 | - | func claim (V) = { | |
492 | - | let bh = aA(V) | |
493 | - | let cq = aW(V) | |
494 | - | let aY = cq._1 | |
495 | - | let aX = cq._2 | |
496 | - | let cr = aO(V) | |
497 | - | let bg = cr._1 | |
498 | - | let aS = cr._2 | |
499 | - | let bi = cr._3 | |
500 | - | let cs = bp(V, bE.caller, 1) | |
501 | - | let bw = cs._1 | |
502 | - | let bu = cs._2 | |
503 | - | let bv = cs._3 | |
504 | - | let be = cs._4 | |
505 | - | let ct = (aM(V, bE.caller) + bv) | |
506 | - | let bX = bD(V, bE.caller) | |
507 | - | let bY = (bX + bv) | |
508 | - | if ((ct == 0)) | |
509 | - | then throw("You have 0 available SWOP") | |
510 | - | else [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((((V + "_") + toString(bE.caller)) + s), 0), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), ScriptTransfer(bE.caller, ct, au)] | |
511 | - | } | |
512 | - | ||
513 | - | ||
514 | - | @Verifier(cu) | |
515 | - | func cv () = { | |
516 | - | let aq = cu | |
517 | - | sigVerify(cu.bodyBytes, cu.proofs[0], cu.senderPublicKey) | |
501 | + | @Verifier(cn) | |
502 | + | func co () = { | |
503 | + | let am = cn | |
504 | + | sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey) | |
518 | 505 | } | |
519 | 506 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let b = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let c = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let d = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | 12 | let e = "share_limit_on_first_harvest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "_current_pool_fraction_reward" | |
15 | 15 | ||
16 | - | let g = "_ | |
16 | + | let g = "_previous_pool_fraction_reward" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "total_reward_per_block_current" | |
19 | 19 | ||
20 | - | let i = "total_reward_per_block_ | |
20 | + | let i = "total_reward_per_block_previous" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "reward_update_height" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "_last_interest" | |
25 | 25 | ||
26 | - | let l = "_last_interest" | |
26 | + | let l = "_last_interest_height" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_share_tokens_locked" | |
29 | 29 | ||
30 | - | let n = "_ | |
30 | + | let n = "_last_interest" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "SWOP_id" | |
33 | 33 | ||
34 | - | let p = "SWOP_ | |
34 | + | let p = "_SWOP_claimed_amount" | |
35 | 35 | ||
36 | - | let q = "_SWOP_claimed_amount" | |
36 | + | let q = "_SWOP_last_claimed_amount" | |
37 | 37 | ||
38 | - | let r = "_SWOP | |
38 | + | let r = "_available_SWOP" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "farming_start_height" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "apy" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "previous_total_vote_SWOP" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "swop_year_emission" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "A_asset_balance" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "B_asset_balance" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "_harvest_pool_activeVote_struc" | |
53 | 53 | ||
54 | - | let z = "_harvest_pool_activeVote_struc" | |
54 | + | let z = "_harvest_user_pool_activeVote_struc" | |
55 | 55 | ||
56 | - | let A = "_harvest | |
56 | + | let A = "share_limit_on_first_harvest" | |
57 | 57 | ||
58 | - | let B = "_ | |
58 | + | let B = "A_asset_id" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "B_asset_id" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "first_harvest_height" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "first_harvest" | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
71 | 71 | ||
72 | - | let I = Address(base58' | |
72 | + | let I = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = 10106 | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = 10000000000 | |
77 | 77 | ||
78 | - | let L = | |
78 | + | let L = 10 | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = 1000 | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = 100000 | |
83 | 83 | ||
84 | - | let O = | |
84 | + | let O = 1000000 | |
85 | 85 | ||
86 | - | let P = | |
86 | + | let P = 100000000 | |
87 | 87 | ||
88 | - | let Q = | |
88 | + | let Q = 100000000000 | |
89 | 89 | ||
90 | - | let R = 1000000 | |
91 | - | ||
92 | - | let S = 100000000 | |
93 | - | ||
94 | - | let T = 100000000000 | |
95 | - | ||
96 | - | func U (V) = getStringValue(V, E) | |
90 | + | func R (S) = getStringValue(S, B) | |
97 | 91 | ||
98 | 92 | ||
99 | - | func | |
93 | + | func T (S) = getStringValue(S, C) | |
100 | 94 | ||
101 | 95 | ||
102 | - | func | |
96 | + | func U (S) = if ((R(S) == "WAVES")) | |
103 | 97 | then unit | |
104 | - | else fromBase58String( | |
98 | + | else fromBase58String(R(S)) | |
105 | 99 | ||
106 | 100 | ||
107 | - | func | |
101 | + | func V (S) = if ((T(S) == "WAVES")) | |
108 | 102 | then unit | |
109 | - | else fromBase58String( | |
103 | + | else fromBase58String(T(S)) | |
110 | 104 | ||
111 | 105 | ||
112 | - | let | |
106 | + | let W = "base_period" | |
113 | 107 | ||
114 | - | let | |
108 | + | let X = "period_length" | |
115 | 109 | ||
116 | - | let | |
110 | + | let Y = "start_height" | |
117 | 111 | ||
118 | - | let | |
112 | + | let Z = "first_harvest_height" | |
119 | 113 | ||
120 | - | let | |
114 | + | let aa = "duration_full_vote_power" | |
121 | 115 | ||
122 | - | let | |
116 | + | let ab = "min_vote_power" | |
123 | 117 | ||
124 | - | let | |
118 | + | let ac = valueOrErrorMessage(getInteger(H, W), "Empty kBasePeriod") | |
125 | 119 | ||
126 | - | let | |
120 | + | let ad = valueOrErrorMessage(getInteger(H, Y), "Empty kStartHeight") | |
127 | 121 | ||
128 | - | let | |
122 | + | let ae = valueOrErrorMessage(getInteger(H, X), "Empty kPeriodLength") | |
129 | 123 | ||
130 | - | let | |
124 | + | let af = valueOrErrorMessage(getInteger(H, aa), "Empty kDurationFullVotePower") | |
131 | 125 | ||
132 | - | let | |
126 | + | let ag = valueOrErrorMessage(getInteger(H, ab), "Empty kMinVotePower") | |
133 | 127 | ||
134 | - | let | |
128 | + | let ah = (ac + ((height - ad) / ae)) | |
135 | 129 | ||
136 | - | let al = (af + ((height - ag) / ah)) | |
137 | - | ||
138 | - | func am (V) = valueOrElse(getIntegerValue(V, D), 0) | |
130 | + | func ai (S) = valueOrElse(getIntegerValue(S, A), 0) | |
139 | 131 | ||
140 | 132 | ||
141 | - | let | |
133 | + | let aj = getIntegerValue(this, t) | |
142 | 134 | ||
143 | - | let | |
135 | + | let ak = getIntegerValue(this, v) | |
144 | 136 | ||
145 | - | func | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
137 | + | func al (S) = { | |
138 | + | let am = U(S) | |
139 | + | if ($isInstanceOf(am, "ByteVector")) | |
148 | 140 | then { | |
149 | - | let | |
150 | - | value(assetInfo( | |
141 | + | let an = am | |
142 | + | value(assetInfo(an)).name | |
151 | 143 | } | |
152 | - | else if ($isInstanceOf( | |
144 | + | else if ($isInstanceOf(am, "Unit")) | |
153 | 145 | then { | |
154 | - | let | |
146 | + | let ao = am | |
155 | 147 | "WAVES" | |
156 | 148 | } | |
157 | 149 | else throw("Match error") | |
158 | 150 | } | |
159 | 151 | ||
160 | 152 | ||
161 | - | func | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
153 | + | func ap (S) = { | |
154 | + | let am = V(S) | |
155 | + | if ($isInstanceOf(am, "ByteVector")) | |
164 | 156 | then { | |
165 | - | let | |
166 | - | value(assetInfo( | |
157 | + | let an = am | |
158 | + | value(assetInfo(an)).name | |
167 | 159 | } | |
168 | - | else if ($isInstanceOf( | |
160 | + | else if ($isInstanceOf(am, "Unit")) | |
169 | 161 | then { | |
170 | - | let | |
162 | + | let ao = am | |
171 | 163 | "WAVES" | |
172 | 164 | } | |
173 | 165 | else throw("Match error") | |
174 | 166 | } | |
175 | 167 | ||
176 | 168 | ||
177 | - | let | |
169 | + | let aq = fromBase58String(getStringValue(this, o)) | |
178 | 170 | ||
179 | - | func | |
171 | + | func ar (S) = valueOrElse(getBoolean(S, E), false) | |
180 | 172 | ||
181 | 173 | ||
182 | - | func | |
174 | + | func as (S) = valueOrElse(getInteger(S, D), 0) | |
183 | 175 | ||
184 | 176 | ||
185 | - | func | |
177 | + | func at (S) = valueOrErrorMessage(getInteger(S, w), ("No data on the key: " + w)) | |
186 | 178 | ||
187 | 179 | ||
188 | - | func | |
180 | + | func au (S) = valueOrErrorMessage(getInteger(S, x), ("No data on the key: " + x)) | |
189 | 181 | ||
190 | 182 | ||
191 | - | func | |
183 | + | func av (S) = valueOrErrorMessage(getInteger(S, e), ("No data on the key: " + e)) | |
192 | 184 | ||
193 | 185 | ||
194 | - | func | |
186 | + | func aw (S) = valueOrErrorMessage(getInteger(this, (S + d)), (("No data on the key: " + S) + d)) | |
195 | 187 | ||
196 | 188 | ||
197 | - | func | |
189 | + | func ax (S) = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
198 | 190 | ||
199 | 191 | ||
200 | - | func | |
201 | - | let | |
202 | - | if ($isInstanceOf( | |
192 | + | func ay (az) = { | |
193 | + | let am = az | |
194 | + | if ($isInstanceOf(am, "ByteVector")) | |
203 | 195 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | $Tuple3( | |
196 | + | let an = am | |
197 | + | let aA = toBase58String(an) | |
198 | + | let aB = valueOrErrorMessage(assetInfo(an), (("Asset " + aA) + " doesn't exist")) | |
199 | + | $Tuple3(aA, aB.name, aB.decimals) | |
208 | 200 | } | |
209 | - | else if ($isInstanceOf( | |
201 | + | else if ($isInstanceOf(am, "Unit")) | |
210 | 202 | then { | |
211 | - | let | |
203 | + | let ao = am | |
212 | 204 | $Tuple3("WAVES", "WAVES", 8) | |
213 | 205 | } | |
214 | 206 | else throw("Match error") | |
215 | 207 | } | |
216 | 208 | ||
217 | 209 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | pow(10, 0, | |
210 | + | func aC (aD,aE) = { | |
211 | + | let aF = value(assetInfo(aD)).decimals | |
212 | + | let aG = value(assetInfo(aE)).decimals | |
213 | + | let aH = ((aG - aF) + 8) | |
214 | + | pow(10, 0, aH, 0, 0, HALFDOWN) | |
223 | 215 | } | |
224 | 216 | ||
225 | 217 | ||
226 | - | func | |
218 | + | func aI (S,aJ) = valueOrElse(getInteger(this, (((S + "_") + toString(aJ)) + r)), 0) | |
227 | 219 | ||
228 | 220 | ||
229 | - | func aO (V) = { | |
230 | - | let aP = valueOrErrorMessage(getInteger(I, i), ((("No data on the key: " + i) + " at address ") + toString(I))) | |
231 | - | let aQ = valueOrErrorMessage(getInteger(I, j), ((("No data on the key: " + j) + " at address ") + toString(I))) | |
232 | - | let aR = valueOrErrorMessage(getInteger(I, (V + g)), (((("No data on the key: " + V) + g) + " at address ") + toString(I))) | |
233 | - | let aS = valueOrErrorMessage(getInteger(I, k), ((("No data on the key: " + k) + " at address ") + toString(I))) | |
234 | - | let aT = valueOrErrorMessage(getInteger(I, (V + h)), (((("No data on the key: " + V) + h) + " at address ") + toString(I))) | |
235 | - | let aU = fraction(aP, aR, N) | |
236 | - | let aV = fraction(aQ, aT, N) | |
237 | - | if (if ((aU > aP)) | |
221 | + | func aK (S) = if ((S == "3PCdNCULgjM9ZMLEt61M45qxV26ro6o48Jj")) | |
222 | + | then true | |
223 | + | else (S == "3PMcDUBDyjNB1fkRGeLGpsz1ZQPfcmyp4r5") | |
224 | + | ||
225 | + | ||
226 | + | func aL (S) = { | |
227 | + | let aM = valueOrErrorMessage(getInteger(F, h), ((("No data on the key: " + h) + " at address ") + toString(F))) | |
228 | + | let aN = valueOrErrorMessage(getInteger(F, i), ((("No data on the key: " + i) + " at address ") + toString(F))) | |
229 | + | let aO = valueOrErrorMessage(getInteger(F, (S + f)), (((("No data on the key: " + S) + f) + " at address ") + toString(F))) | |
230 | + | let aP = valueOrErrorMessage(getInteger(F, j), ((("No data on the key: " + j) + " at address ") + toString(F))) | |
231 | + | let aQ = valueOrErrorMessage(getInteger(F, (S + g)), (((("No data on the key: " + S) + g) + " at address ") + toString(F))) | |
232 | + | let aR = fraction(aM, aO, K) | |
233 | + | let aS = fraction(aN, aQ, K) | |
234 | + | if (if ((aR > aM)) | |
238 | 235 | then true | |
239 | - | else ( | |
236 | + | else (aS > aN)) | |
240 | 237 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
241 | - | else $Tuple3( | |
238 | + | else $Tuple3(aR, aP, aS) | |
242 | 239 | } | |
243 | 240 | ||
244 | 241 | ||
245 | - | func | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2( | |
242 | + | func aT (S) = { | |
243 | + | let aU = valueOrErrorMessage(getInteger(this, (S + k)), (("No data on the key: " + S) + k)) | |
244 | + | let aV = valueOrElse(getInteger(this, (S + l)), height) | |
245 | + | $Tuple2(aV, aU) | |
249 | 246 | } | |
250 | 247 | ||
251 | 248 | ||
252 | - | func | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
249 | + | func aW (S,aX) = { | |
250 | + | let aY = getInteger(this, (((S + "_") + toString(aX)) + n)) | |
251 | + | let aZ = getInteger(this, (((S + "_") + toString(aX)) + m)) | |
252 | + | let aU = valueOrErrorMessage(getInteger(this, (S + k)), (("No data on the key: " + S) + k)) | |
253 | + | let ba = { | |
254 | + | let am = aY | |
255 | + | if ($isInstanceOf(am, "Int")) | |
259 | 256 | then { | |
260 | - | let | |
261 | - | | |
257 | + | let aY = am | |
258 | + | aY | |
262 | 259 | } | |
263 | - | else | |
260 | + | else aU | |
264 | 261 | } | |
265 | - | let | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
262 | + | let bb = { | |
263 | + | let am = aZ | |
264 | + | if ($isInstanceOf(am, "Int")) | |
268 | 265 | then { | |
269 | - | let | |
270 | - | | |
266 | + | let aZ = am | |
267 | + | aZ | |
271 | 268 | } | |
272 | 269 | else 0 | |
273 | 270 | } | |
274 | - | $Tuple2( | |
271 | + | $Tuple2(ba, bb) | |
275 | 272 | } | |
276 | 273 | ||
277 | 274 | ||
278 | - | func | |
275 | + | func bc (aV,aP,aU,bd,be,bf,bg,bh,bi) = if ((be == 0)) | |
279 | 276 | then 0 | |
280 | - | else if (( | |
277 | + | else if ((aP > height)) | |
281 | 278 | then { | |
282 | - | let | |
283 | - | ( | |
279 | + | let bj = (bf * (height - aV)) | |
280 | + | (aU + fraction(bj, bh, be)) | |
284 | 281 | } | |
285 | - | else if (( | |
282 | + | else if ((aV > aP)) | |
286 | 283 | then { | |
287 | - | let | |
288 | - | ( | |
284 | + | let bj = (bd * (height - aV)) | |
285 | + | (aU + fraction(bj, bh, be)) | |
289 | 286 | } | |
290 | 287 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | ( | |
288 | + | let bk = (bf * (aP - aV)) | |
289 | + | let bl = (aU + fraction(bk, bh, be)) | |
290 | + | let bj = (bd * (height - aP)) | |
291 | + | (bl + fraction(bj, bh, be)) | |
295 | 292 | } | |
296 | 293 | ||
297 | 294 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | $Tuple4( | |
295 | + | func bm (S,bn,bi) = { | |
296 | + | let bg = ax(S) | |
297 | + | let bh = aC(aq, bg) | |
298 | + | let be = aw(S) | |
299 | + | let bo = aT(S) | |
300 | + | let aV = bo._1 | |
301 | + | let aU = bo._2 | |
302 | + | let bp = aL(S) | |
303 | + | let bd = bp._1 | |
304 | + | let aP = bp._2 | |
305 | + | let bf = bp._3 | |
306 | + | let bq = aW(S, bn) | |
307 | + | let aY = bq._1 | |
308 | + | let bb = bq._2 | |
309 | + | let br = bc(aV, aP, aU, bd, be, bf, bg, bh, bi) | |
310 | + | let bs = fraction(bb, (br - aY), bh) | |
311 | + | let bt = br | |
312 | + | $Tuple4(bt, br, bs, bb) | |
316 | 313 | } | |
317 | 314 | ||
318 | 315 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | if (( | |
329 | - | then if (( | |
316 | + | func bu (S) = { | |
317 | + | let bv = aT(S) | |
318 | + | let aV = bv._1 | |
319 | + | let aU = bv._2 | |
320 | + | let bw = aL(S) | |
321 | + | let bd = bw._1 | |
322 | + | let aP = bw._2 | |
323 | + | let bf = bw._3 | |
324 | + | let be = aw(S) | |
325 | + | if ((be == 0)) | |
326 | + | then if ((aP > height)) | |
330 | 327 | then { | |
331 | - | let | |
332 | - | | |
328 | + | let bj = (bf * (height - aV)) | |
329 | + | bj | |
333 | 330 | } | |
334 | - | else if (( | |
331 | + | else if ((aV > aP)) | |
335 | 332 | then { | |
336 | - | let | |
337 | - | | |
333 | + | let bj = (bd * (height - aV)) | |
334 | + | bj | |
338 | 335 | } | |
339 | 336 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | ( | |
337 | + | let bk = (bf * (aP - aV)) | |
338 | + | let bj = (bd * (height - aP)) | |
339 | + | (bj + bk) | |
343 | 340 | } | |
344 | 341 | else 0 | |
345 | 342 | } | |
346 | 343 | ||
347 | 344 | ||
348 | - | func | |
349 | - | let | |
350 | - | if (( | |
345 | + | func bx (S,by) = { | |
346 | + | let bz = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
347 | + | if ((by == bz)) | |
351 | 348 | then true | |
352 | 349 | else false | |
353 | 350 | } | |
354 | 351 | ||
355 | 352 | ||
356 | - | func | |
353 | + | func bA (S,aJ) = valueOrElse(getInteger(this, (((S + "_") + toString(aJ)) + p)), 0) | |
357 | 354 | ||
358 | 355 | ||
359 | - | @Callable( | |
360 | - | func init ( | |
356 | + | @Callable(bB) | |
357 | + | func init (bC) = if (isDefined(getString(this, o))) | |
361 | 358 | then throw("SWOP already initialized") | |
362 | 359 | else { | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | [ | |
360 | + | let bD = 100000000000000 | |
361 | + | let bE = Issue("SWOP", "SWOP protocol token", bD, 8, true) | |
362 | + | let bF = calculateAssetId(bE) | |
363 | + | [Issue("SWOP", "SWOP protocol token", bD, 8, true), StringEntry(o, toBase58String(bF))] | |
367 | 364 | } | |
368 | 365 | ||
369 | 366 | ||
370 | 367 | ||
371 | - | @Callable(bE) | |
372 | - | func initPoolShareFarming (V) = if ((bE.caller != this)) | |
373 | - | then throw("Only the DApp itself can call this function") | |
368 | + | @Callable(bB) | |
369 | + | func initPoolShareFarming (S) = if (aK(S)) | |
370 | + | then throw("Work is currently underway") | |
371 | + | else if ((bB.caller != this)) | |
372 | + | then throw("Only the DApp itself can call this function") | |
373 | + | else { | |
374 | + | let bG = aL(S) | |
375 | + | let bH = bG._1 | |
376 | + | let aP = bG._2 | |
377 | + | let bf = bG._3 | |
378 | + | [IntegerEntry((S + d), 0), IntegerEntry((S + k), 0), IntegerEntry((S + l), height)] | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | @Callable(bB) | |
384 | + | func lockShareTokens (S) = if (aK(S)) | |
385 | + | then throw("Work is currently underway") | |
374 | 386 | else { | |
375 | - | let bJ = aO(V) | |
387 | + | let bI = $Tuple2(bB.payments[0].amount, bB.payments[0].assetId) | |
388 | + | let bi = bI._1 | |
389 | + | let by = bI._2 | |
390 | + | let bJ = ay(by) | |
376 | 391 | let bK = bJ._1 | |
377 | - | let aS = bJ._2 | |
378 | - | let bi = bJ._3 | |
379 | - | [IntegerEntry((V + d), 0), IntegerEntry((V + l), 0), IntegerEntry((V + m), height)] | |
392 | + | let bL = bJ._2 | |
393 | + | let bM = bJ._3 | |
394 | + | let bN = bm(S, bB.caller, bi) | |
395 | + | let bt = bN._1 | |
396 | + | let br = bN._2 | |
397 | + | let bs = bN._3 | |
398 | + | let bb = bN._4 | |
399 | + | let bO = (bb + bi) | |
400 | + | let bP = (aI(S, bB.caller) + bs) | |
401 | + | let bQ = aw(S) | |
402 | + | let bR = (bQ + bi) | |
403 | + | let bS = bA(S, bB.caller) | |
404 | + | let bT = (bS + bs) | |
405 | + | let bU = [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((((S + "_") + toString(bB.caller)) + m), bO), IntegerEntry((S + d), bR), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), IntegerEntry((((S + "_") + toString(bB.caller)) + r), bP)] | |
406 | + | if ((0 >= bi)) | |
407 | + | then throw("You can't lock token") | |
408 | + | else if (!(bx(S, by))) | |
409 | + | then throw("Incorrect pmtAssetId") | |
410 | + | else if (if (ar(Address(fromBase58String(S)))) | |
411 | + | then (as(Address(fromBase58String(S))) > height) | |
412 | + | else false) | |
413 | + | then { | |
414 | + | let bV = ((((as(Address(fromBase58String(S))) - ad) + 1) / ae) - 1) | |
415 | + | let bW = split(getStringValue(H, (((toString(bB.caller) + "_") + S) + "_user_pool_struc")), "_") | |
416 | + | let bX = split(getStringValue(H, (S + "_pool_struc")), "_") | |
417 | + | let bY = split(valueOrElse(getString(H, (((toString(bB.caller) + "_") + S) + z)), ""), "_") | |
418 | + | let bZ = split(valueOrElse(getString(H, (S + y)), ""), "_") | |
419 | + | let ca = bb | |
420 | + | let cb = if ((toString(ah) == bW[2])) | |
421 | + | then valueOrElse(parseInt(bY[0]), 0) | |
422 | + | else valueOrElse(parseInt(bW[1]), 0) | |
423 | + | let cc = if ((toString(ah) == bX[2])) | |
424 | + | then valueOrElse(parseInt(bZ[0]), 0) | |
425 | + | else valueOrElse(parseInt(bX[1]), 0) | |
426 | + | let cd = bu(S) | |
427 | + | if ((cb != 0)) | |
428 | + | then { | |
429 | + | let ce = av(addressFromStringValue(S)) | |
430 | + | let cf = (fraction(ce, cb, cc) - ca) | |
431 | + | if (if ((size(bY) > 1)) | |
432 | + | then (valueOrElse(parseInt(bY[1]), 0) >= bV) | |
433 | + | else false) | |
434 | + | then throw("You can't share token") | |
435 | + | else if ((bi > ce)) | |
436 | + | then throw(("You can't share token more than " + toString(ce))) | |
437 | + | else if ((cf > 0)) | |
438 | + | then if ((bQ == 0)) | |
439 | + | then (bU ++ [ScriptTransfer(G, cd, aq)]) | |
440 | + | else if ((cf >= bi)) | |
441 | + | then bU | |
442 | + | else throw(("Your maximum share token is " + toString(cf))) | |
443 | + | else throw("You can't share token") | |
444 | + | } | |
445 | + | else throw("Your amount of token less than 0") | |
446 | + | } | |
447 | + | else bU | |
380 | 448 | } | |
381 | 449 | ||
382 | 450 | ||
383 | 451 | ||
384 | - | @Callable( | |
385 | - | func | |
386 | - | then throw(" | |
452 | + | @Callable(bB) | |
453 | + | func withdrawShareTokens (S,cg) = if (aK(S)) | |
454 | + | then throw("Work is currently underway") | |
387 | 455 | else { | |
388 | - | let bL = bp(V, L, 0) | |
389 | - | let bw = bL._1 | |
390 | - | let bu = bL._2 | |
391 | - | let bv = bL._3 | |
392 | - | let be = bL._4 | |
393 | - | let bM = aO(V) | |
394 | - | let bK = bM._1 | |
395 | - | let aS = bM._2 | |
396 | - | let bi = bM._3 | |
397 | - | [IntegerEntry((V + d), 0), IntegerEntry((V + l), bw), IntegerEntry((V + m), height)] | |
456 | + | let ch = fromBase58String(getStringValue(value(addressFromString(S)), "share_asset_id")) | |
457 | + | let ci = bm(S, bB.caller, 1) | |
458 | + | let bt = ci._1 | |
459 | + | let br = ci._2 | |
460 | + | let bs = ci._3 | |
461 | + | let bb = ci._4 | |
462 | + | let bO = (bb - cg) | |
463 | + | let bP = (aI(S, bB.caller) + bs) | |
464 | + | let bQ = aw(S) | |
465 | + | let bR = (bQ - cg) | |
466 | + | let bS = bA(S, bB.caller) | |
467 | + | let bT = (bS + bs) | |
468 | + | if ((cg > bb)) | |
469 | + | then throw("Withdraw amount more then user locked amount") | |
470 | + | else [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((((S + "_") + toString(bB.caller)) + m), bO), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((S + d), bR), IntegerEntry((((S + "_") + toString(bB.caller)) + r), bP), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), ScriptTransfer(bB.caller, cg, ch)] | |
398 | 471 | } | |
399 | 472 | ||
400 | 473 | ||
401 | 474 | ||
402 | - | @Callable(bE) | |
403 | - | func lockShareTokens (V) = { | |
404 | - | let bN = $Tuple2(bE.payments[0].amount, bE.payments[0].assetId) | |
405 | - | let bl = bN._1 | |
406 | - | let bB = bN._2 | |
407 | - | let bO = aC(bB) | |
408 | - | let bP = bO._1 | |
409 | - | let bQ = bO._2 | |
410 | - | let bR = bO._3 | |
411 | - | let bS = bp(V, bE.caller, bl) | |
412 | - | let bw = bS._1 | |
413 | - | let bu = bS._2 | |
414 | - | let bv = bS._3 | |
415 | - | let be = bS._4 | |
416 | - | let bT = (be + bl) | |
417 | - | let bU = (aM(V, bE.caller) + bv) | |
418 | - | let bV = aA(V) | |
419 | - | let bW = (bV + bl) | |
420 | - | let bX = bD(V, bE.caller) | |
421 | - | let bY = (bX + bv) | |
422 | - | let bZ = [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((((V + "_") + toString(bE.caller)) + n), bT), IntegerEntry((V + d), bW), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), IntegerEntry((((V + "_") + toString(bE.caller)) + s), bU)] | |
423 | - | if ((0 >= bl)) | |
424 | - | then throw("You can't lock token") | |
425 | - | else if (!(bA(V, bB))) | |
426 | - | then throw("Incorrect pmtAssetId") | |
427 | - | else if (if (av(Address(fromBase58String(V)))) | |
428 | - | then (aw(Address(fromBase58String(V))) > height) | |
429 | - | else false) | |
430 | - | then { | |
431 | - | let ca = ((((aw(Address(fromBase58String(V))) - ag) + 1) / ah) - 1) | |
432 | - | let cb = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + "_user_pool_struc")), "_") | |
433 | - | let cc = split(getStringValue(K, (V + "_pool_struc")), "_") | |
434 | - | let cd = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + A)), "_") | |
435 | - | let ce = split(getStringValue(K, (V + z)), "_") | |
436 | - | let cf = split(getStringValue(K, (((toString(bE.caller) + "_") + V) + B)), "_") | |
437 | - | let cg = split(getStringValue(K, (V + C)), "_") | |
438 | - | let ch = be | |
439 | - | let ci = if ((toString(al) == cb[2])) | |
440 | - | then valueOrElse(parseInt(cd[0]), 0) | |
441 | - | else valueOrElse(parseInt(cb[1]), 0) | |
442 | - | let cj = if ((toString(al) == cc[2])) | |
443 | - | then valueOrElse(parseInt(ce[0]), 0) | |
444 | - | else valueOrElse(parseInt(cc[1]), 0) | |
445 | - | let ck = bx(V) | |
446 | - | if ((ci != 0)) | |
447 | - | then { | |
448 | - | let cl = az(addressFromStringValue(V)) | |
449 | - | let cm = (fraction(cl, ci, cj) - ch) | |
450 | - | if ((cd[1] != toString(ca))) | |
451 | - | then throw("You can't share token") | |
452 | - | else if ((bl > cl)) | |
453 | - | then throw(("You can't share token more than " + toString(cl))) | |
454 | - | else if ((cm > 0)) | |
455 | - | then if ((bV == 0)) | |
456 | - | then (bZ ++ [ScriptTransfer(J, ck, au)]) | |
457 | - | else if ((cm >= bl)) | |
458 | - | then bZ | |
459 | - | else throw(("Your maximum share token is " + toString(cm))) | |
460 | - | else throw("You can't share token") | |
461 | - | } | |
462 | - | else throw("Your amount of token less than 0") | |
463 | - | } | |
464 | - | else bZ | |
465 | - | } | |
475 | + | @Callable(bB) | |
476 | + | func claim (S) = if (aK(S)) | |
477 | + | then throw("Work is currently underway") | |
478 | + | else { | |
479 | + | let be = aw(S) | |
480 | + | let cj = aT(S) | |
481 | + | let aV = cj._1 | |
482 | + | let aU = cj._2 | |
483 | + | let ck = aL(S) | |
484 | + | let bd = ck._1 | |
485 | + | let aP = ck._2 | |
486 | + | let bf = ck._3 | |
487 | + | let cl = bm(S, bB.caller, 1) | |
488 | + | let bt = cl._1 | |
489 | + | let br = cl._2 | |
490 | + | let bs = cl._3 | |
491 | + | let bb = cl._4 | |
492 | + | let cm = (aI(S, bB.caller) + bs) | |
493 | + | let bS = bA(S, bB.caller) | |
494 | + | let bT = (bS + bs) | |
495 | + | if ((cm == 0)) | |
496 | + | then throw("You have 0 available SWOP") | |
497 | + | else [IntegerEntry((((S + "_") + toString(bB.caller)) + n), bt), IntegerEntry((S + k), br), IntegerEntry((S + l), height), IntegerEntry((((S + "_") + toString(bB.caller)) + r), 0), IntegerEntry((((S + "_") + toString(bB.caller)) + p), bT), IntegerEntry((((S + "_") + toString(bB.caller)) + q), bs), ScriptTransfer(bB.caller, cm, aq)] | |
498 | + | } | |
466 | 499 | ||
467 | 500 | ||
468 | - | ||
469 | - | @Callable(bE) | |
470 | - | func withdrawShareTokens (V,cn) = { | |
471 | - | let co = fromBase58String(getStringValue(value(addressFromString(V)), "share_asset_id")) | |
472 | - | let cp = bp(V, bE.caller, 1) | |
473 | - | let bw = cp._1 | |
474 | - | let bu = cp._2 | |
475 | - | let bv = cp._3 | |
476 | - | let be = cp._4 | |
477 | - | let bT = (be - cn) | |
478 | - | let bU = (aM(V, bE.caller) + bv) | |
479 | - | let bV = aA(V) | |
480 | - | let bW = (bV - cn) | |
481 | - | let bX = bD(V, bE.caller) | |
482 | - | let bY = (bX + bv) | |
483 | - | if ((cn > be)) | |
484 | - | then throw("Withdraw amount more then user locked amount") | |
485 | - | else [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((((V + "_") + toString(bE.caller)) + n), bT), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((V + d), bW), IntegerEntry((((V + "_") + toString(bE.caller)) + s), bU), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), ScriptTransfer(bE.caller, cn, co)] | |
486 | - | } | |
487 | - | ||
488 | - | ||
489 | - | ||
490 | - | @Callable(bE) | |
491 | - | func claim (V) = { | |
492 | - | let bh = aA(V) | |
493 | - | let cq = aW(V) | |
494 | - | let aY = cq._1 | |
495 | - | let aX = cq._2 | |
496 | - | let cr = aO(V) | |
497 | - | let bg = cr._1 | |
498 | - | let aS = cr._2 | |
499 | - | let bi = cr._3 | |
500 | - | let cs = bp(V, bE.caller, 1) | |
501 | - | let bw = cs._1 | |
502 | - | let bu = cs._2 | |
503 | - | let bv = cs._3 | |
504 | - | let be = cs._4 | |
505 | - | let ct = (aM(V, bE.caller) + bv) | |
506 | - | let bX = bD(V, bE.caller) | |
507 | - | let bY = (bX + bv) | |
508 | - | if ((ct == 0)) | |
509 | - | then throw("You have 0 available SWOP") | |
510 | - | else [IntegerEntry((((V + "_") + toString(bE.caller)) + o), bw), IntegerEntry((V + l), bu), IntegerEntry((V + m), height), IntegerEntry((((V + "_") + toString(bE.caller)) + s), 0), IntegerEntry((((V + "_") + toString(bE.caller)) + q), bY), IntegerEntry((((V + "_") + toString(bE.caller)) + r), bv), ScriptTransfer(bE.caller, ct, au)] | |
511 | - | } | |
512 | - | ||
513 | - | ||
514 | - | @Verifier(cu) | |
515 | - | func cv () = { | |
516 | - | let aq = cu | |
517 | - | sigVerify(cu.bodyBytes, cu.proofs[0], cu.senderPublicKey) | |
501 | + | @Verifier(cn) | |
502 | + | func co () = { | |
503 | + | let am = cn | |
504 | + | sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey) | |
518 | 505 | } | |
519 | 506 |
github/deemru/w8io/026f985 196.12 ms ◑