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