tx · 91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5: -0.14000000 Waves 2023.01.19 16:04 [2411850] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves
{ "type": 13, "id": "91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1", "fee": 14000000, "feeAssetId": null, "timestamp": 1674133533289, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "2ctY1JTAvWqiKZFLE8B7axSqEQQrKS6aqeEg9firNMu6iHHrFeqCkNUbVpzNxoiVhJoLdAqzAnz7yUEm8hcskdKp", "2pQNpnmUZPXSoE9y4FLWF3ZGe1aovfMbzinVr4otns24hG4NkLBfkxcAejw4bPpUczqjKau5JpS1RhDbTbKg9Dbz" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJOAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9h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AAAMJAAACBQZzdGFrZTIFBnN0YWtlMgkAlAoCBQNuaWwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJa0JhbGFuY2VBCQBkAgUIYmFsYW5jZUEFDWFtb3VudEVucm9sbEEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWtCYWxhbmNlQgkAZAIFCGJhbGFuY2VCBQ1hbW91bnRFbnJvbGxCBQNuaWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEE211bHRpU2lnbmVkQnlBZG1pbnMEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc+hU+uA=", "height": 2411850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5QhYqJ8q8Mh2ZoW6hBmMHTxoAAUXpkZk1o9jkKeXTzGm Next: Gsf5XiGstXo92tXDKVhEMD7f8rpo3adZQ4ZCdYs65PYY Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "deprecated_" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "A_asset_id" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "B_asset_id" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "A_asset_balance" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "B_asset_balance" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "A_asset_init" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "B_asset_init" | |
23 | 23 | ||
24 | - | let k = "share_asset_ | |
24 | + | let k = "share_asset_id" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "share_asset_supply" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "commission" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "shutdown_cause" | |
31 | 31 | ||
32 | - | let o = "first_harvest | |
32 | + | let o = "first_harvest" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "first_harvest_height" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | - | let r = "period | |
38 | + | let r = "base_period" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "period_length" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = "staking_ | |
44 | + | let u = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "staking_eurn_address" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "leasing_amount" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "usdn_asset_id" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "eurn_asset_id" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "staking_assets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "active_all_contracts" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "discounts" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "discount_values" | |
61 | 61 | ||
62 | - | let D = "_ | |
62 | + | let D = "_GSwop_amount" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "_SWOP_amount" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "pool_" | |
67 | 67 | ||
68 | - | let G = "admin_pub_ | |
68 | + | let G = "admin_pub_1" | |
69 | 69 | ||
70 | - | let H = "admin_pub_ | |
70 | + | let H = "admin_pub_2" | |
71 | 71 | ||
72 | - | let I = "admin_ | |
72 | + | let I = "admin_pub_3" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "admin_invoke_pub" | |
75 | 75 | ||
76 | - | let K = " | |
76 | + | let K = "money_box_address" | |
77 | 77 | ||
78 | - | let L = " | |
78 | + | let L = "voting_address" | |
79 | 79 | ||
80 | - | let M = " | |
80 | + | let M = "governance_address" | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = "farming_address" | |
83 | 83 | ||
84 | - | func O (P) = { | |
85 | - | let Q = getString(N, P) | |
86 | - | if ($isInstanceOf(Q, "String")) | |
84 | + | let O = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
85 | + | ||
86 | + | func P (Q) = { | |
87 | + | let R = getString(O, Q) | |
88 | + | if ($isInstanceOf(R, "String")) | |
87 | 89 | then { | |
88 | - | let | |
89 | - | fromBase58String( | |
90 | + | let S = R | |
91 | + | fromBase58String(S) | |
90 | 92 | } | |
91 | 93 | else { | |
92 | - | let | |
93 | - | throw(( | |
94 | + | let T = R | |
95 | + | throw((Q + "is empty")) | |
94 | 96 | } | |
95 | 97 | } | |
96 | 98 | ||
97 | 99 | ||
98 | - | let | |
100 | + | let U = P(G) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = P(H) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = P(I) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = P(J) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(P(K)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = Address(P(L)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = Address(P(M)) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = Address(P(N)) | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = P(x) | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = P(y) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = getStringValue(O, z) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = Address(P(u)) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = Address(P(v)) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = valueOrErrorMessage(getInteger(Z, r), "Empty kBasePeriod") | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = valueOrErrorMessage(getInteger(Z, t), "Empty kStartHeight") | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = valueOrErrorMessage(getInteger(Z, s), "Empty kPeriodLength") | |
129 | 131 | ||
130 | - | let | |
132 | + | let ak = ((ah + ((height - ai) / aj)) + 3) | |
131 | 133 | ||
132 | - | let | |
134 | + | let al = getBooleanValue(O, A) | |
133 | 135 | ||
134 | - | let | |
136 | + | let am = 1000000 | |
135 | 137 | ||
136 | - | let | |
138 | + | let an = 100000000 | |
137 | 139 | ||
138 | - | let | |
140 | + | let ao = toBigInt(10000000000000000) | |
139 | 141 | ||
140 | - | func | |
141 | - | let | |
142 | - | if ($isInstanceOf( | |
142 | + | func ap (aq,ar) = { | |
143 | + | let R = aq | |
144 | + | if ($isInstanceOf(R, "ByteVector")) | |
143 | 145 | then { | |
144 | - | let | |
145 | - | assetBalance( | |
146 | + | let as = R | |
147 | + | assetBalance(ar, as) | |
146 | 148 | } | |
147 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(R, "Unit")) | |
148 | 150 | then { | |
149 | - | let | |
150 | - | wavesBalance( | |
151 | + | let at = R | |
152 | + | wavesBalance(ar).available | |
151 | 153 | } | |
152 | 154 | else throw("Match error") | |
153 | 155 | } | |
154 | 156 | ||
155 | 157 | ||
156 | - | func | |
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
158 | + | func au (aq,ar) = { | |
159 | + | let av = { | |
160 | + | let R = aq | |
161 | + | if ($isInstanceOf(R, "ByteVector")) | |
160 | 162 | then { | |
161 | - | let | |
162 | - | if (( | |
163 | - | then getInteger( | |
164 | - | else if (( | |
165 | - | then getInteger( | |
163 | + | let aw = R | |
164 | + | if ((aw == ac)) | |
165 | + | then getInteger(af, ((("rpd_balance_" + toBase58String(aw)) + "_") + toString(ar))) | |
166 | + | else if ((aw == ad)) | |
167 | + | then getInteger(ag, ((("%s%s%s__stakingBalance__" + toBase58String(aw)) + "__") + toString(ar))) | |
166 | 168 | else 0 | |
167 | 169 | } | |
168 | - | else if ($isInstanceOf( | |
169 | - | then valueOrElse(getInteger( | |
170 | + | else if ($isInstanceOf(R, "Unit")) | |
171 | + | then valueOrElse(getInteger(ar, w), 0) | |
170 | 172 | else throw("Match error") | |
171 | 173 | } | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
174 | + | let R = av | |
175 | + | if ($isInstanceOf(R, "Int")) | |
174 | 176 | then { | |
175 | - | let | |
176 | - | | |
177 | + | let ax = R | |
178 | + | ax | |
177 | 179 | } | |
178 | 180 | else 0 | |
179 | 181 | } | |
180 | 182 | ||
181 | 183 | ||
182 | - | func | |
183 | - | let | |
184 | - | if (if ($isInstanceOf( | |
184 | + | func ay (aq) = { | |
185 | + | let R = aq | |
186 | + | if (if ($isInstanceOf(R, "String")) | |
185 | 187 | then true | |
186 | - | else $isInstanceOf( | |
188 | + | else $isInstanceOf(R, "ByteVector")) | |
187 | 189 | then { | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | if ($isInstanceOf( | |
190 | + | let as = R | |
191 | + | let az = { | |
192 | + | let aA = as | |
193 | + | if ($isInstanceOf(aA, "ByteVector")) | |
192 | 194 | then { | |
193 | - | let | |
194 | - | $Tuple2(toBase58String( | |
195 | + | let aw = aA | |
196 | + | $Tuple2(toBase58String(aw), aw) | |
195 | 197 | } | |
196 | - | else if ($isInstanceOf( | |
198 | + | else if ($isInstanceOf(aA, "String")) | |
197 | 199 | then { | |
198 | - | let | |
199 | - | $Tuple2( | |
200 | + | let aw = aA | |
201 | + | $Tuple2(aw, fromBase58String(aw)) | |
200 | 202 | } | |
201 | 203 | else throw("Match error") | |
202 | 204 | } | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | $Tuple3( | |
205 | + | let aB = az._1 | |
206 | + | let aC = az._2 | |
207 | + | let aD = valueOrErrorMessage(assetInfo(aC), (("Asset " + aB) + " doesn't exist")) | |
208 | + | $Tuple3(aB, aD.name, aD.decimals) | |
207 | 209 | } | |
208 | - | else if ($isInstanceOf( | |
210 | + | else if ($isInstanceOf(R, "Unit")) | |
209 | 211 | then { | |
210 | - | let | |
212 | + | let at = R | |
211 | 213 | $Tuple3("WAVES", "WAVES", 8) | |
212 | 214 | } | |
213 | 215 | else throw("Match error") | |
214 | 216 | } | |
215 | 217 | ||
216 | 218 | ||
217 | - | func | |
219 | + | func aE (aF) = [BooleanEntry(c, false), StringEntry(n, aF)] | |
218 | 220 | ||
219 | 221 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | if (if (( | |
226 | - | then (parseIntValue( | |
222 | + | func aG (aH) = { | |
223 | + | let aI = valueOrElse(getInteger(aa, (toString(aH) + E)), 0) | |
224 | + | let aJ = valueOrElse(getInteger(aa, (toString(aH) + D)), aI) | |
225 | + | let aK = split(getStringValue(O, C), ",") | |
226 | + | let aL = split(getStringValue(O, B), ",") | |
227 | + | if (if ((aJ >= parseIntValue(aK[0]))) | |
228 | + | then (parseIntValue(aK[1]) > aJ) | |
227 | 229 | else false) | |
228 | - | then ( | |
229 | - | else if (if (( | |
230 | - | then (parseIntValue( | |
230 | + | then (am - parseIntValue(aL[0])) | |
231 | + | else if (if ((aJ >= parseIntValue(aK[1]))) | |
232 | + | then (parseIntValue(aK[2]) > aJ) | |
231 | 233 | else false) | |
232 | - | then ( | |
233 | - | else if (if (( | |
234 | - | then (parseIntValue( | |
234 | + | then (am - parseIntValue(aL[1])) | |
235 | + | else if (if ((aJ >= parseIntValue(aK[2]))) | |
236 | + | then (parseIntValue(aK[3]) > aJ) | |
235 | 237 | else false) | |
236 | - | then ( | |
237 | - | else if (if (( | |
238 | - | then (parseIntValue( | |
238 | + | then (am - parseIntValue(aL[2])) | |
239 | + | else if (if ((aJ >= parseIntValue(aK[3]))) | |
240 | + | then (parseIntValue(aK[4]) > aJ) | |
239 | 241 | else false) | |
240 | - | then ( | |
241 | - | else if (( | |
242 | - | then ( | |
243 | - | else | |
242 | + | then (am - parseIntValue(aL[3])) | |
243 | + | else if ((aJ >= parseIntValue(aK[4]))) | |
244 | + | then (am - parseIntValue(aL[4])) | |
245 | + | else am | |
244 | 246 | } | |
245 | 247 | ||
246 | 248 | ||
247 | - | func | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
252 | - | then throw(((("Calculated amount to receive " + toString( | |
253 | - | else $Tuple3( | |
249 | + | func aM (aN,aO,aP,aQ,aR,aS) = { | |
250 | + | let aT = fraction(aQ, aN, (aN + aP)) | |
251 | + | let aU = fraction(aT, (am - aR), am) | |
252 | + | let aV = fraction(aT, aS, am) | |
253 | + | if ((aO > aU)) | |
254 | + | then throw(((("Calculated amount to receive " + toString(aU)) + " is less than specified minimum ") + toString(aO))) | |
255 | + | else $Tuple3(aT, aU, aV) | |
254 | 256 | } | |
255 | 257 | ||
256 | 258 | ||
257 | - | func | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | toInt(fraction((-(toBigInt( | |
259 | + | func aW (aN,aX,aR) = { | |
260 | + | let aY = (am - aR) | |
261 | + | let aZ = fraction(aR, 60, 100) | |
262 | + | let ba = (an + fraction((aY * aZ), an, (am * am))) | |
263 | + | let bb = ((((aX + fraction(aX, aY, am)) + fraction(aN, aY, am)) - aN) - fraction(aN, (aY * aZ), (am * am))) | |
264 | + | let bc = (-(toBigInt(aX)) * toBigInt(aN)) | |
265 | + | let bd = ((toBigInt(bb) * toBigInt(bb)) - fraction((toBigInt(4) * bc), toBigInt(ba), toBigInt(an))) | |
266 | + | toInt(fraction((-(toBigInt(bb)) + sqrtBigInt(bd, 0, 0, DOWN)), toBigInt(an), toBigInt((2 * ba)))) | |
265 | 267 | } | |
266 | 268 | ||
267 | 269 | ||
268 | - | func | |
270 | + | func be (aq) = if ((aq == base58'')) | |
269 | 271 | then unit | |
270 | - | else | |
272 | + | else aq | |
271 | 273 | ||
272 | 274 | ||
273 | - | func | |
275 | + | func bf (bg,bh,bi,bj,bk,bl) = aE(((((((((((((((("Suspicious state. Actual balances: " + toString(bg)) + " ") + bk) + ", ") + toString(bh)) + " ") + bl) + ". State: ") + toString(bi)) + " ") + bk) + ", ") + toString(bj)) + " ") + bl)) | |
274 | 276 | ||
275 | 277 | ||
276 | - | func | |
278 | + | func bm () = if (al) | |
277 | 279 | then unit | |
278 | 280 | else throw("DApp is inactive at this moment") | |
279 | 281 | ||
280 | 282 | ||
281 | - | func | |
283 | + | func bn (bo) = if (isDefined(getString(O, (F + bo)))) | |
282 | 284 | then unit | |
283 | 285 | else throw("DApp is not registered pool") | |
284 | 286 | ||
285 | 287 | ||
286 | - | func bo (aq,bj,bk) = { | |
287 | - | let bh = getIntegerValue(aq, f) | |
288 | - | let bi = getIntegerValue(aq, g) | |
289 | - | let bp = at(bj, aq) | |
290 | - | let bq = at(bk, aq) | |
291 | - | let bf = (ao(bj, aq) + bp) | |
292 | - | let bg = (ao(bk, aq) + bq) | |
293 | - | let br = getIntegerValue(aq, k) | |
294 | - | $Tuple5(bh, bi, bf, bg, br) | |
288 | + | func bp (bo) = if (!(valueOrElse(getBoolean(O, (d + bo)), false))) | |
289 | + | then unit | |
290 | + | else throw("Pool is deprecated. Only withdraw action allowed.") | |
291 | + | ||
292 | + | ||
293 | + | func bq (ar,bk,bl) = { | |
294 | + | let bi = getIntegerValue(ar, g) | |
295 | + | let bj = getIntegerValue(ar, h) | |
296 | + | let br = au(bk, ar) | |
297 | + | let bs = au(bl, ar) | |
298 | + | let bg = (ap(bk, ar) + br) | |
299 | + | let bh = (ap(bl, ar) + bs) | |
300 | + | let bt = getIntegerValue(ar, l) | |
301 | + | $Tuple5(bi, bj, bg, bh, bt) | |
295 | 302 | } | |
296 | 303 | ||
297 | 304 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
305 | + | func bu (ar) = { | |
306 | + | let bv = getStringValue(ar, e) | |
307 | + | let bw = getStringValue(ar, f) | |
308 | + | let bk = if ((bv == "WAVES")) | |
302 | 309 | then unit | |
303 | - | else fromBase58String( | |
304 | - | let | |
310 | + | else fromBase58String(bv) | |
311 | + | let bl = if ((bw == "WAVES")) | |
305 | 312 | then unit | |
306 | - | else fromBase58String( | |
307 | - | let | |
308 | - | $Tuple5( | |
313 | + | else fromBase58String(bw) | |
314 | + | let bx = fromBase58String(getStringValue(ar, k)) | |
315 | + | $Tuple5(bv, bw, bk, bl, bx) | |
309 | 316 | } | |
310 | 317 | ||
311 | 318 | ||
312 | - | func | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | $Tuple2( | |
319 | + | func by (ar,bz) = { | |
320 | + | let bA = aG(bz) | |
321 | + | let aR = fraction(getIntegerValue(ar, m), bA, am, CEILING) | |
322 | + | let bB = fraction(aR, 40, 100) | |
323 | + | $Tuple2(aR, bB) | |
317 | 324 | } | |
318 | 325 | ||
319 | 326 | ||
320 | - | @Callable( | |
321 | - | func init ( | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if (!(containsElement([ | |
327 | + | @Callable(ax) | |
328 | + | func init (bC,bD,bE,bF) = { | |
329 | + | let bz = Address(bC) | |
330 | + | let bG = $Tuple2(bE[0], be(bF[0])) | |
331 | + | let bH = bG._1 | |
332 | + | let bI = bG._2 | |
333 | + | let bJ = $Tuple2(bE[1], be(bF[1])) | |
334 | + | let bK = bJ._1 | |
335 | + | let bL = bJ._2 | |
336 | + | if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
330 | 337 | then throw("Only admin can call this function") | |
331 | - | else if ((size( | |
338 | + | else if ((size(bD) != 1)) | |
332 | 339 | then throw("Wrong args size") | |
333 | - | else if (isDefined(getBoolean( | |
340 | + | else if (isDefined(getBoolean(bz, c))) | |
334 | 341 | then throw("DApp is already active") | |
335 | - | else if (( | |
342 | + | else if ((bI == bL)) | |
336 | 343 | then throw("Assets must be different") | |
337 | 344 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | then invoke( | |
345 | + | let bM = ay(bI) | |
346 | + | let bN = bM._1 | |
347 | + | let bO = bM._2 | |
348 | + | let bP = bM._3 | |
349 | + | let bQ = ay(bL) | |
350 | + | let bR = bQ._1 | |
351 | + | let bS = bQ._2 | |
352 | + | let bT = bQ._3 | |
353 | + | let bU = (bD[0] == "true") | |
354 | + | let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7)) | |
355 | + | let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this)) | |
356 | + | let bX = ((bP + bT) / 2) | |
357 | + | let bY = pow(bH, bP, 5, 1, bP, DOWN) | |
358 | + | let bZ = pow(bK, bT, 5, 1, bT, DOWN) | |
359 | + | let ca = pow(10, 0, bX, 0, 0, DOWN) | |
360 | + | let cb = fraction(bY, bZ, ca) | |
361 | + | let cc = Issue(bV, bW, cb, bX, true) | |
362 | + | let cd = calculateAssetId(cc) | |
363 | + | let ce = if (contains(ae, bN)) | |
364 | + | then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil) | |
358 | 365 | else 0 | |
359 | - | if (( | |
366 | + | if ((ce == ce)) | |
360 | 367 | then { | |
361 | - | let | |
362 | - | then invoke( | |
368 | + | let cf = if (contains(ae, bR)) | |
369 | + | then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil) | |
363 | 370 | else 0 | |
364 | - | if (( | |
371 | + | if ((cf == cf)) | |
365 | 372 | then { | |
366 | - | let | |
367 | - | if ( | |
368 | - | then $Tuple2(nil, $Tuple2(( | |
369 | - | else $Tuple2(nil, $Tuple2( | |
373 | + | let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(g, bH), IntegerEntry(h, bK), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb), ScriptTransfer(bz, cb, cd)] | |
374 | + | if (bU) | |
375 | + | then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil)) | |
376 | + | else $Tuple2(nil, $Tuple2(cg, nil)) | |
370 | 377 | } | |
371 | 378 | else throw("Strict value is not equal to itself.") | |
372 | 379 | } | |
376 | 383 | ||
377 | 384 | ||
378 | 385 | ||
379 | - | @Callable( | |
380 | - | func initWithInitRatio ( | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | if (!(containsElement([ | |
386 | + | @Callable(ax) | |
387 | + | func initWithInitRatio (bC,bD,bE,bF) = { | |
388 | + | let bz = Address(bC) | |
389 | + | let ch = $Tuple5(parseIntValue(bD[0]), parseIntValue(bD[1]), bD[2], bD[3], (bD[4] == "true")) | |
390 | + | let ci = ch._1 | |
391 | + | let cj = ch._2 | |
392 | + | let ck = ch._3 | |
393 | + | let cl = ch._4 | |
394 | + | let bU = ch._5 | |
395 | + | if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
389 | 396 | then throw("Only admin can call this function") | |
390 | - | else if ((size( | |
397 | + | else if ((size(bD) != 5)) | |
391 | 398 | then throw("Wrong args size") | |
392 | - | else if (isDefined(getBoolean( | |
399 | + | else if (isDefined(getBoolean(bz, c))) | |
393 | 400 | then throw("DApp is already active") | |
394 | - | else if (( | |
401 | + | else if ((ck == cl)) | |
395 | 402 | then throw("Assets must be different") | |
396 | 403 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | if ( | |
413 | - | then $Tuple2(nil, $Tuple2(( | |
414 | - | else $Tuple2(nil, $Tuple2( | |
404 | + | let cm = ay(ck) | |
405 | + | let bN = cm._1 | |
406 | + | let bO = cm._2 | |
407 | + | let bP = cm._3 | |
408 | + | let cn = ay(cl) | |
409 | + | let bR = cn._1 | |
410 | + | let bS = cn._2 | |
411 | + | let bT = cn._3 | |
412 | + | let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7)) | |
413 | + | let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this)) | |
414 | + | let bX = ((bP + bT) / 2) | |
415 | + | let cb = 0 | |
416 | + | let cc = Issue(bV, bW, cb, bX, true) | |
417 | + | let cd = calculateAssetId(cc) | |
418 | + | let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(i, ci), IntegerEntry(j, cj), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb)] | |
419 | + | if (bU) | |
420 | + | then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil)) | |
421 | + | else $Tuple2(nil, $Tuple2(cg, nil)) | |
415 | 422 | } | |
416 | 423 | } | |
417 | 424 | ||
418 | 425 | ||
419 | 426 | ||
420 | - | @Callable( | |
421 | - | func keepLimitForFirstHarvest ( | |
427 | + | @Callable(ax) | |
428 | + | func keepLimitForFirstHarvest (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
422 | 429 | then throw("Only admin can call this function") | |
423 | - | else if ((size( | |
430 | + | else if ((size(bD) != 1)) | |
424 | 431 | then throw("Wrong args size") | |
425 | 432 | else { | |
426 | - | let | |
427 | - | $Tuple2(nil, $Tuple2([IntegerEntry( | |
433 | + | let co = parseIntValue(bD[0]) | |
434 | + | $Tuple2(nil, $Tuple2([IntegerEntry(q, co)], nil)) | |
428 | 435 | })) | |
429 | 436 | ||
430 | 437 | ||
431 | 438 | ||
432 | - | @Callable( | |
433 | - | func exchange ( | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | if ((size( | |
439 | + | @Callable(ax) | |
440 | + | func exchange (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
441 | + | let bz = Address(bC) | |
442 | + | let cp = $Tuple2(bE[0], be(bF[0])) | |
443 | + | let aN = cp._1 | |
444 | + | let cq = cp._2 | |
445 | + | let aO = parseIntValue(bD[0]) | |
446 | + | let cr = bu(ax.caller) | |
447 | + | let bv = cr._1 | |
448 | + | let bw = cr._2 | |
449 | + | let bk = cr._3 | |
450 | + | let bl = cr._4 | |
451 | + | let cs = bq(ax.caller, bk, bl) | |
452 | + | let bi = cs._1 | |
453 | + | let bj = cs._2 | |
454 | + | let bg = cs._3 | |
455 | + | let bh = cs._4 | |
456 | + | if ((size(bD) != 1)) | |
450 | 457 | then throw("Wrong args size") | |
451 | - | else if (if (( | |
458 | + | else if (if ((bi == 0)) | |
452 | 459 | then true | |
453 | - | else ( | |
460 | + | else (bj == 0)) | |
454 | 461 | then throw("Can't exchange with zero balance") | |
455 | - | else if ((0 >= | |
456 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
457 | - | else if ((size( | |
462 | + | else if ((0 >= aO)) | |
463 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(aO))) | |
464 | + | else if ((size(bE) != 1)) | |
458 | 465 | then throw("One attached payment expected") | |
459 | - | else if (!(containsElement([ | |
460 | - | then throw(((("Incorrect asset attached. Expected: " + | |
461 | - | else if (if (( | |
466 | + | else if (!(containsElement([bk, bl], cq))) | |
467 | + | then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw)) | |
468 | + | else if (if ((bi > bg)) | |
462 | 469 | then true | |
463 | - | else ( | |
464 | - | then $Tuple2(nil, ([ScriptTransfer( | |
470 | + | else (bj > bh)) | |
471 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
465 | 472 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | then | |
471 | - | else | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | then $Tuple3(( | |
477 | - | else $Tuple3((( | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then $Tuple2( | |
483 | - | else $Tuple2(( | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | then invoke( | |
473 | + | let ct = by(ax.caller, ax.originCaller) | |
474 | + | let aR = ct._1 | |
475 | + | let bB = ct._2 | |
476 | + | let cu = if ((cq == bk)) | |
477 | + | then aM(aN, aO, bi, bj, aR, bB) | |
478 | + | else aM(aN, aO, bj, bi, aR, bB) | |
479 | + | let aT = cu._1 | |
480 | + | let aU = cu._2 | |
481 | + | let aV = cu._3 | |
482 | + | let cv = if ((cq == bk)) | |
483 | + | then $Tuple3((bi + aN), ((bj - aU) - aV), bl) | |
484 | + | else $Tuple3(((bi - aU) - aV), (bj + aN), bk) | |
485 | + | let cw = cv._1 | |
486 | + | let cx = cv._2 | |
487 | + | let cy = cv._3 | |
488 | + | let cz = if ((cq == bk)) | |
489 | + | then $Tuple2(aN, (aU + aV)) | |
490 | + | else $Tuple2((aU + aV), aN) | |
491 | + | let cA = cz._1 | |
492 | + | let cB = cz._2 | |
493 | + | let ce = if (contains(ae, bv)) | |
494 | + | then invoke(ax.caller, "stakeUnstake", [(cq == bk), cA, bv], nil) | |
488 | 495 | else 0 | |
489 | - | if (( | |
496 | + | if ((ce == ce)) | |
490 | 497 | then { | |
491 | - | let | |
492 | - | then invoke( | |
498 | + | let cf = if (contains(ae, bw)) | |
499 | + | then invoke(ax.caller, "stakeUnstake", [(cq == bl), cB, bw], nil) | |
493 | 500 | else 0 | |
494 | - | if (( | |
495 | - | then $Tuple2(nil, $Tuple2([IntegerEntry( | |
501 | + | if ((cf == cf)) | |
502 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(g, cw), IntegerEntry(h, cx), ScriptTransfer(bz, aU, cy), ScriptTransfer(Y, aV, cy)], [aU, cy])) | |
496 | 503 | else throw("Strict value is not equal to itself.") | |
497 | 504 | } | |
498 | 505 | else throw("Strict value is not equal to itself.") | |
499 | 506 | } | |
500 | - | })) | |
507 | + | }))) | |
501 | 508 | ||
502 | 509 | ||
503 | 510 | ||
504 | - | @Callable( | |
505 | - | func replenishWithTwoTokens ( | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | if ((size( | |
511 | + | @Callable(ax) | |
512 | + | func replenishWithTwoTokens (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
513 | + | let bz = Address(bC) | |
514 | + | let bI = be(bF[0]) | |
515 | + | let bL = be(bF[1]) | |
516 | + | let cC = (bD[0] == "true") | |
517 | + | let cD = parseIntValue(bD[1]) | |
518 | + | let cE = bu(ax.caller) | |
519 | + | let bv = cE._1 | |
520 | + | let bw = cE._2 | |
521 | + | let bk = cE._3 | |
522 | + | let bl = cE._4 | |
523 | + | let bx = cE._5 | |
524 | + | let cF = bq(ax.caller, bk, bl) | |
525 | + | let bi = cF._1 | |
526 | + | let bj = cF._2 | |
527 | + | let bg = cF._3 | |
528 | + | let bh = cF._4 | |
529 | + | let cG = cF._5 | |
530 | + | if ((size(bD) != 2)) | |
524 | 531 | then throw("Wrong args size") | |
525 | - | else if (if ((size( | |
526 | - | then (size( | |
532 | + | else if (if ((size(bE) != 2)) | |
533 | + | then (size(bE) != 3) | |
527 | 534 | else false) | |
528 | 535 | then throw("Two or three payments expected") | |
529 | - | else if (if (( | |
536 | + | else if (if ((bI != bk)) | |
530 | 537 | then true | |
531 | - | else ( | |
532 | - | then throw(((("Incorrect assets attached. Expected: " + | |
533 | - | else if (if (( | |
538 | + | else (bL != bl)) | |
539 | + | then throw(((("Incorrect assets attached. Expected: " + bv) + " and ") + bw)) | |
540 | + | else if (if ((bi > bg)) | |
534 | 541 | then true | |
535 | - | else ( | |
536 | - | then $Tuple2(nil, ([ScriptTransfer( | |
537 | - | then [AttachedPayment(if (( | |
542 | + | else (bj > bh)) | |
543 | + | then $Tuple2(nil, ([ScriptTransfer(bz, bE[0], bI), ScriptTransfer(bz, bE[1], bL)] ++ (if ((size(bE) == 3)) | |
544 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
538 | 545 | then unit | |
539 | - | else | |
540 | - | else (nil ++ | |
546 | + | else bF[2], bE[2])] | |
547 | + | else (nil ++ bf(bg, bh, bi, bj, bv, bw))))) | |
541 | 548 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | then $Tuple5( | |
549 | + | let cH = ay(bI) | |
550 | + | let bN = cH._1 | |
551 | + | let bO = cH._2 | |
552 | + | let bP = cH._3 | |
553 | + | let cI = ay(bL) | |
554 | + | let bR = cI._1 | |
555 | + | let bS = cI._2 | |
556 | + | let bT = cI._3 | |
557 | + | let cJ = ((bi + bj) == 0) | |
558 | + | let cK = if (cJ) | |
559 | + | then $Tuple5(bE[0], bE[1], 0, bI, toBigInt(1)) | |
553 | 560 | else { | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
561 | + | let cL = fraction(ao, toBigInt(bE[0]), toBigInt(bi)) | |
562 | + | let cM = fraction(ao, toBigInt(bE[1]), toBigInt(bj)) | |
563 | + | if ((cM > cL)) | |
557 | 564 | then { | |
558 | - | let | |
559 | - | $Tuple5( | |
565 | + | let cN = fraction(bE[0], bj, bi) | |
566 | + | $Tuple5(bE[0], cN, (bE[1] - cN), bL, cL) | |
560 | 567 | } | |
561 | 568 | else { | |
562 | - | let | |
563 | - | $Tuple5( | |
569 | + | let cN = fraction(bE[1], bi, bj) | |
570 | + | $Tuple5(cN, bE[1], (bE[0] - cN), bI, cM) | |
564 | 571 | } | |
565 | 572 | } | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
573 | + | let bH = cK._1 | |
574 | + | let bK = cK._2 | |
575 | + | let cO = cK._3 | |
576 | + | let cP = cK._4 | |
577 | + | let cQ = cK._5 | |
578 | + | let cR = if (cJ) | |
572 | 579 | then { | |
573 | - | let | |
574 | - | fraction(pow( | |
580 | + | let bX = ((bP + bT) / 2) | |
581 | + | fraction(pow(bH, bP, 5, 1, bP, DOWN), pow(bK, bT, 5, 1, bT, DOWN), pow(10, 0, bX, 0, 0, DOWN)) | |
575 | 582 | } | |
576 | - | else toInt(fraction( | |
577 | - | if (( | |
583 | + | else toInt(fraction(cQ, toBigInt(cG), ao)) | |
584 | + | if ((cR == 0)) | |
578 | 585 | then throw("Too small amount to replenish") | |
579 | - | else if ((0 > | |
586 | + | else if ((0 > cO)) | |
580 | 587 | then throw("Change < 0") | |
581 | 588 | else { | |
582 | - | let | |
583 | - | then invoke( | |
589 | + | let ce = if (contains(ae, bN)) | |
590 | + | then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil) | |
584 | 591 | else 0 | |
585 | - | if (( | |
592 | + | if ((ce == ce)) | |
586 | 593 | then { | |
587 | - | let | |
588 | - | then invoke( | |
594 | + | let cf = if (contains(ae, bR)) | |
595 | + | then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil) | |
589 | 596 | else 0 | |
590 | - | if (( | |
597 | + | if ((cf == cf)) | |
591 | 598 | then { | |
592 | - | let | |
599 | + | let cS = if (cC) | |
593 | 600 | then { | |
594 | - | let | |
595 | - | then [AttachedPayment(if (( | |
601 | + | let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 3)) | |
602 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
596 | 603 | then unit | |
597 | - | else | |
604 | + | else bF[2], bE[2])] | |
598 | 605 | else nil)) | |
599 | - | let | |
600 | - | if (( | |
606 | + | let cU = invoke(ax.caller, "reissueShareToken", [cR], nil) | |
607 | + | if ((cU == cU)) | |
601 | 608 | then { | |
602 | - | let | |
603 | - | if (( | |
609 | + | let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT) | |
610 | + | if ((cV == cV)) | |
604 | 611 | then nil | |
605 | 612 | else throw("Strict value is not equal to itself.") | |
606 | 613 | } | |
607 | 614 | else throw("Strict value is not equal to itself.") | |
608 | 615 | } | |
609 | - | else [Reissue( | |
610 | - | $Tuple2(nil, $Tuple2(([IntegerEntry( | |
616 | + | else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)] | |
617 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(g, (bi + bH)), IntegerEntry(h, (bj + bK)), IntegerEntry(l, (cG + cR)), ScriptTransfer(bz, cO, cP)] ++ cS), nil)) | |
611 | 618 | } | |
612 | 619 | else throw("Strict value is not equal to itself.") | |
613 | 620 | } | |
614 | 621 | else throw("Strict value is not equal to itself.") | |
615 | 622 | } | |
616 | 623 | } | |
617 | - | })) | |
624 | + | }))) | |
618 | 625 | ||
619 | 626 | ||
620 | 627 | ||
621 | - | @Callable( | |
622 | - | func replenishWithOneToken ( | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if ((size( | |
628 | + | @Callable(ax) | |
629 | + | func replenishWithOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
630 | + | let bz = Address(bC) | |
631 | + | let cq = be(bF[0]) | |
632 | + | let aN = bE[0] | |
633 | + | let cW = parseIntValue(bD[0]) | |
634 | + | let cC = (bD[1] == "true") | |
635 | + | let cD = parseIntValue(bD[2]) | |
636 | + | let cX = bu(ax.caller) | |
637 | + | let bv = cX._1 | |
638 | + | let bw = cX._2 | |
639 | + | let bk = cX._3 | |
640 | + | let bl = cX._4 | |
641 | + | let bx = cX._5 | |
642 | + | let cY = bq(ax.caller, bk, bl) | |
643 | + | let bi = cY._1 | |
644 | + | let bj = cY._2 | |
645 | + | let bg = cY._3 | |
646 | + | let bh = cY._4 | |
647 | + | let cG = cY._5 | |
648 | + | let cJ = ((bi + bj) == 0) | |
649 | + | if ((size(bD) != 3)) | |
643 | 650 | then throw("Wrong args size") | |
644 | - | else if (if ((size( | |
645 | - | then (size( | |
651 | + | else if (if ((size(bE) != 1)) | |
652 | + | then (size(bE) != 2) | |
646 | 653 | else false) | |
647 | 654 | then throw("Two or one attached assets expected") | |
648 | - | else if (if (( | |
649 | - | then ( | |
655 | + | else if (if ((cq != bk)) | |
656 | + | then (cq != bl) | |
650 | 657 | else false) | |
651 | - | then throw(((("Incorrect asset attached. Expected: " + | |
652 | - | else if ( | |
658 | + | then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw)) | |
659 | + | else if (cJ) | |
653 | 660 | then throw("For initial exchanger you need to use two tokens") | |
654 | - | else if (if (( | |
661 | + | else if (if ((bi > bg)) | |
655 | 662 | then true | |
656 | - | else ( | |
657 | - | then $Tuple2(nil, ([ScriptTransfer( | |
658 | - | then [AttachedPayment(if (( | |
663 | + | else (bj > bh)) | |
664 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ (if ((size(bE) == 2)) | |
665 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
659 | 666 | then unit | |
660 | - | else | |
661 | - | else (nil ++ | |
667 | + | else bF[2], bE[2])] | |
668 | + | else (nil ++ bf(bg, bh, bi, bj, bv, bw))))) | |
662 | 669 | else { | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
670 | + | let cZ = by(ax.caller, ax.originCaller) | |
671 | + | let aR = cZ._1 | |
672 | + | let bB = cZ._2 | |
673 | + | let da = if ((cq == bk)) | |
667 | 674 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | $Tuple7( | |
675 | + | let db = aW(aN, bi, aR) | |
676 | + | let dc = aM(db, cW, bi, bj, aR, bB) | |
677 | + | let aT = dc._1 | |
678 | + | let aU = dc._2 | |
679 | + | let aV = dc._3 | |
680 | + | let dd = (bi + db) | |
681 | + | let de = ((bj + aT) - aV) | |
682 | + | let cw = (bi + aN) | |
683 | + | let cx = (bj - aV) | |
684 | + | let cL = fraction(toBigInt((aN - db)), ao, toBigInt(dd)) | |
685 | + | let cM = fraction(toBigInt(aU), ao, toBigInt(de)) | |
686 | + | let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao)) | |
687 | + | $Tuple7(cw, cx, cR, aV, bl, bw, bv) | |
681 | 688 | } | |
682 | 689 | else { | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple7( | |
690 | + | let db = aW(aN, bj, aR) | |
691 | + | let df = aM(db, cW, bj, bi, aR, bB) | |
692 | + | let aT = df._1 | |
693 | + | let aU = df._2 | |
694 | + | let aV = df._3 | |
695 | + | let dd = ((bi + aT) - aV) | |
696 | + | let de = (bj + db) | |
697 | + | let cw = (bi - aV) | |
698 | + | let cx = (bj + aN) | |
699 | + | let cL = fraction(toBigInt(aU), ao, toBigInt(dd)) | |
700 | + | let cM = fraction(toBigInt((aN - db)), ao, toBigInt(de)) | |
701 | + | let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao)) | |
702 | + | $Tuple7(cw, cx, cR, aV, bk, bv, bw) | |
696 | 703 | } | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | if (( | |
704 | + | let cw = da._1 | |
705 | + | let cx = da._2 | |
706 | + | let cR = da._3 | |
707 | + | let dg = da._4 | |
708 | + | let dh = da._5 | |
709 | + | let di = da._6 | |
710 | + | let dj = da._7 | |
711 | + | if ((cR == 0)) | |
705 | 712 | then throw("Too small amount to replenish") | |
706 | 713 | else { | |
707 | - | let | |
708 | - | then invoke( | |
714 | + | let ce = if (contains(ae, dj)) | |
715 | + | then invoke(ax.caller, "stakeUnstake", [true, aN, dj], nil) | |
709 | 716 | else 0 | |
710 | - | if (( | |
717 | + | if ((ce == ce)) | |
711 | 718 | then { | |
712 | - | let | |
713 | - | then invoke( | |
719 | + | let cf = if (contains(ae, di)) | |
720 | + | then invoke(ax.caller, "stakeUnstake", [false, dg, di], nil) | |
714 | 721 | else 0 | |
715 | - | if (( | |
722 | + | if ((cf == cf)) | |
716 | 723 | then { | |
717 | - | let | |
724 | + | let cS = if (cC) | |
718 | 725 | then { | |
719 | - | let | |
720 | - | then [AttachedPayment(if (( | |
726 | + | let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 2)) | |
727 | + | then [AttachedPayment(if ((bF[1] == base58'')) | |
721 | 728 | then unit | |
722 | - | else | |
729 | + | else bF[1], bE[1])] | |
723 | 730 | else nil)) | |
724 | - | let | |
725 | - | if (( | |
731 | + | let cU = invoke(ax.caller, "reissueShareToken", [cR], nil) | |
732 | + | if ((cU == cU)) | |
726 | 733 | then { | |
727 | - | let | |
728 | - | if (( | |
734 | + | let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT) | |
735 | + | if ((cV == cV)) | |
729 | 736 | then nil | |
730 | 737 | else throw("Strict value is not equal to itself.") | |
731 | 738 | } | |
732 | 739 | else throw("Strict value is not equal to itself.") | |
733 | 740 | } | |
734 | - | else [Reissue( | |
735 | - | $Tuple2(nil, $Tuple2(([IntegerEntry( | |
741 | + | else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)] | |
742 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG + cR)), ScriptTransfer(Y, dg, dh)] ++ cS), nil)) | |
736 | 743 | } | |
737 | 744 | else throw("Strict value is not equal to itself.") | |
738 | 745 | } | |
739 | 746 | else throw("Strict value is not equal to itself.") | |
740 | 747 | } | |
741 | 748 | } | |
742 | - | })) | |
749 | + | }))) | |
743 | 750 | ||
744 | 751 | ||
745 | 752 | ||
746 | - | @Callable( | |
747 | - | func withdraw ( | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
753 | + | @Callable(ax) | |
754 | + | func withdraw (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), { | |
755 | + | let dk = lastBlock.timestamp | |
756 | + | let bz = Address(bC) | |
757 | + | let dl = bu(ax.caller) | |
758 | + | let bv = dl._1 | |
759 | + | let bw = dl._2 | |
760 | + | let bk = dl._3 | |
761 | + | let bl = dl._4 | |
762 | + | let bx = dl._5 | |
763 | + | let dm = bq(ax.caller, bk, bl) | |
764 | + | let bi = dm._1 | |
765 | + | let bj = dm._2 | |
766 | + | let bg = dm._3 | |
767 | + | let bh = dm._4 | |
768 | + | let cG = dm._5 | |
769 | + | let dn = if ((size(bE) == 1)) | |
763 | 770 | then { | |
764 | - | let | |
765 | - | if (( | |
766 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
767 | - | else $Tuple2( | |
771 | + | let do = be(bF[0]) | |
772 | + | if ((do != bx)) | |
773 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
774 | + | else $Tuple2(bE[0], do) | |
768 | 775 | } | |
769 | - | else $Tuple2(0, | |
770 | - | let | |
771 | - | let | |
772 | - | if ((size( | |
776 | + | else $Tuple2(0, bx) | |
777 | + | let aN = dn._1 | |
778 | + | let cq = dn._2 | |
779 | + | if ((size(bD) != 1)) | |
773 | 780 | then throw("Wrong args size") | |
774 | - | else if ((size( | |
781 | + | else if ((size(bE) > 1)) | |
775 | 782 | then throw("One attached payment expected") | |
776 | - | else if (if (( | |
783 | + | else if (if ((bi > bg)) | |
777 | 784 | then true | |
778 | - | else ( | |
779 | - | then $Tuple2(nil, ([ScriptTransfer( | |
785 | + | else (bj > bh)) | |
786 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
780 | 787 | else { | |
781 | - | let | |
782 | - | let | |
783 | - | then invoke( | |
788 | + | let dp = parseIntValue(valueOrElse(bD[0], "0")) | |
789 | + | let dq = if ((dp > 0)) | |
790 | + | then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil) | |
784 | 791 | else 0 | |
785 | - | if (( | |
792 | + | if ((dq == dq)) | |
786 | 793 | then { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | then invoke( | |
794 | + | let dr = (aN + dp) | |
795 | + | let ds = fraction(dr, bi, cG) | |
796 | + | let dt = fraction(dr, bj, cG) | |
797 | + | let ce = if (contains(ae, bv)) | |
798 | + | then invoke(ax.caller, "stakeUnstake", [false, ds, bv], nil) | |
792 | 799 | else 0 | |
793 | - | if (( | |
800 | + | if ((ce == ce)) | |
794 | 801 | then { | |
795 | - | let | |
796 | - | then invoke( | |
802 | + | let cf = if (contains(ae, bw)) | |
803 | + | then invoke(ax.caller, "stakeUnstake", [false, dt, bw], nil) | |
797 | 804 | else 0 | |
798 | - | if (( | |
799 | - | then $Tuple2([ScriptTransfer( | |
805 | + | if ((cf == cf)) | |
806 | + | then $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2([IntegerEntry(g, (bi - ds)), IntegerEntry(h, (bj - dt)), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(bz, ds, bk), ScriptTransfer(bz, dt, bl)], nil)) | |
800 | 807 | else throw("Strict value is not equal to itself.") | |
801 | 808 | } | |
802 | 809 | else throw("Strict value is not equal to itself.") | |
807 | 814 | ||
808 | 815 | ||
809 | 816 | ||
810 | - | @Callable( | |
811 | - | func withdrawOneToken ( | |
812 | - | let | |
813 | - | let | |
817 | + | @Callable(ax) | |
818 | + | func withdrawOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
819 | + | let bz = Address(bC) | |
820 | + | let du = if ((bD[0] == "")) | |
814 | 821 | then unit | |
815 | - | else fromBase58String( | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
822 | + | else fromBase58String(bD[0]) | |
823 | + | let dv = bu(ax.caller) | |
824 | + | let bv = dv._1 | |
825 | + | let bw = dv._2 | |
826 | + | let bk = dv._3 | |
827 | + | let bl = dv._4 | |
828 | + | let bx = dv._5 | |
829 | + | let dw = bq(ax.caller, bk, bl) | |
830 | + | let bi = dw._1 | |
831 | + | let bj = dw._2 | |
832 | + | let bg = dw._3 | |
833 | + | let bh = dw._4 | |
834 | + | let cG = dw._5 | |
835 | + | let dx = if ((size(bE) == 1)) | |
829 | 836 | then { | |
830 | - | let | |
831 | - | if (( | |
832 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
833 | - | else $Tuple2( | |
837 | + | let do = be(bF[0]) | |
838 | + | if ((do != bx)) | |
839 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
840 | + | else $Tuple2(bE[0], do) | |
834 | 841 | } | |
835 | - | else $Tuple2(0, | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | if ((size( | |
842 | + | else $Tuple2(0, bx) | |
843 | + | let aN = dx._1 | |
844 | + | let cq = dx._2 | |
845 | + | let dy = parseIntValue(bD[1]) | |
846 | + | if ((size(bD) != 3)) | |
840 | 847 | then throw("Wrong args size") | |
841 | - | else if ((size( | |
848 | + | else if ((size(bE) > 1)) | |
842 | 849 | then throw("One attached payment expected") | |
843 | - | else if (( | |
844 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
845 | - | else if (!(containsElement([ | |
850 | + | else if ((cq != bx)) | |
851 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
852 | + | else if (!(containsElement([bk, bl], du))) | |
846 | 853 | then throw("Incorrect withdraw asset.") | |
847 | - | else if (if (( | |
854 | + | else if (if ((bi > bg)) | |
848 | 855 | then true | |
849 | - | else ( | |
850 | - | then $Tuple2(nil, ([ScriptTransfer( | |
856 | + | else (bj > bh)) | |
857 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
851 | 858 | else { | |
852 | - | let | |
853 | - | let | |
854 | - | then invoke( | |
859 | + | let dp = parseIntValue(valueOrElse(bD[2], "0")) | |
860 | + | let dq = if ((dp > 0)) | |
861 | + | then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil) | |
855 | 862 | else 0 | |
856 | - | if (( | |
863 | + | if ((dq == dq)) | |
857 | 864 | then { | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | then | |
866 | - | else | |
867 | - | let | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
865 | + | let dr = (aN + dp) | |
866 | + | let ds = fraction(dr, bi, cG) | |
867 | + | let dt = fraction(dr, bj, cG) | |
868 | + | let dz = by(ax.caller, ax.originCaller) | |
869 | + | let aR = dz._1 | |
870 | + | let bB = dz._2 | |
871 | + | let dA = if ((du == bk)) | |
872 | + | then aM(dt, dy, (bj - dt), (bi - ds), aR, bB) | |
873 | + | else aM(ds, dy, (bi - ds), (bj - dt), aR, bB) | |
874 | + | let aT = dA._1 | |
875 | + | let aU = dA._2 | |
876 | + | let aV = dA._3 | |
877 | + | let dB = if ((du == bk)) | |
871 | 878 | then { | |
872 | - | let | |
873 | - | then invoke( | |
879 | + | let dC = if (contains(ae, bv)) | |
880 | + | then invoke(ax.caller, "stakeUnstake", [false, ((ds + aU) + aV), bv], nil) | |
874 | 881 | else 0 | |
875 | - | if (( | |
876 | - | then $Tuple4(((( | |
882 | + | if ((dC == dC)) | |
883 | + | then $Tuple4((((bi - ds) - aU) - aV), bj, bk, [ScriptTransfer(bz, (ds + aU), bk)]) | |
877 | 884 | else throw("Strict value is not equal to itself.") | |
878 | 885 | } | |
879 | 886 | else { | |
880 | - | let | |
881 | - | then invoke( | |
887 | + | let dC = if (contains(ae, bw)) | |
888 | + | then invoke(ax.caller, "stakeUnstake", [false, ((dt + aU) + aV), bw], nil) | |
882 | 889 | else 0 | |
883 | - | if (( | |
884 | - | then $Tuple4( | |
890 | + | if ((dC == dC)) | |
891 | + | then $Tuple4(bi, (((bj - dt) - aU) - aV), bl, [ScriptTransfer(bz, (dt + aU), bl)]) | |
885 | 892 | else throw("Strict value is not equal to itself.") | |
886 | 893 | } | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | $Tuple2([ScriptTransfer( | |
894 | + | let cw = dB._1 | |
895 | + | let cx = dB._2 | |
896 | + | let dD = dB._3 | |
897 | + | let dE = dB._4 | |
898 | + | $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(Y, aV, dD)] ++ dE), nil)) | |
892 | 899 | } | |
893 | 900 | else throw("Strict value is not equal to itself.") | |
894 | 901 | } | |
902 | + | }))) | |
903 | + | ||
904 | + | ||
905 | + | ||
906 | + | @Callable(ax) | |
907 | + | func takeIntoAccountExtraFunds (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), { | |
908 | + | let dF = bu(ax.caller) | |
909 | + | let bv = dF._1 | |
910 | + | let bw = dF._2 | |
911 | + | let bk = dF._3 | |
912 | + | let bl = dF._4 | |
913 | + | let dG = if (if ((bk == ac)) | |
914 | + | then true | |
915 | + | else (bl == ac)) | |
916 | + | then invoke(ax.caller, "claimNetrinoRewards", nil, nil) | |
917 | + | else 0 | |
918 | + | if ((dG == dG)) | |
919 | + | then { | |
920 | + | let dH = bq(ax.caller, bk, bl) | |
921 | + | let bi = dH._1 | |
922 | + | let bj = dH._2 | |
923 | + | let bg = dH._3 | |
924 | + | let bh = dH._4 | |
925 | + | let dI = (bg - bi) | |
926 | + | let dJ = (bh - bj) | |
927 | + | if ((size(bD) != 0)) | |
928 | + | then throw("Wrong args size") | |
929 | + | else if ((Y != ax.originCaller)) | |
930 | + | then throw("Only the wallet can call this function") | |
931 | + | else if (if ((0 > dI)) | |
932 | + | then true | |
933 | + | else (0 > dJ)) | |
934 | + | then aE("Enroll amount negative") | |
935 | + | else if (if ((dI == 0)) | |
936 | + | then (dJ == 0) | |
937 | + | else false) | |
938 | + | then throw("No money to take") | |
939 | + | else { | |
940 | + | let ce = if (if (contains(ae, bv)) | |
941 | + | then (dI > 0) | |
942 | + | else false) | |
943 | + | then invoke(ax.caller, "stakeUnstake", [true, dI, bv], nil) | |
944 | + | else 0 | |
945 | + | if ((ce == ce)) | |
946 | + | then { | |
947 | + | let cf = if (if (contains(ae, bw)) | |
948 | + | then (dJ > 0) | |
949 | + | else false) | |
950 | + | then invoke(ax.caller, "stakeUnstake", [true, dJ, bw], nil) | |
951 | + | else 0 | |
952 | + | if ((cf == cf)) | |
953 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(g, (bi + dI)), IntegerEntry(h, (bj + dJ))], nil)) | |
954 | + | else throw("Strict value is not equal to itself.") | |
955 | + | } | |
956 | + | else throw("Strict value is not equal to itself.") | |
957 | + | } | |
958 | + | } | |
959 | + | else throw("Strict value is not equal to itself.") | |
895 | 960 | })) | |
896 | 961 | ||
897 | 962 | ||
898 | - | ||
899 | - | @Callable(aw) | |
900 | - | func takeIntoAccountExtraFunds (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), { | |
901 | - | let dD = bs(aw.caller) | |
902 | - | let bt = dD._1 | |
903 | - | let bu = dD._2 | |
904 | - | let bj = dD._3 | |
905 | - | let bk = dD._4 | |
906 | - | let dE = bo(aw.caller, bj, bk) | |
907 | - | let bh = dE._1 | |
908 | - | let bi = dE._2 | |
909 | - | let bf = dE._3 | |
910 | - | let bg = dE._4 | |
911 | - | let dF = (bf - bh) | |
912 | - | let dG = (bg - bi) | |
913 | - | if ((size(bB) != 0)) | |
914 | - | then throw("Wrong args size") | |
915 | - | else if ((X != aw.originCaller)) | |
916 | - | then throw("Only the wallet can call this function") | |
917 | - | else if (if ((0 > dF)) | |
918 | - | then true | |
919 | - | else (0 > dG)) | |
920 | - | then aD("Enroll amount negative") | |
921 | - | else if (if ((dF == 0)) | |
922 | - | then (dG == 0) | |
923 | - | else false) | |
924 | - | then throw("No money to take") | |
925 | - | else { | |
926 | - | let cc = if (if (contains(ad, bt)) | |
927 | - | then (dF > 0) | |
928 | - | else false) | |
929 | - | then invoke(aw.caller, "stakeUnstake", [true, dF, bt], nil) | |
930 | - | else 0 | |
931 | - | if ((cc == cc)) | |
932 | - | then { | |
933 | - | let cd = if (if (contains(ad, bu)) | |
934 | - | then (dG > 0) | |
935 | - | else false) | |
936 | - | then invoke(aw.caller, "stakeUnstake", [true, dG, bu], nil) | |
937 | - | else 0 | |
938 | - | if ((cd == cd)) | |
939 | - | then $Tuple2(nil, $Tuple2([IntegerEntry(f, (bh + dF)), IntegerEntry(g, (bi + dG))], nil)) | |
940 | - | else throw("Strict value is not equal to itself.") | |
941 | - | } | |
942 | - | else throw("Strict value is not equal to itself.") | |
943 | - | } | |
944 | - | })) | |
945 | - | ||
946 | - | ||
947 | - | @Verifier(dH) | |
948 | - | func dI () = { | |
949 | - | let dJ = { | |
950 | - | let dK = if (sigVerify(dH.bodyBytes, dH.proofs[0], T)) | |
963 | + | @Verifier(dK) | |
964 | + | func dL () = { | |
965 | + | let dM = { | |
966 | + | let dN = if (sigVerify(dK.bodyBytes, dK.proofs[0], U)) | |
951 | 967 | then 1 | |
952 | 968 | else 0 | |
953 | - | let | |
969 | + | let dO = if (sigVerify(dK.bodyBytes, dK.proofs[1], V)) | |
954 | 970 | then 1 | |
955 | 971 | else 0 | |
956 | - | let | |
972 | + | let dP = if (sigVerify(dK.bodyBytes, dK.proofs[2], W)) | |
957 | 973 | then 1 | |
958 | 974 | else 0 | |
959 | - | ((( | |
975 | + | (((dN + dO) + dP) >= 2) | |
960 | 976 | } | |
961 | - | | |
977 | + | dM | |
962 | 978 | } | |
963 | 979 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "deprecated_" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "A_asset_id" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "B_asset_id" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "A_asset_balance" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "B_asset_balance" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "A_asset_init" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "B_asset_init" | |
23 | 23 | ||
24 | - | let k = "share_asset_ | |
24 | + | let k = "share_asset_id" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "share_asset_supply" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "commission" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "shutdown_cause" | |
31 | 31 | ||
32 | - | let o = "first_harvest | |
32 | + | let o = "first_harvest" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "first_harvest_height" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | - | let r = "period | |
38 | + | let r = "base_period" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "period_length" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = "staking_ | |
44 | + | let u = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "staking_eurn_address" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "leasing_amount" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "usdn_asset_id" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "eurn_asset_id" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "staking_assets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "active_all_contracts" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "discounts" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "discount_values" | |
61 | 61 | ||
62 | - | let D = "_ | |
62 | + | let D = "_GSwop_amount" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "_SWOP_amount" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "pool_" | |
67 | 67 | ||
68 | - | let G = "admin_pub_ | |
68 | + | let G = "admin_pub_1" | |
69 | 69 | ||
70 | - | let H = "admin_pub_ | |
70 | + | let H = "admin_pub_2" | |
71 | 71 | ||
72 | - | let I = "admin_ | |
72 | + | let I = "admin_pub_3" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "admin_invoke_pub" | |
75 | 75 | ||
76 | - | let K = " | |
76 | + | let K = "money_box_address" | |
77 | 77 | ||
78 | - | let L = " | |
78 | + | let L = "voting_address" | |
79 | 79 | ||
80 | - | let M = " | |
80 | + | let M = "governance_address" | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = "farming_address" | |
83 | 83 | ||
84 | - | func O (P) = { | |
85 | - | let Q = getString(N, P) | |
86 | - | if ($isInstanceOf(Q, "String")) | |
84 | + | let O = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
85 | + | ||
86 | + | func P (Q) = { | |
87 | + | let R = getString(O, Q) | |
88 | + | if ($isInstanceOf(R, "String")) | |
87 | 89 | then { | |
88 | - | let | |
89 | - | fromBase58String( | |
90 | + | let S = R | |
91 | + | fromBase58String(S) | |
90 | 92 | } | |
91 | 93 | else { | |
92 | - | let | |
93 | - | throw(( | |
94 | + | let T = R | |
95 | + | throw((Q + "is empty")) | |
94 | 96 | } | |
95 | 97 | } | |
96 | 98 | ||
97 | 99 | ||
98 | - | let | |
100 | + | let U = P(G) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = P(H) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = P(I) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = P(J) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(P(K)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = Address(P(L)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = Address(P(M)) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = Address(P(N)) | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = P(x) | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = P(y) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = getStringValue(O, z) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = Address(P(u)) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = Address(P(v)) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = valueOrErrorMessage(getInteger(Z, r), "Empty kBasePeriod") | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = valueOrErrorMessage(getInteger(Z, t), "Empty kStartHeight") | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = valueOrErrorMessage(getInteger(Z, s), "Empty kPeriodLength") | |
129 | 131 | ||
130 | - | let | |
132 | + | let ak = ((ah + ((height - ai) / aj)) + 3) | |
131 | 133 | ||
132 | - | let | |
134 | + | let al = getBooleanValue(O, A) | |
133 | 135 | ||
134 | - | let | |
136 | + | let am = 1000000 | |
135 | 137 | ||
136 | - | let | |
138 | + | let an = 100000000 | |
137 | 139 | ||
138 | - | let | |
140 | + | let ao = toBigInt(10000000000000000) | |
139 | 141 | ||
140 | - | func | |
141 | - | let | |
142 | - | if ($isInstanceOf( | |
142 | + | func ap (aq,ar) = { | |
143 | + | let R = aq | |
144 | + | if ($isInstanceOf(R, "ByteVector")) | |
143 | 145 | then { | |
144 | - | let | |
145 | - | assetBalance( | |
146 | + | let as = R | |
147 | + | assetBalance(ar, as) | |
146 | 148 | } | |
147 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(R, "Unit")) | |
148 | 150 | then { | |
149 | - | let | |
150 | - | wavesBalance( | |
151 | + | let at = R | |
152 | + | wavesBalance(ar).available | |
151 | 153 | } | |
152 | 154 | else throw("Match error") | |
153 | 155 | } | |
154 | 156 | ||
155 | 157 | ||
156 | - | func | |
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
158 | + | func au (aq,ar) = { | |
159 | + | let av = { | |
160 | + | let R = aq | |
161 | + | if ($isInstanceOf(R, "ByteVector")) | |
160 | 162 | then { | |
161 | - | let | |
162 | - | if (( | |
163 | - | then getInteger( | |
164 | - | else if (( | |
165 | - | then getInteger( | |
163 | + | let aw = R | |
164 | + | if ((aw == ac)) | |
165 | + | then getInteger(af, ((("rpd_balance_" + toBase58String(aw)) + "_") + toString(ar))) | |
166 | + | else if ((aw == ad)) | |
167 | + | then getInteger(ag, ((("%s%s%s__stakingBalance__" + toBase58String(aw)) + "__") + toString(ar))) | |
166 | 168 | else 0 | |
167 | 169 | } | |
168 | - | else if ($isInstanceOf( | |
169 | - | then valueOrElse(getInteger( | |
170 | + | else if ($isInstanceOf(R, "Unit")) | |
171 | + | then valueOrElse(getInteger(ar, w), 0) | |
170 | 172 | else throw("Match error") | |
171 | 173 | } | |
172 | - | let | |
173 | - | if ($isInstanceOf( | |
174 | + | let R = av | |
175 | + | if ($isInstanceOf(R, "Int")) | |
174 | 176 | then { | |
175 | - | let | |
176 | - | | |
177 | + | let ax = R | |
178 | + | ax | |
177 | 179 | } | |
178 | 180 | else 0 | |
179 | 181 | } | |
180 | 182 | ||
181 | 183 | ||
182 | - | func | |
183 | - | let | |
184 | - | if (if ($isInstanceOf( | |
184 | + | func ay (aq) = { | |
185 | + | let R = aq | |
186 | + | if (if ($isInstanceOf(R, "String")) | |
185 | 187 | then true | |
186 | - | else $isInstanceOf( | |
188 | + | else $isInstanceOf(R, "ByteVector")) | |
187 | 189 | then { | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | if ($isInstanceOf( | |
190 | + | let as = R | |
191 | + | let az = { | |
192 | + | let aA = as | |
193 | + | if ($isInstanceOf(aA, "ByteVector")) | |
192 | 194 | then { | |
193 | - | let | |
194 | - | $Tuple2(toBase58String( | |
195 | + | let aw = aA | |
196 | + | $Tuple2(toBase58String(aw), aw) | |
195 | 197 | } | |
196 | - | else if ($isInstanceOf( | |
198 | + | else if ($isInstanceOf(aA, "String")) | |
197 | 199 | then { | |
198 | - | let | |
199 | - | $Tuple2( | |
200 | + | let aw = aA | |
201 | + | $Tuple2(aw, fromBase58String(aw)) | |
200 | 202 | } | |
201 | 203 | else throw("Match error") | |
202 | 204 | } | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | $Tuple3( | |
205 | + | let aB = az._1 | |
206 | + | let aC = az._2 | |
207 | + | let aD = valueOrErrorMessage(assetInfo(aC), (("Asset " + aB) + " doesn't exist")) | |
208 | + | $Tuple3(aB, aD.name, aD.decimals) | |
207 | 209 | } | |
208 | - | else if ($isInstanceOf( | |
210 | + | else if ($isInstanceOf(R, "Unit")) | |
209 | 211 | then { | |
210 | - | let | |
212 | + | let at = R | |
211 | 213 | $Tuple3("WAVES", "WAVES", 8) | |
212 | 214 | } | |
213 | 215 | else throw("Match error") | |
214 | 216 | } | |
215 | 217 | ||
216 | 218 | ||
217 | - | func | |
219 | + | func aE (aF) = [BooleanEntry(c, false), StringEntry(n, aF)] | |
218 | 220 | ||
219 | 221 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | if (if (( | |
226 | - | then (parseIntValue( | |
222 | + | func aG (aH) = { | |
223 | + | let aI = valueOrElse(getInteger(aa, (toString(aH) + E)), 0) | |
224 | + | let aJ = valueOrElse(getInteger(aa, (toString(aH) + D)), aI) | |
225 | + | let aK = split(getStringValue(O, C), ",") | |
226 | + | let aL = split(getStringValue(O, B), ",") | |
227 | + | if (if ((aJ >= parseIntValue(aK[0]))) | |
228 | + | then (parseIntValue(aK[1]) > aJ) | |
227 | 229 | else false) | |
228 | - | then ( | |
229 | - | else if (if (( | |
230 | - | then (parseIntValue( | |
230 | + | then (am - parseIntValue(aL[0])) | |
231 | + | else if (if ((aJ >= parseIntValue(aK[1]))) | |
232 | + | then (parseIntValue(aK[2]) > aJ) | |
231 | 233 | else false) | |
232 | - | then ( | |
233 | - | else if (if (( | |
234 | - | then (parseIntValue( | |
234 | + | then (am - parseIntValue(aL[1])) | |
235 | + | else if (if ((aJ >= parseIntValue(aK[2]))) | |
236 | + | then (parseIntValue(aK[3]) > aJ) | |
235 | 237 | else false) | |
236 | - | then ( | |
237 | - | else if (if (( | |
238 | - | then (parseIntValue( | |
238 | + | then (am - parseIntValue(aL[2])) | |
239 | + | else if (if ((aJ >= parseIntValue(aK[3]))) | |
240 | + | then (parseIntValue(aK[4]) > aJ) | |
239 | 241 | else false) | |
240 | - | then ( | |
241 | - | else if (( | |
242 | - | then ( | |
243 | - | else | |
242 | + | then (am - parseIntValue(aL[3])) | |
243 | + | else if ((aJ >= parseIntValue(aK[4]))) | |
244 | + | then (am - parseIntValue(aL[4])) | |
245 | + | else am | |
244 | 246 | } | |
245 | 247 | ||
246 | 248 | ||
247 | - | func | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
252 | - | then throw(((("Calculated amount to receive " + toString( | |
253 | - | else $Tuple3( | |
249 | + | func aM (aN,aO,aP,aQ,aR,aS) = { | |
250 | + | let aT = fraction(aQ, aN, (aN + aP)) | |
251 | + | let aU = fraction(aT, (am - aR), am) | |
252 | + | let aV = fraction(aT, aS, am) | |
253 | + | if ((aO > aU)) | |
254 | + | then throw(((("Calculated amount to receive " + toString(aU)) + " is less than specified minimum ") + toString(aO))) | |
255 | + | else $Tuple3(aT, aU, aV) | |
254 | 256 | } | |
255 | 257 | ||
256 | 258 | ||
257 | - | func | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | toInt(fraction((-(toBigInt( | |
259 | + | func aW (aN,aX,aR) = { | |
260 | + | let aY = (am - aR) | |
261 | + | let aZ = fraction(aR, 60, 100) | |
262 | + | let ba = (an + fraction((aY * aZ), an, (am * am))) | |
263 | + | let bb = ((((aX + fraction(aX, aY, am)) + fraction(aN, aY, am)) - aN) - fraction(aN, (aY * aZ), (am * am))) | |
264 | + | let bc = (-(toBigInt(aX)) * toBigInt(aN)) | |
265 | + | let bd = ((toBigInt(bb) * toBigInt(bb)) - fraction((toBigInt(4) * bc), toBigInt(ba), toBigInt(an))) | |
266 | + | toInt(fraction((-(toBigInt(bb)) + sqrtBigInt(bd, 0, 0, DOWN)), toBigInt(an), toBigInt((2 * ba)))) | |
265 | 267 | } | |
266 | 268 | ||
267 | 269 | ||
268 | - | func | |
270 | + | func be (aq) = if ((aq == base58'')) | |
269 | 271 | then unit | |
270 | - | else | |
272 | + | else aq | |
271 | 273 | ||
272 | 274 | ||
273 | - | func | |
275 | + | func bf (bg,bh,bi,bj,bk,bl) = aE(((((((((((((((("Suspicious state. Actual balances: " + toString(bg)) + " ") + bk) + ", ") + toString(bh)) + " ") + bl) + ". State: ") + toString(bi)) + " ") + bk) + ", ") + toString(bj)) + " ") + bl)) | |
274 | 276 | ||
275 | 277 | ||
276 | - | func | |
278 | + | func bm () = if (al) | |
277 | 279 | then unit | |
278 | 280 | else throw("DApp is inactive at this moment") | |
279 | 281 | ||
280 | 282 | ||
281 | - | func | |
283 | + | func bn (bo) = if (isDefined(getString(O, (F + bo)))) | |
282 | 284 | then unit | |
283 | 285 | else throw("DApp is not registered pool") | |
284 | 286 | ||
285 | 287 | ||
286 | - | func bo (aq,bj,bk) = { | |
287 | - | let bh = getIntegerValue(aq, f) | |
288 | - | let bi = getIntegerValue(aq, g) | |
289 | - | let bp = at(bj, aq) | |
290 | - | let bq = at(bk, aq) | |
291 | - | let bf = (ao(bj, aq) + bp) | |
292 | - | let bg = (ao(bk, aq) + bq) | |
293 | - | let br = getIntegerValue(aq, k) | |
294 | - | $Tuple5(bh, bi, bf, bg, br) | |
288 | + | func bp (bo) = if (!(valueOrElse(getBoolean(O, (d + bo)), false))) | |
289 | + | then unit | |
290 | + | else throw("Pool is deprecated. Only withdraw action allowed.") | |
291 | + | ||
292 | + | ||
293 | + | func bq (ar,bk,bl) = { | |
294 | + | let bi = getIntegerValue(ar, g) | |
295 | + | let bj = getIntegerValue(ar, h) | |
296 | + | let br = au(bk, ar) | |
297 | + | let bs = au(bl, ar) | |
298 | + | let bg = (ap(bk, ar) + br) | |
299 | + | let bh = (ap(bl, ar) + bs) | |
300 | + | let bt = getIntegerValue(ar, l) | |
301 | + | $Tuple5(bi, bj, bg, bh, bt) | |
295 | 302 | } | |
296 | 303 | ||
297 | 304 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
305 | + | func bu (ar) = { | |
306 | + | let bv = getStringValue(ar, e) | |
307 | + | let bw = getStringValue(ar, f) | |
308 | + | let bk = if ((bv == "WAVES")) | |
302 | 309 | then unit | |
303 | - | else fromBase58String( | |
304 | - | let | |
310 | + | else fromBase58String(bv) | |
311 | + | let bl = if ((bw == "WAVES")) | |
305 | 312 | then unit | |
306 | - | else fromBase58String( | |
307 | - | let | |
308 | - | $Tuple5( | |
313 | + | else fromBase58String(bw) | |
314 | + | let bx = fromBase58String(getStringValue(ar, k)) | |
315 | + | $Tuple5(bv, bw, bk, bl, bx) | |
309 | 316 | } | |
310 | 317 | ||
311 | 318 | ||
312 | - | func | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | $Tuple2( | |
319 | + | func by (ar,bz) = { | |
320 | + | let bA = aG(bz) | |
321 | + | let aR = fraction(getIntegerValue(ar, m), bA, am, CEILING) | |
322 | + | let bB = fraction(aR, 40, 100) | |
323 | + | $Tuple2(aR, bB) | |
317 | 324 | } | |
318 | 325 | ||
319 | 326 | ||
320 | - | @Callable( | |
321 | - | func init ( | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if (!(containsElement([ | |
327 | + | @Callable(ax) | |
328 | + | func init (bC,bD,bE,bF) = { | |
329 | + | let bz = Address(bC) | |
330 | + | let bG = $Tuple2(bE[0], be(bF[0])) | |
331 | + | let bH = bG._1 | |
332 | + | let bI = bG._2 | |
333 | + | let bJ = $Tuple2(bE[1], be(bF[1])) | |
334 | + | let bK = bJ._1 | |
335 | + | let bL = bJ._2 | |
336 | + | if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
330 | 337 | then throw("Only admin can call this function") | |
331 | - | else if ((size( | |
338 | + | else if ((size(bD) != 1)) | |
332 | 339 | then throw("Wrong args size") | |
333 | - | else if (isDefined(getBoolean( | |
340 | + | else if (isDefined(getBoolean(bz, c))) | |
334 | 341 | then throw("DApp is already active") | |
335 | - | else if (( | |
342 | + | else if ((bI == bL)) | |
336 | 343 | then throw("Assets must be different") | |
337 | 344 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | then invoke( | |
345 | + | let bM = ay(bI) | |
346 | + | let bN = bM._1 | |
347 | + | let bO = bM._2 | |
348 | + | let bP = bM._3 | |
349 | + | let bQ = ay(bL) | |
350 | + | let bR = bQ._1 | |
351 | + | let bS = bQ._2 | |
352 | + | let bT = bQ._3 | |
353 | + | let bU = (bD[0] == "true") | |
354 | + | let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7)) | |
355 | + | let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this)) | |
356 | + | let bX = ((bP + bT) / 2) | |
357 | + | let bY = pow(bH, bP, 5, 1, bP, DOWN) | |
358 | + | let bZ = pow(bK, bT, 5, 1, bT, DOWN) | |
359 | + | let ca = pow(10, 0, bX, 0, 0, DOWN) | |
360 | + | let cb = fraction(bY, bZ, ca) | |
361 | + | let cc = Issue(bV, bW, cb, bX, true) | |
362 | + | let cd = calculateAssetId(cc) | |
363 | + | let ce = if (contains(ae, bN)) | |
364 | + | then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil) | |
358 | 365 | else 0 | |
359 | - | if (( | |
366 | + | if ((ce == ce)) | |
360 | 367 | then { | |
361 | - | let | |
362 | - | then invoke( | |
368 | + | let cf = if (contains(ae, bR)) | |
369 | + | then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil) | |
363 | 370 | else 0 | |
364 | - | if (( | |
371 | + | if ((cf == cf)) | |
365 | 372 | then { | |
366 | - | let | |
367 | - | if ( | |
368 | - | then $Tuple2(nil, $Tuple2(( | |
369 | - | else $Tuple2(nil, $Tuple2( | |
373 | + | let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(g, bH), IntegerEntry(h, bK), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb), ScriptTransfer(bz, cb, cd)] | |
374 | + | if (bU) | |
375 | + | then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil)) | |
376 | + | else $Tuple2(nil, $Tuple2(cg, nil)) | |
370 | 377 | } | |
371 | 378 | else throw("Strict value is not equal to itself.") | |
372 | 379 | } | |
373 | 380 | else throw("Strict value is not equal to itself.") | |
374 | 381 | } | |
375 | 382 | } | |
376 | 383 | ||
377 | 384 | ||
378 | 385 | ||
379 | - | @Callable( | |
380 | - | func initWithInitRatio ( | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | if (!(containsElement([ | |
386 | + | @Callable(ax) | |
387 | + | func initWithInitRatio (bC,bD,bE,bF) = { | |
388 | + | let bz = Address(bC) | |
389 | + | let ch = $Tuple5(parseIntValue(bD[0]), parseIntValue(bD[1]), bD[2], bD[3], (bD[4] == "true")) | |
390 | + | let ci = ch._1 | |
391 | + | let cj = ch._2 | |
392 | + | let ck = ch._3 | |
393 | + | let cl = ch._4 | |
394 | + | let bU = ch._5 | |
395 | + | if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
389 | 396 | then throw("Only admin can call this function") | |
390 | - | else if ((size( | |
397 | + | else if ((size(bD) != 5)) | |
391 | 398 | then throw("Wrong args size") | |
392 | - | else if (isDefined(getBoolean( | |
399 | + | else if (isDefined(getBoolean(bz, c))) | |
393 | 400 | then throw("DApp is already active") | |
394 | - | else if (( | |
401 | + | else if ((ck == cl)) | |
395 | 402 | then throw("Assets must be different") | |
396 | 403 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | if ( | |
413 | - | then $Tuple2(nil, $Tuple2(( | |
414 | - | else $Tuple2(nil, $Tuple2( | |
404 | + | let cm = ay(ck) | |
405 | + | let bN = cm._1 | |
406 | + | let bO = cm._2 | |
407 | + | let bP = cm._3 | |
408 | + | let cn = ay(cl) | |
409 | + | let bR = cn._1 | |
410 | + | let bS = cn._2 | |
411 | + | let bT = cn._3 | |
412 | + | let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7)) | |
413 | + | let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this)) | |
414 | + | let bX = ((bP + bT) / 2) | |
415 | + | let cb = 0 | |
416 | + | let cc = Issue(bV, bW, cb, bX, true) | |
417 | + | let cd = calculateAssetId(cc) | |
418 | + | let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(i, ci), IntegerEntry(j, cj), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb)] | |
419 | + | if (bU) | |
420 | + | then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil)) | |
421 | + | else $Tuple2(nil, $Tuple2(cg, nil)) | |
415 | 422 | } | |
416 | 423 | } | |
417 | 424 | ||
418 | 425 | ||
419 | 426 | ||
420 | - | @Callable( | |
421 | - | func keepLimitForFirstHarvest ( | |
427 | + | @Callable(ax) | |
428 | + | func keepLimitForFirstHarvest (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), if (!(containsElement([U, V, W, X], ax.originCallerPublicKey))) | |
422 | 429 | then throw("Only admin can call this function") | |
423 | - | else if ((size( | |
430 | + | else if ((size(bD) != 1)) | |
424 | 431 | then throw("Wrong args size") | |
425 | 432 | else { | |
426 | - | let | |
427 | - | $Tuple2(nil, $Tuple2([IntegerEntry( | |
433 | + | let co = parseIntValue(bD[0]) | |
434 | + | $Tuple2(nil, $Tuple2([IntegerEntry(q, co)], nil)) | |
428 | 435 | })) | |
429 | 436 | ||
430 | 437 | ||
431 | 438 | ||
432 | - | @Callable( | |
433 | - | func exchange ( | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | if ((size( | |
439 | + | @Callable(ax) | |
440 | + | func exchange (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
441 | + | let bz = Address(bC) | |
442 | + | let cp = $Tuple2(bE[0], be(bF[0])) | |
443 | + | let aN = cp._1 | |
444 | + | let cq = cp._2 | |
445 | + | let aO = parseIntValue(bD[0]) | |
446 | + | let cr = bu(ax.caller) | |
447 | + | let bv = cr._1 | |
448 | + | let bw = cr._2 | |
449 | + | let bk = cr._3 | |
450 | + | let bl = cr._4 | |
451 | + | let cs = bq(ax.caller, bk, bl) | |
452 | + | let bi = cs._1 | |
453 | + | let bj = cs._2 | |
454 | + | let bg = cs._3 | |
455 | + | let bh = cs._4 | |
456 | + | if ((size(bD) != 1)) | |
450 | 457 | then throw("Wrong args size") | |
451 | - | else if (if (( | |
458 | + | else if (if ((bi == 0)) | |
452 | 459 | then true | |
453 | - | else ( | |
460 | + | else (bj == 0)) | |
454 | 461 | then throw("Can't exchange with zero balance") | |
455 | - | else if ((0 >= | |
456 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
457 | - | else if ((size( | |
462 | + | else if ((0 >= aO)) | |
463 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(aO))) | |
464 | + | else if ((size(bE) != 1)) | |
458 | 465 | then throw("One attached payment expected") | |
459 | - | else if (!(containsElement([ | |
460 | - | then throw(((("Incorrect asset attached. Expected: " + | |
461 | - | else if (if (( | |
466 | + | else if (!(containsElement([bk, bl], cq))) | |
467 | + | then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw)) | |
468 | + | else if (if ((bi > bg)) | |
462 | 469 | then true | |
463 | - | else ( | |
464 | - | then $Tuple2(nil, ([ScriptTransfer( | |
470 | + | else (bj > bh)) | |
471 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
465 | 472 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | then | |
471 | - | else | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | then $Tuple3(( | |
477 | - | else $Tuple3((( | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then $Tuple2( | |
483 | - | else $Tuple2(( | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | then invoke( | |
473 | + | let ct = by(ax.caller, ax.originCaller) | |
474 | + | let aR = ct._1 | |
475 | + | let bB = ct._2 | |
476 | + | let cu = if ((cq == bk)) | |
477 | + | then aM(aN, aO, bi, bj, aR, bB) | |
478 | + | else aM(aN, aO, bj, bi, aR, bB) | |
479 | + | let aT = cu._1 | |
480 | + | let aU = cu._2 | |
481 | + | let aV = cu._3 | |
482 | + | let cv = if ((cq == bk)) | |
483 | + | then $Tuple3((bi + aN), ((bj - aU) - aV), bl) | |
484 | + | else $Tuple3(((bi - aU) - aV), (bj + aN), bk) | |
485 | + | let cw = cv._1 | |
486 | + | let cx = cv._2 | |
487 | + | let cy = cv._3 | |
488 | + | let cz = if ((cq == bk)) | |
489 | + | then $Tuple2(aN, (aU + aV)) | |
490 | + | else $Tuple2((aU + aV), aN) | |
491 | + | let cA = cz._1 | |
492 | + | let cB = cz._2 | |
493 | + | let ce = if (contains(ae, bv)) | |
494 | + | then invoke(ax.caller, "stakeUnstake", [(cq == bk), cA, bv], nil) | |
488 | 495 | else 0 | |
489 | - | if (( | |
496 | + | if ((ce == ce)) | |
490 | 497 | then { | |
491 | - | let | |
492 | - | then invoke( | |
498 | + | let cf = if (contains(ae, bw)) | |
499 | + | then invoke(ax.caller, "stakeUnstake", [(cq == bl), cB, bw], nil) | |
493 | 500 | else 0 | |
494 | - | if (( | |
495 | - | then $Tuple2(nil, $Tuple2([IntegerEntry( | |
501 | + | if ((cf == cf)) | |
502 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(g, cw), IntegerEntry(h, cx), ScriptTransfer(bz, aU, cy), ScriptTransfer(Y, aV, cy)], [aU, cy])) | |
496 | 503 | else throw("Strict value is not equal to itself.") | |
497 | 504 | } | |
498 | 505 | else throw("Strict value is not equal to itself.") | |
499 | 506 | } | |
500 | - | })) | |
507 | + | }))) | |
501 | 508 | ||
502 | 509 | ||
503 | 510 | ||
504 | - | @Callable( | |
505 | - | func replenishWithTwoTokens ( | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | if ((size( | |
511 | + | @Callable(ax) | |
512 | + | func replenishWithTwoTokens (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
513 | + | let bz = Address(bC) | |
514 | + | let bI = be(bF[0]) | |
515 | + | let bL = be(bF[1]) | |
516 | + | let cC = (bD[0] == "true") | |
517 | + | let cD = parseIntValue(bD[1]) | |
518 | + | let cE = bu(ax.caller) | |
519 | + | let bv = cE._1 | |
520 | + | let bw = cE._2 | |
521 | + | let bk = cE._3 | |
522 | + | let bl = cE._4 | |
523 | + | let bx = cE._5 | |
524 | + | let cF = bq(ax.caller, bk, bl) | |
525 | + | let bi = cF._1 | |
526 | + | let bj = cF._2 | |
527 | + | let bg = cF._3 | |
528 | + | let bh = cF._4 | |
529 | + | let cG = cF._5 | |
530 | + | if ((size(bD) != 2)) | |
524 | 531 | then throw("Wrong args size") | |
525 | - | else if (if ((size( | |
526 | - | then (size( | |
532 | + | else if (if ((size(bE) != 2)) | |
533 | + | then (size(bE) != 3) | |
527 | 534 | else false) | |
528 | 535 | then throw("Two or three payments expected") | |
529 | - | else if (if (( | |
536 | + | else if (if ((bI != bk)) | |
530 | 537 | then true | |
531 | - | else ( | |
532 | - | then throw(((("Incorrect assets attached. Expected: " + | |
533 | - | else if (if (( | |
538 | + | else (bL != bl)) | |
539 | + | then throw(((("Incorrect assets attached. Expected: " + bv) + " and ") + bw)) | |
540 | + | else if (if ((bi > bg)) | |
534 | 541 | then true | |
535 | - | else ( | |
536 | - | then $Tuple2(nil, ([ScriptTransfer( | |
537 | - | then [AttachedPayment(if (( | |
542 | + | else (bj > bh)) | |
543 | + | then $Tuple2(nil, ([ScriptTransfer(bz, bE[0], bI), ScriptTransfer(bz, bE[1], bL)] ++ (if ((size(bE) == 3)) | |
544 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
538 | 545 | then unit | |
539 | - | else | |
540 | - | else (nil ++ | |
546 | + | else bF[2], bE[2])] | |
547 | + | else (nil ++ bf(bg, bh, bi, bj, bv, bw))))) | |
541 | 548 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | then $Tuple5( | |
549 | + | let cH = ay(bI) | |
550 | + | let bN = cH._1 | |
551 | + | let bO = cH._2 | |
552 | + | let bP = cH._3 | |
553 | + | let cI = ay(bL) | |
554 | + | let bR = cI._1 | |
555 | + | let bS = cI._2 | |
556 | + | let bT = cI._3 | |
557 | + | let cJ = ((bi + bj) == 0) | |
558 | + | let cK = if (cJ) | |
559 | + | then $Tuple5(bE[0], bE[1], 0, bI, toBigInt(1)) | |
553 | 560 | else { | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
561 | + | let cL = fraction(ao, toBigInt(bE[0]), toBigInt(bi)) | |
562 | + | let cM = fraction(ao, toBigInt(bE[1]), toBigInt(bj)) | |
563 | + | if ((cM > cL)) | |
557 | 564 | then { | |
558 | - | let | |
559 | - | $Tuple5( | |
565 | + | let cN = fraction(bE[0], bj, bi) | |
566 | + | $Tuple5(bE[0], cN, (bE[1] - cN), bL, cL) | |
560 | 567 | } | |
561 | 568 | else { | |
562 | - | let | |
563 | - | $Tuple5( | |
569 | + | let cN = fraction(bE[1], bi, bj) | |
570 | + | $Tuple5(cN, bE[1], (bE[0] - cN), bI, cM) | |
564 | 571 | } | |
565 | 572 | } | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
573 | + | let bH = cK._1 | |
574 | + | let bK = cK._2 | |
575 | + | let cO = cK._3 | |
576 | + | let cP = cK._4 | |
577 | + | let cQ = cK._5 | |
578 | + | let cR = if (cJ) | |
572 | 579 | then { | |
573 | - | let | |
574 | - | fraction(pow( | |
580 | + | let bX = ((bP + bT) / 2) | |
581 | + | fraction(pow(bH, bP, 5, 1, bP, DOWN), pow(bK, bT, 5, 1, bT, DOWN), pow(10, 0, bX, 0, 0, DOWN)) | |
575 | 582 | } | |
576 | - | else toInt(fraction( | |
577 | - | if (( | |
583 | + | else toInt(fraction(cQ, toBigInt(cG), ao)) | |
584 | + | if ((cR == 0)) | |
578 | 585 | then throw("Too small amount to replenish") | |
579 | - | else if ((0 > | |
586 | + | else if ((0 > cO)) | |
580 | 587 | then throw("Change < 0") | |
581 | 588 | else { | |
582 | - | let | |
583 | - | then invoke( | |
589 | + | let ce = if (contains(ae, bN)) | |
590 | + | then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil) | |
584 | 591 | else 0 | |
585 | - | if (( | |
592 | + | if ((ce == ce)) | |
586 | 593 | then { | |
587 | - | let | |
588 | - | then invoke( | |
594 | + | let cf = if (contains(ae, bR)) | |
595 | + | then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil) | |
589 | 596 | else 0 | |
590 | - | if (( | |
597 | + | if ((cf == cf)) | |
591 | 598 | then { | |
592 | - | let | |
599 | + | let cS = if (cC) | |
593 | 600 | then { | |
594 | - | let | |
595 | - | then [AttachedPayment(if (( | |
601 | + | let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 3)) | |
602 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
596 | 603 | then unit | |
597 | - | else | |
604 | + | else bF[2], bE[2])] | |
598 | 605 | else nil)) | |
599 | - | let | |
600 | - | if (( | |
606 | + | let cU = invoke(ax.caller, "reissueShareToken", [cR], nil) | |
607 | + | if ((cU == cU)) | |
601 | 608 | then { | |
602 | - | let | |
603 | - | if (( | |
609 | + | let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT) | |
610 | + | if ((cV == cV)) | |
604 | 611 | then nil | |
605 | 612 | else throw("Strict value is not equal to itself.") | |
606 | 613 | } | |
607 | 614 | else throw("Strict value is not equal to itself.") | |
608 | 615 | } | |
609 | - | else [Reissue( | |
610 | - | $Tuple2(nil, $Tuple2(([IntegerEntry( | |
616 | + | else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)] | |
617 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(g, (bi + bH)), IntegerEntry(h, (bj + bK)), IntegerEntry(l, (cG + cR)), ScriptTransfer(bz, cO, cP)] ++ cS), nil)) | |
611 | 618 | } | |
612 | 619 | else throw("Strict value is not equal to itself.") | |
613 | 620 | } | |
614 | 621 | else throw("Strict value is not equal to itself.") | |
615 | 622 | } | |
616 | 623 | } | |
617 | - | })) | |
624 | + | }))) | |
618 | 625 | ||
619 | 626 | ||
620 | 627 | ||
621 | - | @Callable( | |
622 | - | func replenishWithOneToken ( | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | if ((size( | |
628 | + | @Callable(ax) | |
629 | + | func replenishWithOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
630 | + | let bz = Address(bC) | |
631 | + | let cq = be(bF[0]) | |
632 | + | let aN = bE[0] | |
633 | + | let cW = parseIntValue(bD[0]) | |
634 | + | let cC = (bD[1] == "true") | |
635 | + | let cD = parseIntValue(bD[2]) | |
636 | + | let cX = bu(ax.caller) | |
637 | + | let bv = cX._1 | |
638 | + | let bw = cX._2 | |
639 | + | let bk = cX._3 | |
640 | + | let bl = cX._4 | |
641 | + | let bx = cX._5 | |
642 | + | let cY = bq(ax.caller, bk, bl) | |
643 | + | let bi = cY._1 | |
644 | + | let bj = cY._2 | |
645 | + | let bg = cY._3 | |
646 | + | let bh = cY._4 | |
647 | + | let cG = cY._5 | |
648 | + | let cJ = ((bi + bj) == 0) | |
649 | + | if ((size(bD) != 3)) | |
643 | 650 | then throw("Wrong args size") | |
644 | - | else if (if ((size( | |
645 | - | then (size( | |
651 | + | else if (if ((size(bE) != 1)) | |
652 | + | then (size(bE) != 2) | |
646 | 653 | else false) | |
647 | 654 | then throw("Two or one attached assets expected") | |
648 | - | else if (if (( | |
649 | - | then ( | |
655 | + | else if (if ((cq != bk)) | |
656 | + | then (cq != bl) | |
650 | 657 | else false) | |
651 | - | then throw(((("Incorrect asset attached. Expected: " + | |
652 | - | else if ( | |
658 | + | then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw)) | |
659 | + | else if (cJ) | |
653 | 660 | then throw("For initial exchanger you need to use two tokens") | |
654 | - | else if (if (( | |
661 | + | else if (if ((bi > bg)) | |
655 | 662 | then true | |
656 | - | else ( | |
657 | - | then $Tuple2(nil, ([ScriptTransfer( | |
658 | - | then [AttachedPayment(if (( | |
663 | + | else (bj > bh)) | |
664 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ (if ((size(bE) == 2)) | |
665 | + | then [AttachedPayment(if ((bF[2] == base58'')) | |
659 | 666 | then unit | |
660 | - | else | |
661 | - | else (nil ++ | |
667 | + | else bF[2], bE[2])] | |
668 | + | else (nil ++ bf(bg, bh, bi, bj, bv, bw))))) | |
662 | 669 | else { | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
670 | + | let cZ = by(ax.caller, ax.originCaller) | |
671 | + | let aR = cZ._1 | |
672 | + | let bB = cZ._2 | |
673 | + | let da = if ((cq == bk)) | |
667 | 674 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | $Tuple7( | |
675 | + | let db = aW(aN, bi, aR) | |
676 | + | let dc = aM(db, cW, bi, bj, aR, bB) | |
677 | + | let aT = dc._1 | |
678 | + | let aU = dc._2 | |
679 | + | let aV = dc._3 | |
680 | + | let dd = (bi + db) | |
681 | + | let de = ((bj + aT) - aV) | |
682 | + | let cw = (bi + aN) | |
683 | + | let cx = (bj - aV) | |
684 | + | let cL = fraction(toBigInt((aN - db)), ao, toBigInt(dd)) | |
685 | + | let cM = fraction(toBigInt(aU), ao, toBigInt(de)) | |
686 | + | let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao)) | |
687 | + | $Tuple7(cw, cx, cR, aV, bl, bw, bv) | |
681 | 688 | } | |
682 | 689 | else { | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple7( | |
690 | + | let db = aW(aN, bj, aR) | |
691 | + | let df = aM(db, cW, bj, bi, aR, bB) | |
692 | + | let aT = df._1 | |
693 | + | let aU = df._2 | |
694 | + | let aV = df._3 | |
695 | + | let dd = ((bi + aT) - aV) | |
696 | + | let de = (bj + db) | |
697 | + | let cw = (bi - aV) | |
698 | + | let cx = (bj + aN) | |
699 | + | let cL = fraction(toBigInt(aU), ao, toBigInt(dd)) | |
700 | + | let cM = fraction(toBigInt((aN - db)), ao, toBigInt(de)) | |
701 | + | let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao)) | |
702 | + | $Tuple7(cw, cx, cR, aV, bk, bv, bw) | |
696 | 703 | } | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | if (( | |
704 | + | let cw = da._1 | |
705 | + | let cx = da._2 | |
706 | + | let cR = da._3 | |
707 | + | let dg = da._4 | |
708 | + | let dh = da._5 | |
709 | + | let di = da._6 | |
710 | + | let dj = da._7 | |
711 | + | if ((cR == 0)) | |
705 | 712 | then throw("Too small amount to replenish") | |
706 | 713 | else { | |
707 | - | let | |
708 | - | then invoke( | |
714 | + | let ce = if (contains(ae, dj)) | |
715 | + | then invoke(ax.caller, "stakeUnstake", [true, aN, dj], nil) | |
709 | 716 | else 0 | |
710 | - | if (( | |
717 | + | if ((ce == ce)) | |
711 | 718 | then { | |
712 | - | let | |
713 | - | then invoke( | |
719 | + | let cf = if (contains(ae, di)) | |
720 | + | then invoke(ax.caller, "stakeUnstake", [false, dg, di], nil) | |
714 | 721 | else 0 | |
715 | - | if (( | |
722 | + | if ((cf == cf)) | |
716 | 723 | then { | |
717 | - | let | |
724 | + | let cS = if (cC) | |
718 | 725 | then { | |
719 | - | let | |
720 | - | then [AttachedPayment(if (( | |
726 | + | let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 2)) | |
727 | + | then [AttachedPayment(if ((bF[1] == base58'')) | |
721 | 728 | then unit | |
722 | - | else | |
729 | + | else bF[1], bE[1])] | |
723 | 730 | else nil)) | |
724 | - | let | |
725 | - | if (( | |
731 | + | let cU = invoke(ax.caller, "reissueShareToken", [cR], nil) | |
732 | + | if ((cU == cU)) | |
726 | 733 | then { | |
727 | - | let | |
728 | - | if (( | |
734 | + | let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT) | |
735 | + | if ((cV == cV)) | |
729 | 736 | then nil | |
730 | 737 | else throw("Strict value is not equal to itself.") | |
731 | 738 | } | |
732 | 739 | else throw("Strict value is not equal to itself.") | |
733 | 740 | } | |
734 | - | else [Reissue( | |
735 | - | $Tuple2(nil, $Tuple2(([IntegerEntry( | |
741 | + | else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)] | |
742 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG + cR)), ScriptTransfer(Y, dg, dh)] ++ cS), nil)) | |
736 | 743 | } | |
737 | 744 | else throw("Strict value is not equal to itself.") | |
738 | 745 | } | |
739 | 746 | else throw("Strict value is not equal to itself.") | |
740 | 747 | } | |
741 | 748 | } | |
742 | - | })) | |
749 | + | }))) | |
743 | 750 | ||
744 | 751 | ||
745 | 752 | ||
746 | - | @Callable( | |
747 | - | func withdraw ( | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
753 | + | @Callable(ax) | |
754 | + | func withdraw (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), { | |
755 | + | let dk = lastBlock.timestamp | |
756 | + | let bz = Address(bC) | |
757 | + | let dl = bu(ax.caller) | |
758 | + | let bv = dl._1 | |
759 | + | let bw = dl._2 | |
760 | + | let bk = dl._3 | |
761 | + | let bl = dl._4 | |
762 | + | let bx = dl._5 | |
763 | + | let dm = bq(ax.caller, bk, bl) | |
764 | + | let bi = dm._1 | |
765 | + | let bj = dm._2 | |
766 | + | let bg = dm._3 | |
767 | + | let bh = dm._4 | |
768 | + | let cG = dm._5 | |
769 | + | let dn = if ((size(bE) == 1)) | |
763 | 770 | then { | |
764 | - | let | |
765 | - | if (( | |
766 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
767 | - | else $Tuple2( | |
771 | + | let do = be(bF[0]) | |
772 | + | if ((do != bx)) | |
773 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
774 | + | else $Tuple2(bE[0], do) | |
768 | 775 | } | |
769 | - | else $Tuple2(0, | |
770 | - | let | |
771 | - | let | |
772 | - | if ((size( | |
776 | + | else $Tuple2(0, bx) | |
777 | + | let aN = dn._1 | |
778 | + | let cq = dn._2 | |
779 | + | if ((size(bD) != 1)) | |
773 | 780 | then throw("Wrong args size") | |
774 | - | else if ((size( | |
781 | + | else if ((size(bE) > 1)) | |
775 | 782 | then throw("One attached payment expected") | |
776 | - | else if (if (( | |
783 | + | else if (if ((bi > bg)) | |
777 | 784 | then true | |
778 | - | else ( | |
779 | - | then $Tuple2(nil, ([ScriptTransfer( | |
785 | + | else (bj > bh)) | |
786 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
780 | 787 | else { | |
781 | - | let | |
782 | - | let | |
783 | - | then invoke( | |
788 | + | let dp = parseIntValue(valueOrElse(bD[0], "0")) | |
789 | + | let dq = if ((dp > 0)) | |
790 | + | then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil) | |
784 | 791 | else 0 | |
785 | - | if (( | |
792 | + | if ((dq == dq)) | |
786 | 793 | then { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | then invoke( | |
794 | + | let dr = (aN + dp) | |
795 | + | let ds = fraction(dr, bi, cG) | |
796 | + | let dt = fraction(dr, bj, cG) | |
797 | + | let ce = if (contains(ae, bv)) | |
798 | + | then invoke(ax.caller, "stakeUnstake", [false, ds, bv], nil) | |
792 | 799 | else 0 | |
793 | - | if (( | |
800 | + | if ((ce == ce)) | |
794 | 801 | then { | |
795 | - | let | |
796 | - | then invoke( | |
802 | + | let cf = if (contains(ae, bw)) | |
803 | + | then invoke(ax.caller, "stakeUnstake", [false, dt, bw], nil) | |
797 | 804 | else 0 | |
798 | - | if (( | |
799 | - | then $Tuple2([ScriptTransfer( | |
805 | + | if ((cf == cf)) | |
806 | + | then $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2([IntegerEntry(g, (bi - ds)), IntegerEntry(h, (bj - dt)), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(bz, ds, bk), ScriptTransfer(bz, dt, bl)], nil)) | |
800 | 807 | else throw("Strict value is not equal to itself.") | |
801 | 808 | } | |
802 | 809 | else throw("Strict value is not equal to itself.") | |
803 | 810 | } | |
804 | 811 | else throw("Strict value is not equal to itself.") | |
805 | 812 | } | |
806 | 813 | })) | |
807 | 814 | ||
808 | 815 | ||
809 | 816 | ||
810 | - | @Callable( | |
811 | - | func withdrawOneToken ( | |
812 | - | let | |
813 | - | let | |
817 | + | @Callable(ax) | |
818 | + | func withdrawOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), { | |
819 | + | let bz = Address(bC) | |
820 | + | let du = if ((bD[0] == "")) | |
814 | 821 | then unit | |
815 | - | else fromBase58String( | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
822 | + | else fromBase58String(bD[0]) | |
823 | + | let dv = bu(ax.caller) | |
824 | + | let bv = dv._1 | |
825 | + | let bw = dv._2 | |
826 | + | let bk = dv._3 | |
827 | + | let bl = dv._4 | |
828 | + | let bx = dv._5 | |
829 | + | let dw = bq(ax.caller, bk, bl) | |
830 | + | let bi = dw._1 | |
831 | + | let bj = dw._2 | |
832 | + | let bg = dw._3 | |
833 | + | let bh = dw._4 | |
834 | + | let cG = dw._5 | |
835 | + | let dx = if ((size(bE) == 1)) | |
829 | 836 | then { | |
830 | - | let | |
831 | - | if (( | |
832 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
833 | - | else $Tuple2( | |
837 | + | let do = be(bF[0]) | |
838 | + | if ((do != bx)) | |
839 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
840 | + | else $Tuple2(bE[0], do) | |
834 | 841 | } | |
835 | - | else $Tuple2(0, | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | if ((size( | |
842 | + | else $Tuple2(0, bx) | |
843 | + | let aN = dx._1 | |
844 | + | let cq = dx._2 | |
845 | + | let dy = parseIntValue(bD[1]) | |
846 | + | if ((size(bD) != 3)) | |
840 | 847 | then throw("Wrong args size") | |
841 | - | else if ((size( | |
848 | + | else if ((size(bE) > 1)) | |
842 | 849 | then throw("One attached payment expected") | |
843 | - | else if (( | |
844 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
845 | - | else if (!(containsElement([ | |
850 | + | else if ((cq != bx)) | |
851 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(bx))) | |
852 | + | else if (!(containsElement([bk, bl], du))) | |
846 | 853 | then throw("Incorrect withdraw asset.") | |
847 | - | else if (if (( | |
854 | + | else if (if ((bi > bg)) | |
848 | 855 | then true | |
849 | - | else ( | |
850 | - | then $Tuple2(nil, ([ScriptTransfer( | |
856 | + | else (bj > bh)) | |
857 | + | then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw))) | |
851 | 858 | else { | |
852 | - | let | |
853 | - | let | |
854 | - | then invoke( | |
859 | + | let dp = parseIntValue(valueOrElse(bD[2], "0")) | |
860 | + | let dq = if ((dp > 0)) | |
861 | + | then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil) | |
855 | 862 | else 0 | |
856 | - | if (( | |
863 | + | if ((dq == dq)) | |
857 | 864 | then { | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | then | |
866 | - | else | |
867 | - | let | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
865 | + | let dr = (aN + dp) | |
866 | + | let ds = fraction(dr, bi, cG) | |
867 | + | let dt = fraction(dr, bj, cG) | |
868 | + | let dz = by(ax.caller, ax.originCaller) | |
869 | + | let aR = dz._1 | |
870 | + | let bB = dz._2 | |
871 | + | let dA = if ((du == bk)) | |
872 | + | then aM(dt, dy, (bj - dt), (bi - ds), aR, bB) | |
873 | + | else aM(ds, dy, (bi - ds), (bj - dt), aR, bB) | |
874 | + | let aT = dA._1 | |
875 | + | let aU = dA._2 | |
876 | + | let aV = dA._3 | |
877 | + | let dB = if ((du == bk)) | |
871 | 878 | then { | |
872 | - | let | |
873 | - | then invoke( | |
879 | + | let dC = if (contains(ae, bv)) | |
880 | + | then invoke(ax.caller, "stakeUnstake", [false, ((ds + aU) + aV), bv], nil) | |
874 | 881 | else 0 | |
875 | - | if (( | |
876 | - | then $Tuple4(((( | |
882 | + | if ((dC == dC)) | |
883 | + | then $Tuple4((((bi - ds) - aU) - aV), bj, bk, [ScriptTransfer(bz, (ds + aU), bk)]) | |
877 | 884 | else throw("Strict value is not equal to itself.") | |
878 | 885 | } | |
879 | 886 | else { | |
880 | - | let | |
881 | - | then invoke( | |
887 | + | let dC = if (contains(ae, bw)) | |
888 | + | then invoke(ax.caller, "stakeUnstake", [false, ((dt + aU) + aV), bw], nil) | |
882 | 889 | else 0 | |
883 | - | if (( | |
884 | - | then $Tuple4( | |
890 | + | if ((dC == dC)) | |
891 | + | then $Tuple4(bi, (((bj - dt) - aU) - aV), bl, [ScriptTransfer(bz, (dt + aU), bl)]) | |
885 | 892 | else throw("Strict value is not equal to itself.") | |
886 | 893 | } | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | $Tuple2([ScriptTransfer( | |
894 | + | let cw = dB._1 | |
895 | + | let cx = dB._2 | |
896 | + | let dD = dB._3 | |
897 | + | let dE = dB._4 | |
898 | + | $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(Y, aV, dD)] ++ dE), nil)) | |
892 | 899 | } | |
893 | 900 | else throw("Strict value is not equal to itself.") | |
894 | 901 | } | |
902 | + | }))) | |
903 | + | ||
904 | + | ||
905 | + | ||
906 | + | @Callable(ax) | |
907 | + | func takeIntoAccountExtraFunds (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), { | |
908 | + | let dF = bu(ax.caller) | |
909 | + | let bv = dF._1 | |
910 | + | let bw = dF._2 | |
911 | + | let bk = dF._3 | |
912 | + | let bl = dF._4 | |
913 | + | let dG = if (if ((bk == ac)) | |
914 | + | then true | |
915 | + | else (bl == ac)) | |
916 | + | then invoke(ax.caller, "claimNetrinoRewards", nil, nil) | |
917 | + | else 0 | |
918 | + | if ((dG == dG)) | |
919 | + | then { | |
920 | + | let dH = bq(ax.caller, bk, bl) | |
921 | + | let bi = dH._1 | |
922 | + | let bj = dH._2 | |
923 | + | let bg = dH._3 | |
924 | + | let bh = dH._4 | |
925 | + | let dI = (bg - bi) | |
926 | + | let dJ = (bh - bj) | |
927 | + | if ((size(bD) != 0)) | |
928 | + | then throw("Wrong args size") | |
929 | + | else if ((Y != ax.originCaller)) | |
930 | + | then throw("Only the wallet can call this function") | |
931 | + | else if (if ((0 > dI)) | |
932 | + | then true | |
933 | + | else (0 > dJ)) | |
934 | + | then aE("Enroll amount negative") | |
935 | + | else if (if ((dI == 0)) | |
936 | + | then (dJ == 0) | |
937 | + | else false) | |
938 | + | then throw("No money to take") | |
939 | + | else { | |
940 | + | let ce = if (if (contains(ae, bv)) | |
941 | + | then (dI > 0) | |
942 | + | else false) | |
943 | + | then invoke(ax.caller, "stakeUnstake", [true, dI, bv], nil) | |
944 | + | else 0 | |
945 | + | if ((ce == ce)) | |
946 | + | then { | |
947 | + | let cf = if (if (contains(ae, bw)) | |
948 | + | then (dJ > 0) | |
949 | + | else false) | |
950 | + | then invoke(ax.caller, "stakeUnstake", [true, dJ, bw], nil) | |
951 | + | else 0 | |
952 | + | if ((cf == cf)) | |
953 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(g, (bi + dI)), IntegerEntry(h, (bj + dJ))], nil)) | |
954 | + | else throw("Strict value is not equal to itself.") | |
955 | + | } | |
956 | + | else throw("Strict value is not equal to itself.") | |
957 | + | } | |
958 | + | } | |
959 | + | else throw("Strict value is not equal to itself.") | |
895 | 960 | })) | |
896 | 961 | ||
897 | 962 | ||
898 | - | ||
899 | - | @Callable(aw) | |
900 | - | func takeIntoAccountExtraFunds (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), { | |
901 | - | let dD = bs(aw.caller) | |
902 | - | let bt = dD._1 | |
903 | - | let bu = dD._2 | |
904 | - | let bj = dD._3 | |
905 | - | let bk = dD._4 | |
906 | - | let dE = bo(aw.caller, bj, bk) | |
907 | - | let bh = dE._1 | |
908 | - | let bi = dE._2 | |
909 | - | let bf = dE._3 | |
910 | - | let bg = dE._4 | |
911 | - | let dF = (bf - bh) | |
912 | - | let dG = (bg - bi) | |
913 | - | if ((size(bB) != 0)) | |
914 | - | then throw("Wrong args size") | |
915 | - | else if ((X != aw.originCaller)) | |
916 | - | then throw("Only the wallet can call this function") | |
917 | - | else if (if ((0 > dF)) | |
918 | - | then true | |
919 | - | else (0 > dG)) | |
920 | - | then aD("Enroll amount negative") | |
921 | - | else if (if ((dF == 0)) | |
922 | - | then (dG == 0) | |
923 | - | else false) | |
924 | - | then throw("No money to take") | |
925 | - | else { | |
926 | - | let cc = if (if (contains(ad, bt)) | |
927 | - | then (dF > 0) | |
928 | - | else false) | |
929 | - | then invoke(aw.caller, "stakeUnstake", [true, dF, bt], nil) | |
930 | - | else 0 | |
931 | - | if ((cc == cc)) | |
932 | - | then { | |
933 | - | let cd = if (if (contains(ad, bu)) | |
934 | - | then (dG > 0) | |
935 | - | else false) | |
936 | - | then invoke(aw.caller, "stakeUnstake", [true, dG, bu], nil) | |
937 | - | else 0 | |
938 | - | if ((cd == cd)) | |
939 | - | then $Tuple2(nil, $Tuple2([IntegerEntry(f, (bh + dF)), IntegerEntry(g, (bi + dG))], nil)) | |
940 | - | else throw("Strict value is not equal to itself.") | |
941 | - | } | |
942 | - | else throw("Strict value is not equal to itself.") | |
943 | - | } | |
944 | - | })) | |
945 | - | ||
946 | - | ||
947 | - | @Verifier(dH) | |
948 | - | func dI () = { | |
949 | - | let dJ = { | |
950 | - | let dK = if (sigVerify(dH.bodyBytes, dH.proofs[0], T)) | |
963 | + | @Verifier(dK) | |
964 | + | func dL () = { | |
965 | + | let dM = { | |
966 | + | let dN = if (sigVerify(dK.bodyBytes, dK.proofs[0], U)) | |
951 | 967 | then 1 | |
952 | 968 | else 0 | |
953 | - | let | |
969 | + | let dO = if (sigVerify(dK.bodyBytes, dK.proofs[1], V)) | |
954 | 970 | then 1 | |
955 | 971 | else 0 | |
956 | - | let | |
972 | + | let dP = if (sigVerify(dK.bodyBytes, dK.proofs[2], W)) | |
957 | 973 | then 1 | |
958 | 974 | else 0 | |
959 | - | ((( | |
975 | + | (((dN + dO) + dP) >= 2) | |
960 | 976 | } | |
961 | - | | |
977 | + | dM | |
962 | 978 | } | |
963 | 979 |
github/deemru/w8io/169f3d6 658.79 ms ◑