tx · FQJkm5Aogrt7psbfx8LYFeSGcqsZKB9cxWY9bE2JPVe8 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS: -0.14000000 Waves 2022.11.14 15:49 [2316822] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves
{ "type": 13, "id": "FQJkm5Aogrt7psbfx8LYFeSGcqsZKB9cxWY9bE2JPVe8", "fee": 14000000, "feeAssetId": null, "timestamp": 1668430189701, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "32rW7Dt13UtgT1mZMqjKdNUXW5LUhspsBhCQ3eou7ze3TUoGarQZjtvKGaa1p88maNJSmP5QqZTLXDeJU63Va9Ln", "5AfjQ5iAtcuo7XNmBB85qfE87fyH2dVN4SmoqtraeZEiSe4aHToRk6EDbPmGoNAMUjuFyGFGEhpbUdzAYNTkyUDL" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAWgAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVB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nByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDAEE2NhbGxUYWtlSW50b0FjY291bnQDCQAAAggFA2ludgRkQXBwBQR0aGlzCQAAAggFA2ludghmdW5jdGlvbgIZdGFrZUludG9BY2NvdW50RXh0cmFGdW5kcwcEDXNpZ25lZEJ5QWRtaW4DAwMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MgYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MwYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFEWFkbWluUHViS2V5SW52b2tlAwMFE2NhbGxUYWtlSW50b0FjY291bnQFDXNpZ25lZEJ5QWRtaW4HBgUTbXVsdGlTaWduZWRCeUFkbWlucwUTbXVsdGlTaWduZWRCeUFkbWlucwwR4h0=", "height": 2316822, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4q3Vp3qM3eNq4RPCGQm1hT9GtXi47KZS539WZp4kZnkL Next: 45hJedv3552NyZDqW11cbB7HkKbTgt8t2wQFCcLsa2p6 Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = "active" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "active_all_contracts" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "shutdown_cause" | |
27 | 27 | ||
28 | - | let m = "share_asset_ | |
28 | + | let m = "share_asset_id" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "share_asset_supply" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "commission" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "dAppThresholdCoef" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "staking_usdnnsbt_address" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "discounts" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "discount_values" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_SWOP_amount" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "_GSwop_amount" | |
45 | 45 | ||
46 | - | let v = "admin_pub_ | |
46 | + | let v = "admin_pub_1" | |
47 | 47 | ||
48 | - | let w = "admin_pub_ | |
48 | + | let w = "admin_pub_2" | |
49 | 49 | ||
50 | - | let x = "admin_ | |
50 | + | let x = "admin_pub_3" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "admin_invoke_pub" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "money_box_address" | |
55 | 55 | ||
56 | - | let B = " | |
56 | + | let B = "governance_address" | |
57 | 57 | ||
58 | - | let C = " | |
58 | + | let C = "voting_address" | |
59 | 59 | ||
60 | - | let E = " | |
60 | + | let E = "farming_address" | |
61 | 61 | ||
62 | - | let F = | |
62 | + | let F = "lp_farming" | |
63 | 63 | ||
64 | - | func G (H) = { | |
65 | - | let I = getString(F, H) | |
66 | - | if ($isInstanceOf(I, "String")) | |
64 | + | let G = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
65 | + | ||
66 | + | func H (I) = { | |
67 | + | let J = getString(G, I) | |
68 | + | if ($isInstanceOf(J, "String")) | |
67 | 69 | then { | |
68 | - | let | |
69 | - | fromBase58String( | |
70 | + | let K = J | |
71 | + | fromBase58String(K) | |
70 | 72 | } | |
71 | 73 | else { | |
72 | - | let | |
73 | - | throw(( | |
74 | + | let L = J | |
75 | + | throw((I + "is empty")) | |
74 | 76 | } | |
75 | 77 | } | |
76 | 78 | ||
77 | 79 | ||
78 | - | let | |
80 | + | let M = H(v) | |
79 | 81 | ||
80 | - | let | |
82 | + | let N = H(w) | |
81 | 83 | ||
82 | - | let | |
84 | + | let O = H(x) | |
83 | 85 | ||
84 | - | let | |
86 | + | let P = H(y) | |
85 | 87 | ||
86 | - | let | |
88 | + | let Q = Address(H(z)) | |
87 | 89 | ||
88 | - | let | |
90 | + | let R = Address(H(B)) | |
89 | 91 | ||
90 | - | let | |
92 | + | let S = Address(H(q)) | |
91 | 93 | ||
92 | - | let | |
94 | + | let T = Address(H(C)) | |
93 | 95 | ||
94 | - | let | |
96 | + | let U = Address(H(E)) | |
95 | 97 | ||
96 | - | let | |
98 | + | let V = Address(H(F)) | |
97 | 99 | ||
98 | - | let | |
100 | + | let W = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
99 | 101 | ||
100 | - | let | |
102 | + | let X = [toBase58String(W)] | |
101 | 103 | ||
102 | - | let | |
104 | + | let Y = getBooleanValue(this, j) | |
103 | 105 | ||
104 | - | let | |
106 | + | let Z = valueOrElse(getBoolean(G, k), true) | |
105 | 107 | ||
106 | - | let Z = getIntegerValue(this, m) | |
107 | - | ||
108 | - | let aa = 1000000 | |
108 | + | let aa = fromBase58String(getStringValue(this, m)) | |
109 | 109 | ||
110 | 110 | let ab = getIntegerValue(this, n) | |
111 | 111 | ||
112 | - | let ac = | |
112 | + | let ac = 1000000 | |
113 | 113 | ||
114 | - | let ad = getIntegerValue(this, | |
114 | + | let ad = getIntegerValue(this, o) | |
115 | 115 | ||
116 | - | let ae = | |
116 | + | let ae = fraction(40, ac, 100) | |
117 | 117 | ||
118 | - | let af = | |
118 | + | let af = getIntegerValue(this, "initial_A") | |
119 | 119 | ||
120 | - | let ag = | |
120 | + | let ag = getIntegerValue(this, "future_A") | |
121 | 121 | ||
122 | - | let ah = | |
122 | + | let ah = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
123 | 123 | ||
124 | - | let ai = | |
124 | + | let ai = valueOrElse(getInteger(this, "future_A_time"), 0) | |
125 | 125 | ||
126 | - | func aj (ak) = [BooleanEntry(j, false), StringEntry(k, ak)] | |
126 | + | let aj = split(getStringValue(this, h), ",") | |
127 | + | ||
128 | + | let ak = size(aj) | |
129 | + | ||
130 | + | func al (am) = [BooleanEntry(j, false), StringEntry(l, am)] | |
127 | 131 | ||
128 | 132 | ||
129 | - | func | |
133 | + | func an () = throw("DApp is already active") | |
130 | 134 | ||
131 | 135 | ||
132 | - | func am () = if (X) | |
136 | + | func ao () = if (if (Y) | |
137 | + | then Z | |
138 | + | else false) | |
133 | 139 | then unit | |
134 | 140 | else throw("DApp is inactive at this moment") | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
143 | + | func ap (aq) = if (containsElement([M, N, O], aq.callerPublicKey)) | |
138 | 144 | then unit | |
139 | 145 | else throw("Only admin can call this function") | |
140 | 146 | ||
141 | 147 | ||
142 | - | func | |
148 | + | func ar (aq) = if ((this == aq.caller)) | |
143 | 149 | then unit | |
144 | 150 | else throw("Only contract itself can call this function") | |
145 | 151 | ||
146 | 152 | ||
147 | - | let | |
153 | + | let as = toBigInt(2) | |
148 | 154 | ||
149 | - | let | |
155 | + | let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
150 | 156 | ||
151 | - | let | |
157 | + | let au = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
152 | 158 | ||
153 | - | let | |
159 | + | let av = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
154 | 160 | ||
155 | - | let | |
161 | + | let aw = height | |
156 | 162 | ||
157 | - | func | |
163 | + | func ax (ay) = if (ay) | |
158 | 164 | then false | |
159 | 165 | else true | |
160 | 166 | ||
161 | 167 | ||
162 | - | func | |
163 | - | let | |
164 | - | let | |
165 | - | if ($isInstanceOf( | |
168 | + | func az (aA) = { | |
169 | + | let aB = { | |
170 | + | let J = aA | |
171 | + | if ($isInstanceOf(J, "Address")) | |
166 | 172 | then { | |
167 | - | let | |
168 | - | toString( | |
173 | + | let aC = J | |
174 | + | toString(aC) | |
169 | 175 | } | |
170 | - | else if ($isInstanceOf( | |
176 | + | else if ($isInstanceOf(J, "String")) | |
171 | 177 | then { | |
172 | - | let | |
173 | - | | |
178 | + | let aC = J | |
179 | + | aC | |
174 | 180 | } | |
175 | 181 | else throw("Unknow type of user Addr") | |
176 | 182 | } | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | if (if (( | |
182 | - | then (parseIntValue( | |
183 | + | let aD = valueOrElse(getInteger(R, (aB + u)), 0) | |
184 | + | let aE = valueOrElse(getInteger(R, (aB + u)), aD) | |
185 | + | let aF = split(getStringValue(G, s), ",") | |
186 | + | let aG = split(getStringValue(G, r), ",") | |
187 | + | if (if ((aE >= parseIntValue(aF[0]))) | |
188 | + | then (parseIntValue(aF[1]) > aE) | |
183 | 189 | else false) | |
184 | - | then ( | |
185 | - | else if (if (( | |
186 | - | then (parseIntValue( | |
190 | + | then (ac - parseIntValue(aG[0])) | |
191 | + | else if (if ((aE >= parseIntValue(aF[1]))) | |
192 | + | then (parseIntValue(aF[2]) > aE) | |
187 | 193 | else false) | |
188 | - | then ( | |
189 | - | else if (if (( | |
190 | - | then (parseIntValue( | |
194 | + | then (ac - parseIntValue(aG[1])) | |
195 | + | else if (if ((aE >= parseIntValue(aF[2]))) | |
196 | + | then (parseIntValue(aF[3]) > aE) | |
191 | 197 | else false) | |
192 | - | then ( | |
193 | - | else if (if (( | |
194 | - | then (parseIntValue( | |
198 | + | then (ac - parseIntValue(aG[2])) | |
199 | + | else if (if ((aE >= parseIntValue(aF[3]))) | |
200 | + | then (parseIntValue(aF[4]) > aE) | |
195 | 201 | else false) | |
196 | - | then ( | |
197 | - | else if (( | |
198 | - | then ( | |
199 | - | else | |
202 | + | then (ac - parseIntValue(aG[3])) | |
203 | + | else if ((aE >= parseIntValue(aF[4]))) | |
204 | + | then (ac - parseIntValue(aG[4])) | |
205 | + | else ac | |
200 | 206 | } | |
201 | 207 | ||
202 | 208 | ||
203 | - | func | |
204 | - | let | |
205 | - | let | |
206 | - | if (( | |
209 | + | func aH () = { | |
210 | + | let aI = ai | |
211 | + | let aJ = ag | |
212 | + | if ((aI > aw)) | |
207 | 213 | then { | |
208 | - | let | |
209 | - | let | |
210 | - | if (( | |
211 | - | then ( | |
212 | - | else ( | |
214 | + | let aK = af | |
215 | + | let aL = ah | |
216 | + | if ((aJ > aK)) | |
217 | + | then (aK + (((aJ - aK) * (aw - aL)) / (aI - aL))) | |
218 | + | else (aK - (((aK - aJ) * (aw - aL)) / (aI - aL))) | |
213 | 219 | } | |
214 | - | else | |
220 | + | else aJ | |
215 | 221 | } | |
216 | 222 | ||
217 | 223 | ||
218 | - | func | |
219 | - | func | |
224 | + | func aM () = { | |
225 | + | func aN (aO,aP) = (aO :+ valueOrElse(getInteger(this, (aP + i)), 0)) | |
220 | 226 | ||
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
227 | + | let aQ = aj | |
228 | + | let aR = size(aQ) | |
229 | + | let aS = nil | |
230 | + | func aT (aU,aV) = if ((aV >= aR)) | |
231 | + | then aU | |
232 | + | else aN(aU, aQ[aV]) | |
227 | 233 | ||
228 | - | func | |
229 | - | then | |
234 | + | func aW (aU,aV) = if ((aV >= aR)) | |
235 | + | then aU | |
230 | 236 | else throw("List size exceeds 10") | |
231 | 237 | ||
232 | - | | |
238 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
233 | 239 | } | |
234 | 240 | ||
235 | 241 | ||
236 | - | func | |
242 | + | func aX (aY) = aY | |
237 | 243 | ||
238 | 244 | ||
239 | - | func | |
245 | + | func aZ (aO,ba) = (aO + ba) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
245 | - | then | |
246 | - | else throw(($getType( | |
248 | + | func bb (aY,bc) = { | |
249 | + | let bd = invoke(this, "D", [aY, bc], nil) | |
250 | + | if ($isInstanceOf(bd, "Int")) | |
251 | + | then bd | |
252 | + | else throw(($getType(bd) + " couldn't be cast to Int")) | |
247 | 253 | } | |
248 | 254 | ||
249 | 255 | ||
250 | - | func | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | func | |
256 | - | then | |
257 | - | else | |
256 | + | func be (aY,bc) = { | |
257 | + | let bf = { | |
258 | + | let aQ = aY | |
259 | + | let aR = size(aQ) | |
260 | + | let aS = 0 | |
261 | + | func aT (aU,aV) = if ((aV >= aR)) | |
262 | + | then aU | |
263 | + | else aZ(aU, aQ[aV]) | |
258 | 264 | ||
259 | - | func | |
260 | - | then | |
265 | + | func aW (aU,aV) = if ((aV >= aR)) | |
266 | + | then aU | |
261 | 267 | else throw("List size exceeds 10") | |
262 | 268 | ||
263 | - | | |
269 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
264 | 270 | } | |
265 | - | if (( | |
271 | + | if ((bf == 0)) | |
266 | 272 | then 0 | |
267 | 273 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
274 | + | let bg = (bc * ak) | |
275 | + | let bh = (toBigInt(bg) * toBigInt(bf)) | |
276 | + | let bi = toBigInt((bg - 1)) | |
277 | + | func bj (aO,aq) = if ((aO._2 == true)) | |
278 | + | then aO | |
273 | 279 | else { | |
274 | - | let | |
275 | - | func | |
276 | - | then (( | |
277 | - | else | |
280 | + | let bk = aO._1 | |
281 | + | func bl (bm,aq) = if ((ak > aq)) | |
282 | + | then ((bm * bk) / (toBigInt(aY[aq]) * toBigInt(ak))) | |
283 | + | else bm | |
278 | 284 | ||
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | func | |
284 | - | then | |
285 | - | else | |
285 | + | let bm = { | |
286 | + | let aQ = at | |
287 | + | let aR = size(aQ) | |
288 | + | let aS = bk | |
289 | + | func bn (aU,aV) = if ((aV >= aR)) | |
290 | + | then aU | |
291 | + | else bl(aU, aQ[aV]) | |
286 | 292 | ||
287 | - | func | |
288 | - | then | |
293 | + | func bo (aU,aV) = if ((aV >= aR)) | |
294 | + | then aU | |
289 | 295 | else throw("List size exceeds 10") | |
290 | 296 | ||
291 | - | | |
297 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
292 | 298 | } | |
293 | - | let | |
294 | - | if (( | |
295 | - | then if ((1 >= toInt(( | |
296 | - | then $Tuple2( | |
297 | - | else $Tuple2( | |
298 | - | else if ((1 >= toInt(( | |
299 | - | then $Tuple2( | |
300 | - | else $Tuple2( | |
299 | + | let bp = fraction((bh + (toBigInt(ak) * bm)), bk, ((bi * bk) + (toBigInt((ak + 1)) * bm))) | |
300 | + | if ((bp > bk)) | |
301 | + | then if ((1 >= toInt((bp - bk)))) | |
302 | + | then $Tuple2(bp, true) | |
303 | + | else $Tuple2(bp, false) | |
304 | + | else if ((1 >= toInt((bk - bp)))) | |
305 | + | then $Tuple2(bp, true) | |
306 | + | else $Tuple2(bp, false) | |
301 | 307 | } | |
302 | 308 | ||
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | func | |
308 | - | then | |
309 | - | else | |
309 | + | let bq = { | |
310 | + | let aQ = au | |
311 | + | let aR = size(aQ) | |
312 | + | let aS = $Tuple2(toBigInt(bf), false) | |
313 | + | func bn (aU,aV) = if ((aV >= aR)) | |
314 | + | then aU | |
315 | + | else bj(aU, aQ[aV]) | |
310 | 316 | ||
311 | - | func | |
312 | - | then | |
317 | + | func bo (aU,aV) = if ((aV >= aR)) | |
318 | + | then aU | |
313 | 319 | else throw("List size exceeds 15") | |
314 | 320 | ||
315 | - | | |
321 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
316 | 322 | } | |
317 | - | let | |
318 | - | let | |
319 | - | if (( | |
320 | - | then throw(("get_D() not finished with " + toString( | |
321 | - | else toInt( | |
323 | + | let bp = bq._1 | |
324 | + | let br = bq._2 | |
325 | + | if ((br == false)) | |
326 | + | then throw(("get_D() not finished with " + toString(bp))) | |
327 | + | else toInt(bp) | |
322 | 328 | } | |
323 | 329 | } | |
324 | 330 | ||
325 | 331 | ||
326 | - | func | |
332 | + | func bs (aY,bc) = bb(aX(aY), bc) | |
327 | 333 | ||
328 | 334 | ||
329 | - | func | |
335 | + | func bt (bu,bv,bw,bx) = if (ax((bu != bv))) | |
330 | 336 | then throw("same coin") | |
331 | - | else if ( | |
332 | - | then ( | |
337 | + | else if (ax(if ((bv >= 0)) | |
338 | + | then (bu >= 0) | |
333 | 339 | else false)) | |
334 | 340 | then throw("below zero") | |
335 | - | else if ( | |
336 | - | then ( | |
341 | + | else if (ax(if ((ak > bv)) | |
342 | + | then (ak > bu) | |
337 | 343 | else false)) | |
338 | 344 | then throw("above N_COINS") | |
339 | 345 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | func | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then | |
349 | - | else | |
350 | - | if (if (( | |
351 | - | then ( | |
346 | + | let bc = aH() | |
347 | + | let bp = bb(bx, bc) | |
348 | + | let bg = (bc * ak) | |
349 | + | func by (aO,aq) = { | |
350 | + | let bz = aO | |
351 | + | let bA = bz._1 | |
352 | + | let bB = bz._2 | |
353 | + | let bC = if ((bu == aq)) | |
354 | + | then bw | |
355 | + | else bx[aq] | |
356 | + | if (if ((aq != bv)) | |
357 | + | then (ak > aq) | |
352 | 358 | else false) | |
353 | - | then $Tuple2(( | |
354 | - | else $Tuple2( | |
359 | + | then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak)))) | |
360 | + | else $Tuple2(bA, bB) | |
355 | 361 | } | |
356 | 362 | ||
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | func | |
362 | - | then | |
363 | - | else | |
363 | + | let bD = { | |
364 | + | let aQ = at | |
365 | + | let aR = size(aQ) | |
366 | + | let aS = $Tuple2(0, toBigInt(bp)) | |
367 | + | func aT (aU,aV) = if ((aV >= aR)) | |
368 | + | then aU | |
369 | + | else by(aU, aQ[aV]) | |
364 | 370 | ||
365 | - | func | |
366 | - | then | |
371 | + | func aW (aU,aV) = if ((aV >= aR)) | |
372 | + | then aU | |
367 | 373 | else throw("List size exceeds 10") | |
368 | 374 | ||
369 | - | | |
375 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
370 | 376 | } | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | func | |
376 | - | then | |
377 | + | let bA = bD._1 | |
378 | + | let bE = bD._2 | |
379 | + | let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak))) | |
380 | + | let bF = toBigInt(((bA + (bp / bg)) - bp)) | |
381 | + | func bG (aO,bH) = if ((aO._2 == true)) | |
382 | + | then aO | |
377 | 383 | else { | |
378 | - | let | |
379 | - | let | |
380 | - | if (( | |
381 | - | then if ((1 >= toInt(( | |
382 | - | then $Tuple2( | |
383 | - | else $Tuple2( | |
384 | - | else if ((1 >= toInt(( | |
385 | - | then $Tuple2( | |
386 | - | else $Tuple2( | |
384 | + | let bI = aO._1 | |
385 | + | let bJ = (((bI * bI) + bB) / ((as * bI) + bF)) | |
386 | + | if ((bJ > bI)) | |
387 | + | then if ((1 >= toInt((bJ - bI)))) | |
388 | + | then $Tuple2(bJ, true) | |
389 | + | else $Tuple2(bJ, false) | |
390 | + | else if ((1 >= toInt((bI - bJ)))) | |
391 | + | then $Tuple2(bJ, true) | |
392 | + | else $Tuple2(bJ, false) | |
387 | 393 | } | |
388 | 394 | ||
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | func | |
394 | - | then | |
395 | - | else | |
395 | + | let bK = { | |
396 | + | let aQ = av | |
397 | + | let aR = size(aQ) | |
398 | + | let aS = $Tuple2(toBigInt(bp), false) | |
399 | + | func bn (aU,aV) = if ((aV >= aR)) | |
400 | + | then aU | |
401 | + | else bG(aU, aQ[aV]) | |
396 | 402 | ||
397 | - | func | |
398 | - | then | |
403 | + | func bo (aU,aV) = if ((aV >= aR)) | |
404 | + | then aU | |
399 | 405 | else throw("List size exceeds 16") | |
400 | 406 | ||
401 | - | | |
407 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
402 | 408 | } | |
403 | - | let | |
404 | - | let | |
405 | - | if (( | |
406 | - | then throw(("getY() not finished with " + toString( | |
407 | - | else toInt( | |
409 | + | let bJ = bK._1 | |
410 | + | let br = bK._2 | |
411 | + | if ((br == false)) | |
412 | + | then throw(("getY() not finished with " + toString(bJ))) | |
413 | + | else toInt(bJ) | |
408 | 414 | } | |
409 | 415 | ||
410 | 416 | ||
411 | - | func | |
417 | + | func bL (bM,bu,aY,bp) = if (ax((bu >= 0))) | |
412 | 418 | then throw("i below zero") | |
413 | - | else if ( | |
419 | + | else if (ax((ak > bu))) | |
414 | 420 | then throw("i above N_COINS") | |
415 | 421 | else { | |
416 | - | let | |
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | then ( | |
422 | + | let bg = (bM * ak) | |
423 | + | func by (aO,aq) = { | |
424 | + | let bN = aO | |
425 | + | let bA = bN._1 | |
426 | + | let bB = bN._2 | |
427 | + | let bC = if (if ((bu != aq)) | |
428 | + | then (ak > aq) | |
423 | 429 | else false) | |
424 | - | then | |
430 | + | then aY[aq] | |
425 | 431 | else 0 | |
426 | - | if (if (( | |
427 | - | then ( | |
432 | + | if (if ((ak > aq)) | |
433 | + | then (bu != aq) | |
428 | 434 | else false) | |
429 | - | then $Tuple2(( | |
430 | - | else $Tuple2( | |
435 | + | then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak)))) | |
436 | + | else $Tuple2(bA, bB) | |
431 | 437 | } | |
432 | 438 | ||
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | func | |
438 | - | then | |
439 | - | else | |
439 | + | let bO = { | |
440 | + | let aQ = at | |
441 | + | let aR = size(aQ) | |
442 | + | let aS = $Tuple2(0, toBigInt(bp)) | |
443 | + | func aT (aU,aV) = if ((aV >= aR)) | |
444 | + | then aU | |
445 | + | else by(aU, aQ[aV]) | |
440 | 446 | ||
441 | - | func | |
442 | - | then | |
447 | + | func aW (aU,aV) = if ((aV >= aR)) | |
448 | + | then aU | |
443 | 449 | else throw("List size exceeds 10") | |
444 | 450 | ||
445 | - | | |
451 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
446 | 452 | } | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | func | |
452 | - | then | |
453 | + | let bA = bO._1 | |
454 | + | let bE = bO._2 | |
455 | + | let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak))) | |
456 | + | let bF = toBigInt(((bA + (bp / bg)) - bp)) | |
457 | + | func bP (aO,aq) = if ((aO._2 == true)) | |
458 | + | then aO | |
453 | 459 | else { | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
457 | - | then if ((1 >= toInt(( | |
458 | - | then $Tuple2( | |
459 | - | else $Tuple2( | |
460 | - | else if ((1 >= toInt(( | |
461 | - | then $Tuple2( | |
462 | - | else $Tuple2( | |
460 | + | let bI = aO._1 | |
461 | + | let bJ = (((bI * bI) + bB) / ((as * bI) + bF)) | |
462 | + | if ((bJ > bI)) | |
463 | + | then if ((1 >= toInt((bJ - bI)))) | |
464 | + | then $Tuple2(bJ, true) | |
465 | + | else $Tuple2(bJ, false) | |
466 | + | else if ((1 >= toInt((bI - bJ)))) | |
467 | + | then $Tuple2(bJ, true) | |
468 | + | else $Tuple2(bJ, false) | |
463 | 469 | } | |
464 | 470 | ||
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | func | |
470 | - | then | |
471 | - | else | |
471 | + | let bQ = { | |
472 | + | let aQ = av | |
473 | + | let aR = size(aQ) | |
474 | + | let aS = $Tuple2(toBigInt(bp), false) | |
475 | + | func bn (aU,aV) = if ((aV >= aR)) | |
476 | + | then aU | |
477 | + | else bP(aU, aQ[aV]) | |
472 | 478 | ||
473 | - | func | |
474 | - | then | |
479 | + | func bo (aU,aV) = if ((aV >= aR)) | |
480 | + | then aU | |
475 | 481 | else throw("List size exceeds 16") | |
476 | 482 | ||
477 | - | | |
483 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
478 | 484 | } | |
479 | - | let | |
480 | - | let | |
481 | - | if (( | |
482 | - | then throw(("get_y_D() not finished with " + toString( | |
483 | - | else toInt( | |
485 | + | let bJ = bQ._1 | |
486 | + | let br = bQ._2 | |
487 | + | if ((br == false)) | |
488 | + | then throw(("get_y_D() not finished with " + toString(bJ))) | |
489 | + | else toInt(bJ) | |
484 | 490 | } | |
485 | 491 | ||
486 | 492 | ||
487 | - | func | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | then (fraction( | |
502 | - | else ( | |
503 | - | $Tuple2(( | |
493 | + | func bR (aY,bS,aq,bT) = { | |
494 | + | let bU = az(bT) | |
495 | + | let bc = aH() | |
496 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
497 | + | let bW = ab | |
498 | + | let bX = bb(aY, bc) | |
499 | + | let bY = (bX - fraction(bS, bX, bW)) | |
500 | + | let bZ = bL(bc, aq, aY, bY) | |
501 | + | let ca = (aY[aq] - bZ) | |
502 | + | func cb (aO,cc) = { | |
503 | + | let cd = aO | |
504 | + | let ce = cd._1 | |
505 | + | let cf = cd._2 | |
506 | + | let cg = if ((cf == aq)) | |
507 | + | then (fraction(cc, bY, bX) - bZ) | |
508 | + | else (cc - fraction(cc, bY, bX)) | |
509 | + | $Tuple2((ce :+ (cc - fraction(bV, cg, ac))), (cf + 1)) | |
504 | 510 | } | |
505 | 511 | ||
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | func | |
511 | - | then | |
512 | - | else | |
512 | + | let ch = { | |
513 | + | let aQ = aY | |
514 | + | let aR = size(aQ) | |
515 | + | let aS = $Tuple2(nil, 0) | |
516 | + | func aT (aU,aV) = if ((aV >= aR)) | |
517 | + | then aU | |
518 | + | else cb(aU, aQ[aV]) | |
513 | 519 | ||
514 | - | func | |
515 | - | then | |
520 | + | func aW (aU,aV) = if ((aV >= aR)) | |
521 | + | then aU | |
516 | 522 | else throw("List size exceeds 10") | |
517 | 523 | ||
518 | - | | |
524 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
519 | 525 | } | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | $Tuple2( | |
526 | + | let ce = ch._1 | |
527 | + | let cf = ch._2 | |
528 | + | let ci = ce[aq] | |
529 | + | let cj = ((ci - bL(bc, aq, ce, bY)) - 1) | |
530 | + | $Tuple2(cj, (ca - cj)) | |
525 | 531 | } | |
526 | 532 | ||
527 | 533 | ||
528 | - | func | |
529 | - | let | |
530 | - | if ($isInstanceOf( | |
534 | + | func ck (aP) = { | |
535 | + | let J = aP | |
536 | + | if ($isInstanceOf(J, "ByteVector")) | |
531 | 537 | then { | |
532 | - | let | |
533 | - | toBase58String( | |
538 | + | let cl = J | |
539 | + | toBase58String(cl) | |
534 | 540 | } | |
535 | - | else if ($isInstanceOf( | |
541 | + | else if ($isInstanceOf(J, "Unit")) | |
536 | 542 | then { | |
537 | - | let | |
543 | + | let cm = J | |
538 | 544 | "WAVES" | |
539 | 545 | } | |
540 | 546 | else throw("Match error") | |
541 | 547 | } | |
542 | 548 | ||
543 | 549 | ||
544 | - | func | |
545 | - | then $Tuple2("lockNeutrino", | |
546 | - | else $Tuple2("unlockNeutrino", | |
550 | + | func cn (co,aP) = if (co) | |
551 | + | then $Tuple2("lockNeutrino", S) | |
552 | + | else $Tuple2("unlockNeutrino", S) | |
547 | 553 | ||
548 | 554 | ||
549 | - | func | |
555 | + | func cp (co,cq,aP) = if (co) | |
550 | 556 | then { | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | $Tuple4( | |
557 | + | let cr = cn(co, aP) | |
558 | + | let cs = cr._1 | |
559 | + | let ct = cr._2 | |
560 | + | $Tuple4(cs, ct, nil, [AttachedPayment(aP, cq)]) | |
555 | 561 | } | |
556 | 562 | else { | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple4( | |
563 | + | let cu = cn(co, aP) | |
564 | + | let cs = cu._1 | |
565 | + | let ct = cu._2 | |
566 | + | $Tuple4(cs, ct, [cq, toBase58String(aP)], nil) | |
561 | 567 | } | |
562 | 568 | ||
563 | 569 | ||
564 | - | func | |
570 | + | func co (cq,cv) = if (containsElement(X, cv)) | |
565 | 571 | then { | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | invoke( | |
572 | + | let cw = cp(true, cq, fromBase58String(cv)) | |
573 | + | let cs = cw._1 | |
574 | + | let cx = cw._2 | |
575 | + | let cy = cw._3 | |
576 | + | let cz = cw._4 | |
577 | + | invoke(cx, cs, cy, cz) | |
572 | 578 | } | |
573 | 579 | else 0 | |
574 | 580 | ||
575 | 581 | ||
576 | - | func | |
582 | + | func cA (cq,cv) = if (containsElement(X, cv)) | |
577 | 583 | then { | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | invoke( | |
584 | + | let cB = cp(false, cq, fromBase58String(cv)) | |
585 | + | let cs = cB._1 | |
586 | + | let cx = cB._2 | |
587 | + | let cy = cB._3 | |
588 | + | let cz = cB._4 | |
589 | + | invoke(cx, cs, cy, cz) | |
584 | 590 | } | |
585 | 591 | else 0 | |
586 | 592 | ||
587 | 593 | ||
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
594 | + | func cC (aP) = { | |
595 | + | let cD = { | |
596 | + | let J = aP | |
597 | + | if ($isInstanceOf(J, "ByteVector")) | |
592 | 598 | then { | |
593 | - | let | |
594 | - | if (( | |
595 | - | then getInteger( | |
599 | + | let cE = J | |
600 | + | if ((cE == W)) | |
601 | + | then getInteger(S, ((("rpd_balance_" + toBase58String(cE)) + "_") + toString(this))) | |
596 | 602 | else 0 | |
597 | 603 | } | |
598 | - | else if ($isInstanceOf( | |
604 | + | else if ($isInstanceOf(J, "Unit")) | |
599 | 605 | then 0 | |
600 | 606 | else throw("Match error") | |
601 | 607 | } | |
602 | - | let | |
603 | - | if ($isInstanceOf( | |
608 | + | let J = cD | |
609 | + | if ($isInstanceOf(J, "Int")) | |
604 | 610 | then { | |
605 | - | let | |
606 | - | | |
611 | + | let aq = J | |
612 | + | aq | |
607 | 613 | } | |
608 | 614 | else 0 | |
609 | 615 | } | |
610 | 616 | ||
611 | 617 | ||
612 | - | func | |
613 | - | let | |
614 | - | func | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | if ( | |
619 | - | then $Tuple2( | |
618 | + | func cF () = { | |
619 | + | let cG = aM() | |
620 | + | func cH (aO,aP) = { | |
621 | + | let cI = aO | |
622 | + | let cJ = cI._1 | |
623 | + | let aq = cI._2 | |
624 | + | if (cJ) | |
625 | + | then $Tuple2(cJ, aq) | |
620 | 626 | else { | |
621 | - | let | |
622 | - | if (( | |
623 | - | then $Tuple2(true, | |
624 | - | else $Tuple2(false, ( | |
627 | + | let cK = (assetBalance(this, fromBase58String(aP)) + cC(fromBase58String(aP))) | |
628 | + | if ((cG[aq] > cK)) | |
629 | + | then $Tuple2(true, aq) | |
630 | + | else $Tuple2(false, (aq + 1)) | |
625 | 631 | } | |
626 | 632 | } | |
627 | 633 | ||
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | func | |
632 | - | then | |
633 | - | else | |
634 | + | let aQ = aj | |
635 | + | let aR = size(aQ) | |
636 | + | let aS = $Tuple2(false, 0) | |
637 | + | func aT (aU,aV) = if ((aV >= aR)) | |
638 | + | then aU | |
639 | + | else cH(aU, aQ[aV]) | |
634 | 640 | ||
635 | - | func | |
636 | - | then | |
641 | + | func aW (aU,aV) = if ((aV >= aR)) | |
642 | + | then aU | |
637 | 643 | else throw("List size exceeds 10") | |
638 | 644 | ||
639 | - | | |
645 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
640 | 646 | } | |
641 | 647 | ||
642 | 648 | ||
643 | - | func | |
649 | + | func cL (aq) = al(("Suspicious state with asset: " + aj[aq])) | |
644 | 650 | ||
645 | 651 | ||
646 | - | func | |
647 | - | func | |
652 | + | func cM (bT,cz) = { | |
653 | + | func cN (aO,cO) = (aO :+ ScriptTransfer(bT, cO.amount, cO.assetId)) | |
648 | 654 | ||
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | func | |
653 | - | then | |
654 | - | else | |
655 | + | let aQ = cz | |
656 | + | let aR = size(aQ) | |
657 | + | let aS = nil | |
658 | + | func aT (aU,aV) = if ((aV >= aR)) | |
659 | + | then aU | |
660 | + | else cN(aU, aQ[aV]) | |
655 | 661 | ||
656 | - | func | |
657 | - | then | |
662 | + | func aW (aU,aV) = if ((aV >= aR)) | |
663 | + | then aU | |
658 | 664 | else throw("List size exceeds 10") | |
659 | 665 | ||
660 | - | | |
666 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
661 | 667 | } | |
662 | 668 | ||
663 | 669 | ||
664 | - | func | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | if (( | |
670 | + | func cP (cQ) = { | |
671 | + | let cR = valueOrErrorMessage(getInteger(this, p), "No dAppThresholdCoef key") | |
672 | + | let cS = 10000 | |
673 | + | let cT = max(cQ) | |
674 | + | let cU = min(cQ) | |
675 | + | let cV = fraction(cT, cS, cU) | |
676 | + | if ((cV > (cR * cS))) | |
671 | 677 | then throw("New balance in assets of the DApp is less than threshold") | |
672 | 678 | else false | |
673 | 679 | } | |
674 | 680 | ||
675 | 681 | ||
676 | - | func | |
677 | - | let | |
678 | - | if ((size( | |
682 | + | func cW (aj) = { | |
683 | + | let cX = split(aj, ",") | |
684 | + | if ((size(cX) > 10)) | |
679 | 685 | then throw("To many coins, max coins size 10") | |
680 | 686 | else { | |
681 | - | func | |
682 | - | let | |
683 | - | let | |
684 | - | if (( | |
687 | + | func cY (cZ,aP) = { | |
688 | + | let da = valueOrErrorMessage(fromBase58String(aP), ("fromBase58String: " + aP)) | |
689 | + | let db = valueOrErrorMessage(assetInfo(da), ("assetInfo: " + aP)).decimals | |
690 | + | if ((db != d)) | |
685 | 691 | then throw("wrong decimals") | |
686 | 692 | else false | |
687 | 693 | } | |
688 | 694 | ||
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | func | |
693 | - | then | |
694 | - | else | |
695 | + | let aQ = cX | |
696 | + | let aR = size(aQ) | |
697 | + | let aS = false | |
698 | + | func aT (aU,aV) = if ((aV >= aR)) | |
699 | + | then aU | |
700 | + | else cY(aU, aQ[aV]) | |
695 | 701 | ||
696 | - | func | |
697 | - | then | |
702 | + | func aW (aU,aV) = if ((aV >= aR)) | |
703 | + | then aU | |
698 | 704 | else throw("List size exceeds 10") | |
699 | 705 | ||
700 | - | | |
706 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
701 | 707 | } | |
702 | 708 | } | |
703 | 709 | ||
704 | 710 | ||
705 | - | @Callable( | |
706 | - | func D ( | |
707 | - | let | |
708 | - | $Tuple2([IntegerEntry("D", | |
711 | + | @Callable(dc) | |
712 | + | func D (aY,bc) = { | |
713 | + | let bp = be(aY, bc) | |
714 | + | $Tuple2([IntegerEntry("D", bp)], bp) | |
709 | 715 | } | |
710 | 716 | ||
711 | 717 | ||
712 | 718 | ||
713 | - | @Callable( | |
714 | - | func init ( | |
719 | + | @Callable(dc) | |
720 | + | func init (aj,aH,dd) = if (!(isDataStorageUntouched(this))) | |
715 | 721 | then throw("Already initialized") | |
716 | - | else if ((0 >= | |
722 | + | else if ((0 >= aH)) | |
717 | 723 | then throw("Amp must be must > 0") | |
718 | - | else if ((0 >= | |
724 | + | else if ((0 >= dd)) | |
719 | 725 | then throw("dApp Threshold Coef must be > 0") | |
720 | 726 | else { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | if ( | |
727 | + | let de = "s_Multi_USD" | |
728 | + | let df = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
729 | + | let dg = Issue(de, df, 0, 6, true) | |
730 | + | let dh = calculateAssetId(dg) | |
731 | + | if (cW(aj)) | |
726 | 732 | then throw() | |
727 | - | else [StringEntry(g, f), StringEntry(h, | |
733 | + | else [StringEntry(g, f), StringEntry(h, aj), IntegerEntry("initial_A", aH), IntegerEntry("future_A", aH), IntegerEntry(o, getIntegerValue(G, "base_fee_flat")), StringEntry(m, toBase58String(dh)), IntegerEntry(n, 0), IntegerEntry(p, dd), BooleanEntry(j, true), dg] | |
728 | 734 | } | |
729 | 735 | ||
730 | 736 | ||
731 | 737 | ||
732 | - | @Callable( | |
733 | - | func addLiquidity ( | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
738 | + | @Callable(dc) | |
739 | + | func addLiquidity (di,dj,dk) = valueOrElse(ao(), { | |
740 | + | let bc = aH() | |
741 | + | let aY = aM() | |
742 | + | let bX = if ((ab == 0)) | |
737 | 743 | then 0 | |
738 | - | else | |
739 | - | let | |
740 | - | then ( | |
744 | + | else bs(aY, bc) | |
745 | + | let dl = if (if ((dk > 0)) | |
746 | + | then (dc.payments[(size(dc.payments) - 1)].assetId == unit) | |
741 | 747 | else false) | |
742 | - | then $Tuple2(removeByIndex( | |
743 | - | else $Tuple2( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | func | |
748 | - | then throw(("payments size > " + toString( | |
749 | - | else if ((1 > | |
748 | + | then $Tuple2(removeByIndex(dc.payments, (size(dc.payments) - 1)), [dc.payments[(size(dc.payments) - 1)]]) | |
749 | + | else $Tuple2(dc.payments, nil) | |
750 | + | let cz = dl._1 | |
751 | + | let dm = dl._2 | |
752 | + | let dn = size(cz) | |
753 | + | func do (dp) = if ((dn > ak)) | |
754 | + | then throw(("payments size > " + toString(ak))) | |
755 | + | else if ((1 > dn)) | |
750 | 756 | then throw("payments size < 1") | |
751 | - | else if (if (( | |
752 | - | then ( | |
757 | + | else if (if ((ab == 0)) | |
758 | + | then (ak != dn) | |
753 | 759 | else false) | |
754 | 760 | then throw("initial deposit requires all coins") | |
755 | 761 | else { | |
756 | - | func | |
762 | + | func dq (aO,cO) = if (containsElement(aj, ck(cO.assetId))) | |
757 | 763 | then true | |
758 | 764 | else throw("Invalid asset in payment") | |
759 | 765 | ||
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | func | |
764 | - | then | |
765 | - | else | |
766 | + | let aQ = cz | |
767 | + | let aR = size(aQ) | |
768 | + | let aS = false | |
769 | + | func aT (aU,aV) = if ((aV >= aR)) | |
770 | + | then aU | |
771 | + | else dq(aU, aQ[aV]) | |
766 | 772 | ||
767 | - | func | |
768 | - | then | |
773 | + | func aW (aU,aV) = if ((aV >= aR)) | |
774 | + | then aU | |
769 | 775 | else throw("List size exceeds 10") | |
770 | 776 | ||
771 | - | | |
777 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
772 | 778 | } | |
773 | 779 | ||
774 | - | if (!( | |
780 | + | if (!(do(dn))) | |
775 | 781 | then throw() | |
776 | 782 | else { | |
777 | - | let | |
778 | - | if ( | |
779 | - | then (cJ | |
783 | + | let cJ = cF() | |
784 | + | if (cJ._1) | |
785 | + | then (cL(cJ._2) ++ cM(dc.caller, cz)) | |
780 | 786 | else { | |
781 | - | func | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | func | |
786 | - | then ( | |
787 | - | else | |
787 | + | func cN (aO,aP) = { | |
788 | + | let dr = aO | |
789 | + | let cQ = dr._1 | |
790 | + | let aq = dr._2 | |
791 | + | func ds (dt,cO) = if ((ck(cO.assetId) == aP)) | |
792 | + | then (dt + cO.amount) | |
793 | + | else dt | |
788 | 794 | ||
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | func | |
794 | - | then | |
795 | - | else | |
795 | + | let du = { | |
796 | + | let aQ = cz | |
797 | + | let aR = size(aQ) | |
798 | + | let aS = aY[aq] | |
799 | + | func aT (aU,aV) = if ((aV >= aR)) | |
800 | + | then aU | |
801 | + | else ds(aU, aQ[aV]) | |
796 | 802 | ||
797 | - | func | |
798 | - | then | |
803 | + | func aW (aU,aV) = if ((aV >= aR)) | |
804 | + | then aU | |
799 | 805 | else throw("List size exceeds 10") | |
800 | 806 | ||
801 | - | | |
807 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
802 | 808 | } | |
803 | - | $Tuple2(( | |
809 | + | $Tuple2((cQ :+ du), (aq + 1)) | |
804 | 810 | } | |
805 | 811 | ||
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | func | |
811 | - | then | |
812 | - | else | |
812 | + | let dv = { | |
813 | + | let aQ = aj | |
814 | + | let aR = size(aQ) | |
815 | + | let aS = $Tuple2(nil, 0) | |
816 | + | func aT (aU,aV) = if ((aV >= aR)) | |
817 | + | then aU | |
818 | + | else cN(aU, aQ[aV]) | |
813 | 819 | ||
814 | - | func | |
815 | - | then | |
820 | + | func aW (aU,aV) = if ((aV >= aR)) | |
821 | + | then aU | |
816 | 822 | else throw("List size exceeds 10") | |
817 | 823 | ||
818 | - | | |
824 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
819 | 825 | } | |
820 | - | let | |
821 | - | let | |
822 | - | if ( | |
826 | + | let cQ = dv._1 | |
827 | + | let dw = dv._2 | |
828 | + | if (cP(cQ)) | |
823 | 829 | then throw() | |
824 | 830 | else { | |
825 | - | let | |
826 | - | if ( | |
831 | + | let bY = bs(cQ, bc) | |
832 | + | if (ax((bY > bX))) | |
827 | 833 | then throw("D1 > D0") | |
828 | 834 | else { | |
829 | - | let | |
830 | - | func | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | if (( | |
835 | + | let bU = az(dc.caller) | |
836 | + | func dx (aO,dt) = { | |
837 | + | let dy = aO | |
838 | + | let dz = dy._1 | |
839 | + | let dA = dy._2 | |
840 | + | let aq = dy._3 | |
841 | + | if ((ab > 0)) | |
836 | 842 | then { | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | then ( | |
842 | - | else ( | |
843 | - | fraction( | |
843 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
844 | + | let dB = { | |
845 | + | let dC = fraction(bY, aY[aq], bX) | |
846 | + | let dD = if ((dC > dt)) | |
847 | + | then (dC - dt) | |
848 | + | else (dt - dC) | |
849 | + | fraction(bV, dD, ac) | |
844 | 850 | } | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | if (( | |
851 | + | let dE = fraction(dB, ae, ac) | |
852 | + | let dF = (dt - dB) | |
853 | + | let dG = (dt - dB) | |
854 | + | let dH = (dt - aY[aq]) | |
855 | + | let dI = (dB - dE) | |
856 | + | let dJ = if ((dH > 0)) | |
857 | + | then co((dH - dB), aj[aq]) | |
858 | + | else cA(dB, aj[aq]) | |
859 | + | if ((dJ == dJ)) | |
854 | 860 | then { | |
855 | - | let | |
856 | - | then invoke( | |
861 | + | let dK = if ((dI > 0)) | |
862 | + | then invoke(V, "airDrop", nil, [AttachedPayment(fromBase58String(aj[aq]), dI)]) | |
857 | 863 | else 0 | |
858 | - | if (( | |
859 | - | then $Tuple3(( | |
864 | + | if ((dK == dK)) | |
865 | + | then $Tuple3((dz :+ dG), (dA ++ [ScriptTransfer(Q, dE, fromBase58String(aj[aq])), IntegerEntry((aj[aq] + i), dF)]), (aq + 1)) | |
860 | 866 | else throw("Strict value is not equal to itself.") | |
861 | 867 | } | |
862 | 868 | else throw("Strict value is not equal to itself.") | |
863 | 869 | } | |
864 | 870 | else { | |
865 | - | let | |
866 | - | if (( | |
867 | - | then $Tuple3(( | |
871 | + | let dJ = co(dt, aj[aq]) | |
872 | + | if ((dJ == dJ)) | |
873 | + | then $Tuple3((dz :+ dt), (dA :+ IntegerEntry((aj[aq] + i), dt)), (aq + 1)) | |
868 | 874 | else throw("Strict value is not equal to itself.") | |
869 | 875 | } | |
870 | 876 | } | |
871 | 877 | ||
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | func | |
877 | - | then | |
878 | - | else | |
878 | + | let dL = { | |
879 | + | let aQ = cQ | |
880 | + | let aR = size(aQ) | |
881 | + | let aS = $Tuple3(nil, nil, 0) | |
882 | + | func bn (aU,aV) = if ((aV >= aR)) | |
883 | + | then aU | |
884 | + | else dx(aU, aQ[aV]) | |
879 | 885 | ||
880 | - | func | |
881 | - | then | |
886 | + | func bo (aU,aV) = if ((aV >= aR)) | |
887 | + | then aU | |
882 | 888 | else throw("List size exceeds 10") | |
883 | 889 | ||
884 | - | | |
890 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
885 | 891 | } | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | then | |
891 | - | else fraction( | |
892 | - | if ( | |
892 | + | let dz = dL._1 | |
893 | + | let dA = dL._2 | |
894 | + | let dM = bs(dz, bc) | |
895 | + | let dN = if ((ab == 0)) | |
896 | + | then bY | |
897 | + | else fraction(ab, (dM - bX), bX) | |
898 | + | if (ax((dN >= di))) | |
893 | 899 | then throw("Slippage screwed you") | |
894 | - | else if ( | |
900 | + | else if (dj) | |
895 | 901 | then { | |
896 | - | let | |
897 | - | if (( | |
902 | + | let dO = invoke(this, "reissueShare", [dN], nil) | |
903 | + | if ((dO == dO)) | |
898 | 904 | then { | |
899 | - | let | |
900 | - | if (( | |
901 | - | then ( | |
905 | + | let dP = invoke(U, "lockShareTokensFromPool", [dc.caller.bytes, toString(this), dk], ([AttachedPayment(aa, dN)] ++ dm)) | |
906 | + | if ((dP == dP)) | |
907 | + | then (dA :+ IntegerEntry(n, (ab + dN))) | |
902 | 908 | else throw("Strict value is not equal to itself.") | |
903 | 909 | } | |
904 | 910 | else throw("Strict value is not equal to itself.") | |
905 | 911 | } | |
906 | - | else ( | |
912 | + | else (dA ++ [Reissue(aa, dN, true), ScriptTransfer(dc.caller, dN, aa), IntegerEntry(n, (ab + dN))]) | |
907 | 913 | } | |
908 | 914 | } | |
909 | 915 | } | |
912 | 918 | ||
913 | 919 | ||
914 | 920 | ||
915 | - | @Callable( | |
916 | - | func calcMintAmount ( | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | if (( | |
921 | - | then $Tuple2(nil, | |
921 | + | @Callable(dc) | |
922 | + | func calcMintAmount (cQ,aB) = { | |
923 | + | let bc = aH() | |
924 | + | let aY = aM() | |
925 | + | let bY = bs(cQ, bc) | |
926 | + | if ((ab == 0)) | |
927 | + | then $Tuple2(nil, bY) | |
922 | 928 | else { | |
923 | - | let | |
924 | - | let | |
925 | - | func | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | then ( | |
934 | - | else ( | |
935 | - | fraction( | |
929 | + | let bX = bs(aY, bc) | |
930 | + | let bU = az(aB) | |
931 | + | func dQ (aO,dt) = { | |
932 | + | let dR = aO | |
933 | + | let dz = dR._1 | |
934 | + | let aq = dR._2 | |
935 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
936 | + | let dB = { | |
937 | + | let dC = fraction(bY, aY[aq], bX) | |
938 | + | let dD = if ((dC > dt)) | |
939 | + | then (dC - dt) | |
940 | + | else (dt - dC) | |
941 | + | fraction(bV, dD, ac) | |
936 | 942 | } | |
937 | - | let | |
938 | - | $Tuple2(( | |
943 | + | let dG = (dt - dB) | |
944 | + | $Tuple2((dz :+ dG), (aq + 1)) | |
939 | 945 | } | |
940 | 946 | ||
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | func | |
946 | - | then | |
947 | - | else | |
947 | + | let dS = { | |
948 | + | let aQ = cQ | |
949 | + | let aR = size(aQ) | |
950 | + | let aS = $Tuple2(nil, 0) | |
951 | + | func aT (aU,aV) = if ((aV >= aR)) | |
952 | + | then aU | |
953 | + | else dQ(aU, aQ[aV]) | |
948 | 954 | ||
949 | - | func | |
950 | - | then | |
955 | + | func aW (aU,aV) = if ((aV >= aR)) | |
956 | + | then aU | |
951 | 957 | else throw("List size exceeds 10") | |
952 | 958 | ||
953 | - | | |
959 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
954 | 960 | } | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | $Tuple2(nil, | |
961 | + | let dz = dS._1 | |
962 | + | let dw = dS._2 | |
963 | + | let dM = bs(dz, bc) | |
964 | + | let dT = fraction(ab, (dM - bX), bX) | |
965 | + | $Tuple2(nil, dT) | |
960 | 966 | } | |
961 | 967 | } | |
962 | 968 | ||
963 | 969 | ||
964 | 970 | ||
965 | - | @Callable( | |
966 | - | func reissueShare ( | |
971 | + | @Callable(dc) | |
972 | + | func reissueShare (cq) = valueOrElse(ar(dc), [Reissue(aa, cq, true)]) | |
967 | 973 | ||
968 | 974 | ||
969 | 975 | ||
970 | - | @Callable( | |
971 | - | func getDy ( | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | let | |
980 | - | $Tuple2(nil, $Tuple2(( | |
976 | + | @Callable(dc) | |
977 | + | func getDy (dU,dV,dW,dX) = { | |
978 | + | let aY = aM() | |
979 | + | let dY = valueOrErrorMessage(indexOf(aj, dU), "unknown token in") | |
980 | + | let dZ = valueOrErrorMessage(indexOf(aj, dV), "unknown token out") | |
981 | + | let bw = (aY[dY] + dW) | |
982 | + | let bJ = bt(dY, dZ, bw, aY) | |
983 | + | let cj = ((aY[dZ] - bJ) - 1) | |
984 | + | let bU = az(Address(fromBase58String(dX))) | |
985 | + | let bV = fraction(fraction(ad, bU, ac, CEILING), cj, ac) | |
986 | + | $Tuple2(nil, $Tuple2((cj - bV), bV)) | |
981 | 987 | } | |
982 | 988 | ||
983 | 989 | ||
984 | 990 | ||
985 | - | @Callable( | |
986 | - | func exchange ( | |
991 | + | @Callable(dc) | |
992 | + | func exchange (ea,eb) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
987 | 993 | then throw("size(payments) != 1") | |
988 | 994 | else { | |
989 | - | let | |
990 | - | if ( | |
991 | - | then (cJ | |
995 | + | let cJ = cF() | |
996 | + | if (cJ._1) | |
997 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
992 | 998 | else { | |
993 | - | let | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | if ( | |
999 | + | let cO = dc.payments[0] | |
1000 | + | let ec = ck(cO.assetId) | |
1001 | + | let ed = fromBase58String(ea) | |
1002 | + | let dW = cO.amount | |
1003 | + | let dY = valueOrErrorMessage(indexOf(aj, ec), "unknown token in") | |
1004 | + | let dZ = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1005 | + | let aY = aM() | |
1006 | + | let bw = (aY[dY] + dW) | |
1007 | + | let bJ = bt(dY, dZ, bw, aY) | |
1008 | + | let ee = ((aY[dZ] - bJ) - 1) | |
1009 | + | let bU = az(dc.originCaller) | |
1010 | + | let bV = fraction(ee, fraction(ad, bU, ac, CEILING), ac) | |
1011 | + | let cj = (ee - bV) | |
1012 | + | let dE = fraction(bV, ae, ac) | |
1013 | + | if (ax((cj >= eb))) | |
1008 | 1014 | then throw("Exchange resulted in fewer coins than expected") | |
1009 | 1015 | else { | |
1010 | - | func | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | if (( | |
1015 | - | then $Tuple2(( | |
1016 | - | else if (( | |
1017 | - | then $Tuple2(( | |
1018 | - | else $Tuple2(( | |
1016 | + | func ef (aO,eg) = { | |
1017 | + | let eh = aO | |
1018 | + | let cQ = eh._1 | |
1019 | + | let aq = eh._2 | |
1020 | + | if ((aq == dY)) | |
1021 | + | then $Tuple2((cQ :+ (eg + dW)), (aq + 1)) | |
1022 | + | else if ((aq == dZ)) | |
1023 | + | then $Tuple2((cQ :+ (eg - ee)), (aq + 1)) | |
1024 | + | else $Tuple2((cQ :+ eg), (aq + 1)) | |
1019 | 1025 | } | |
1020 | 1026 | ||
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | func | |
1026 | - | then | |
1027 | - | else | |
1027 | + | let ei = { | |
1028 | + | let aQ = aY | |
1029 | + | let aR = size(aQ) | |
1030 | + | let aS = $Tuple2(nil, 0) | |
1031 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1032 | + | then aU | |
1033 | + | else ef(aU, aQ[aV]) | |
1028 | 1034 | ||
1029 | - | func | |
1030 | - | then | |
1035 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1036 | + | then aU | |
1031 | 1037 | else throw("List size exceeds 10") | |
1032 | 1038 | ||
1033 | - | | |
1039 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1034 | 1040 | } | |
1035 | - | let | |
1036 | - | let | |
1037 | - | if ( | |
1041 | + | let cQ = ei._1 | |
1042 | + | let aq = ei._2 | |
1043 | + | if (cP(cQ)) | |
1038 | 1044 | then throw() | |
1039 | 1045 | else { | |
1040 | - | let | |
1041 | - | if (( | |
1046 | + | let dP = co(cO.amount, ck(cO.assetId)) | |
1047 | + | if ((dP == dP)) | |
1042 | 1048 | then { | |
1043 | - | let | |
1044 | - | if (( | |
1049 | + | let ej = cA(ee, ea) | |
1050 | + | if ((ej == ej)) | |
1045 | 1051 | then { | |
1046 | - | let | |
1047 | - | let | |
1048 | - | then invoke( | |
1052 | + | let dI = (bV - dE) | |
1053 | + | let dK = if ((dI > 0)) | |
1054 | + | then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)]) | |
1049 | 1055 | else 0 | |
1050 | - | if (( | |
1051 | - | then $Tuple2([IntegerEntry((ea + i), | |
1056 | + | if ((dK == dK)) | |
1057 | + | then $Tuple2([IntegerEntry((ec + i), bw), IntegerEntry((ea + i), (aY[dZ] - ee)), ScriptTransfer(dc.caller, cj, ed), ScriptTransfer(Q, dE, ed)], [cj, ed]) | |
1052 | 1058 | else throw("Strict value is not equal to itself.") | |
1053 | 1059 | } | |
1054 | 1060 | else throw("Strict value is not equal to itself.") | |
1061 | 1067 | ||
1062 | 1068 | ||
1063 | 1069 | ||
1064 | - | @Callable( | |
1065 | - | func withdraw ( | |
1070 | + | @Callable(dc) | |
1071 | + | func withdraw (ek) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
1066 | 1072 | then throw("size(payments) != 1") | |
1067 | 1073 | else { | |
1068 | - | let | |
1069 | - | let | |
1070 | - | if (( | |
1074 | + | let el = dc.payments[0].amount | |
1075 | + | let em = dc.payments[0].assetId | |
1076 | + | if ((aa != em)) | |
1071 | 1077 | then throw("unknown payment token") | |
1072 | 1078 | else { | |
1073 | - | let | |
1074 | - | if ( | |
1075 | - | then (cJ | |
1079 | + | let cJ = cF() | |
1080 | + | if (cJ._1) | |
1081 | + | then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments)) | |
1076 | 1082 | else { | |
1077 | - | func | |
1078 | - | let | |
1079 | - | let | |
1080 | - | let | |
1081 | - | let | |
1082 | - | if ( | |
1083 | + | func dx (aO,en) = { | |
1084 | + | let eo = aO | |
1085 | + | let dA = eo._1 | |
1086 | + | let aq = eo._2 | |
1087 | + | let ep = fraction(en, el, ab) | |
1088 | + | if (ax((ep >= ek[aq]))) | |
1083 | 1089 | then throw("Withdrawal resulted in fewer coins than expected") | |
1084 | 1090 | else { | |
1085 | - | let | |
1086 | - | if (( | |
1087 | - | then $Tuple2(( | |
1091 | + | let ej = cA(ep, aj[aq]) | |
1092 | + | if ((ej == ej)) | |
1093 | + | then $Tuple2((dA ++ [IntegerEntry((aj[aq] + i), (en - ep)), ScriptTransfer(dc.originCaller, ep, fromBase58String(aj[aq]))]), (aq + 1)) | |
1088 | 1094 | else throw("Strict value is not equal to itself.") | |
1089 | 1095 | } | |
1090 | 1096 | } | |
1091 | 1097 | ||
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | func | |
1097 | - | then | |
1098 | - | else | |
1098 | + | let eq = { | |
1099 | + | let aQ = aM() | |
1100 | + | let aR = size(aQ) | |
1101 | + | let aS = $Tuple2(nil, 0) | |
1102 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1103 | + | then aU | |
1104 | + | else dx(aU, aQ[aV]) | |
1099 | 1105 | ||
1100 | - | func | |
1101 | - | then | |
1106 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1107 | + | then aU | |
1102 | 1108 | else throw("List size exceeds 10") | |
1103 | 1109 | ||
1104 | - | | |
1110 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1105 | 1111 | } | |
1106 | - | let | |
1107 | - | let | |
1108 | - | ( | |
1112 | + | let dA = eq._1 | |
1113 | + | let aq = eq._2 | |
1114 | + | (dA ++ [Burn(aa, el), IntegerEntry(n, (ab - el))]) | |
1109 | 1115 | } | |
1110 | 1116 | } | |
1111 | 1117 | }) | |
1112 | 1118 | ||
1113 | 1119 | ||
1114 | 1120 | ||
1115 | - | @Callable( | |
1116 | - | func withdrawWithUnlock ( | |
1121 | + | @Callable(dc) | |
1122 | + | func withdrawWithUnlock (ek,er) = valueOrElse(ao(), if ((0 >= er)) | |
1117 | 1123 | then throw("Unlock amount must be positive") | |
1118 | 1124 | else { | |
1119 | - | let | |
1120 | - | if ( | |
1121 | - | then (cJ | |
1125 | + | let cJ = cF() | |
1126 | + | if (cJ._1) | |
1127 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
1122 | 1128 | else { | |
1123 | - | let | |
1124 | - | then if ((size( | |
1129 | + | let el = if ((size(dc.payments) > 0)) | |
1130 | + | then if ((size(dc.payments) != 1)) | |
1125 | 1131 | then throw("size(payments) != 1") | |
1126 | 1132 | else { | |
1127 | - | let | |
1128 | - | if (( | |
1133 | + | let em = dc.payments[0].assetId | |
1134 | + | if ((aa != em)) | |
1129 | 1135 | then throw("unknown payment token") | |
1130 | - | else | |
1136 | + | else dc.payments[0].amount | |
1131 | 1137 | } | |
1132 | 1138 | else 0 | |
1133 | - | let | |
1134 | - | if (( | |
1139 | + | let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil) | |
1140 | + | if ((es == es)) | |
1135 | 1141 | then { | |
1136 | - | let | |
1137 | - | let | |
1138 | - | if (( | |
1142 | + | let et = (el + er) | |
1143 | + | let dJ = invoke(this, "withdraw", [ek], [AttachedPayment(aa, et)]) | |
1144 | + | if ((dJ == dJ)) | |
1139 | 1145 | then nil | |
1140 | 1146 | else throw("Strict value is not equal to itself.") | |
1141 | 1147 | } | |
1145 | 1151 | ||
1146 | 1152 | ||
1147 | 1153 | ||
1148 | - | @Callable( | |
1149 | - | func calcWithdrawOneCoin ( | |
1154 | + | @Callable(dc) | |
1155 | + | func calcWithdrawOneCoin (eu,ea,aB) = if ((0 >= eu)) | |
1150 | 1156 | then throw("Amount must be positive") | |
1151 | 1157 | else { | |
1152 | - | let | |
1153 | - | $Tuple2(nil, | |
1158 | + | let aq = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1159 | + | $Tuple2(nil, bR(aM(), eu, aq, Address(fromBase58String(aB)))._1) | |
1154 | 1160 | } | |
1155 | 1161 | ||
1156 | 1162 | ||
1157 | 1163 | ||
1158 | - | @Callable( | |
1159 | - | func withdrawOneCoin ( | |
1164 | + | @Callable(dc) | |
1165 | + | func withdrawOneCoin (ea,ev) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
1160 | 1166 | then throw("size(payments) != 1") | |
1161 | 1167 | else { | |
1162 | - | let | |
1163 | - | if ( | |
1164 | - | then (cJ | |
1168 | + | let cJ = cF() | |
1169 | + | if (cJ._1) | |
1170 | + | then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments)) | |
1165 | 1171 | else { | |
1166 | - | let | |
1167 | - | let | |
1168 | - | if (( | |
1172 | + | let el = dc.payments[0].amount | |
1173 | + | let em = dc.payments[0].assetId | |
1174 | + | if ((em != aa)) | |
1169 | 1175 | then throw("unknown token") | |
1170 | 1176 | else { | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if ( | |
1177 | + | let ew = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1178 | + | let ed = fromBase58String(ea) | |
1179 | + | let aY = aM() | |
1180 | + | let ex = bR(aY, el, ew, dc.originCaller) | |
1181 | + | let cj = ex._1 | |
1182 | + | let ey = ex._2 | |
1183 | + | if (ax((cj >= ev))) | |
1178 | 1184 | then throw("Not enough coins removed") | |
1179 | 1185 | else { | |
1180 | - | let | |
1181 | - | let | |
1182 | - | func | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | if (( | |
1187 | - | then $Tuple2(( | |
1188 | - | else $Tuple2(( | |
1186 | + | let dE = fraction(ey, ae, ac) | |
1187 | + | let ez = (cj + ey) | |
1188 | + | func ef (aO,eg) = { | |
1189 | + | let eA = aO | |
1190 | + | let cQ = eA._1 | |
1191 | + | let aq = eA._2 | |
1192 | + | if ((aq == ew)) | |
1193 | + | then $Tuple2((cQ :+ (eg - ez)), (aq + 1)) | |
1194 | + | else $Tuple2((cQ :+ eg), (aq + 1)) | |
1189 | 1195 | } | |
1190 | 1196 | ||
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | func | |
1196 | - | then | |
1197 | - | else | |
1197 | + | let eB = { | |
1198 | + | let aQ = aY | |
1199 | + | let aR = size(aQ) | |
1200 | + | let aS = $Tuple2(nil, 0) | |
1201 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1202 | + | then aU | |
1203 | + | else ef(aU, aQ[aV]) | |
1198 | 1204 | ||
1199 | - | func | |
1200 | - | then | |
1205 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1206 | + | then aU | |
1201 | 1207 | else throw("List size exceeds 10") | |
1202 | 1208 | ||
1203 | - | | |
1209 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1204 | 1210 | } | |
1205 | - | let | |
1206 | - | let | |
1207 | - | if ( | |
1211 | + | let cQ = eB._1 | |
1212 | + | let eC = eB._2 | |
1213 | + | if (cP(cQ)) | |
1208 | 1214 | then throw() | |
1209 | 1215 | else { | |
1210 | - | let | |
1211 | - | if (( | |
1216 | + | let ej = cA(ez, ea) | |
1217 | + | if ((ej == ej)) | |
1212 | 1218 | then { | |
1213 | - | let | |
1214 | - | let | |
1215 | - | then invoke( | |
1219 | + | let dI = (ey - dE) | |
1220 | + | let dK = if ((dI > 0)) | |
1221 | + | then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)]) | |
1216 | 1222 | else 0 | |
1217 | - | if (( | |
1218 | - | then [ScriptTransfer( | |
1223 | + | if ((dK == dK)) | |
1224 | + | then [ScriptTransfer(dc.originCaller, cj, ed), IntegerEntry((aj[ew] + i), (aY[ew] - ez)), Burn(aa, el), ScriptTransfer(Q, dE, ed), IntegerEntry(n, (ab - el))] | |
1219 | 1225 | else throw("Strict value is not equal to itself.") | |
1220 | 1226 | } | |
1221 | 1227 | else throw("Strict value is not equal to itself.") | |
1227 | 1233 | ||
1228 | 1234 | ||
1229 | 1235 | ||
1230 | - | @Callable( | |
1231 | - | func withdrawOneCoinWithUnlock ( | |
1236 | + | @Callable(dc) | |
1237 | + | func withdrawOneCoinWithUnlock (ea,ev,er) = valueOrElse(ao(), if ((0 >= er)) | |
1232 | 1238 | then throw("Unlock amount must be positive") | |
1233 | 1239 | else { | |
1234 | - | let | |
1235 | - | if ( | |
1236 | - | then (cJ | |
1240 | + | let cJ = cF() | |
1241 | + | if (cJ._1) | |
1242 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
1237 | 1243 | else { | |
1238 | - | let | |
1239 | - | then if ((size( | |
1244 | + | let el = if ((size(dc.payments) > 0)) | |
1245 | + | then if ((size(dc.payments) != 1)) | |
1240 | 1246 | then throw("size(payments) != 1") | |
1241 | 1247 | else { | |
1242 | - | let | |
1243 | - | if (( | |
1248 | + | let em = dc.payments[0].assetId | |
1249 | + | if ((aa != em)) | |
1244 | 1250 | then throw("unknown payment token") | |
1245 | - | else | |
1251 | + | else dc.payments[0].amount | |
1246 | 1252 | } | |
1247 | 1253 | else 0 | |
1248 | - | let | |
1249 | - | if (( | |
1254 | + | let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil) | |
1255 | + | if ((es == es)) | |
1250 | 1256 | then { | |
1251 | - | let | |
1252 | - | let | |
1253 | - | if (( | |
1257 | + | let et = (el + er) | |
1258 | + | let dJ = invoke(this, "withdrawOneCoin", [ea, ev], [AttachedPayment(aa, et)]) | |
1259 | + | if ((dJ == dJ)) | |
1254 | 1260 | then nil | |
1255 | 1261 | else throw("Strict value is not equal to itself.") | |
1256 | 1262 | } | |
1260 | 1266 | ||
1261 | 1267 | ||
1262 | 1268 | ||
1263 | - | @Callable( | |
1264 | - | func A () = $Tuple2(nil, | |
1269 | + | @Callable(dc) | |
1270 | + | func A () = $Tuple2(nil, aH()) | |
1265 | 1271 | ||
1266 | 1272 | ||
1267 | 1273 | ||
1268 | - | @Callable( | |
1274 | + | @Callable(dc) | |
1269 | 1275 | func getVirtualPrice () = { | |
1270 | - | let | |
1271 | - | $Tuple2(nil, fraction( | |
1276 | + | let bp = bb(aM(), aH()) | |
1277 | + | $Tuple2(nil, fraction(bp, a, ab)) | |
1272 | 1278 | } | |
1273 | 1279 | ||
1274 | 1280 | ||
1275 | 1281 | ||
1276 | - | @Callable( | |
1277 | - | func calcTokenAmount ( | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | func | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | then | |
1287 | - | else -( | |
1288 | - | $Tuple2(( | |
1282 | + | @Callable(dc) | |
1283 | + | func calcTokenAmount (eD,eE) = { | |
1284 | + | let bc = aH() | |
1285 | + | let eF = aM() | |
1286 | + | let bX = bs(eF, bc) | |
1287 | + | func eG (aO,en) = { | |
1288 | + | let eH = aO | |
1289 | + | let cQ = eH._1 | |
1290 | + | let aq = eH._2 | |
1291 | + | let dt = (en + (if (eE) | |
1292 | + | then eD[aq] | |
1293 | + | else -(eD[aq]))) | |
1294 | + | $Tuple2((cQ :+ dt), (aq + 1)) | |
1289 | 1295 | } | |
1290 | 1296 | ||
1291 | - | let | |
1292 | - | let | |
1293 | - | let | |
1294 | - | func | |
1295 | - | then | |
1296 | - | else | |
1297 | + | let cQ = ( let aQ = eF | |
1298 | + | let aR = size(aQ) | |
1299 | + | let aS = $Tuple2(nil, 0) | |
1300 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1301 | + | then aU | |
1302 | + | else eG(aU, aQ[aV]) | |
1297 | 1303 | ||
1298 | - | func | |
1299 | - | then | |
1304 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1305 | + | then aU | |
1300 | 1306 | else throw("List size exceeds 10") | |
1301 | 1307 | ||
1302 | - | | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then ( | |
1306 | - | else ( | |
1307 | - | $Tuple2(nil, fraction( | |
1308 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1 | |
1309 | + | let bY = bs(cQ, bc) | |
1310 | + | let eI = if (eE) | |
1311 | + | then (bY - bX) | |
1312 | + | else (bX - bY) | |
1313 | + | $Tuple2(nil, fraction(eI, ab, bX)) | |
1308 | 1314 | } | |
1309 | 1315 | ||
1310 | 1316 | ||
1311 | 1317 | ||
1312 | - | @Callable( | |
1313 | - | func rampA ( | |
1318 | + | @Callable(dc) | |
1319 | + | func rampA (eJ,eK) = valueOrElse(ao(), valueOrElse(ap(dc), if (ax((aw >= (ah + e)))) | |
1314 | 1320 | then throw("too often") | |
1315 | - | else if ( | |
1321 | + | else if (ax((eK >= (aw + e)))) | |
1316 | 1322 | then throw("insufficient time") | |
1317 | 1323 | else { | |
1318 | - | let | |
1319 | - | if ( | |
1320 | - | then (b > | |
1324 | + | let eL = aH() | |
1325 | + | if (ax(if ((eJ > 0)) | |
1326 | + | then (b > eJ) | |
1321 | 1327 | else false)) | |
1322 | 1328 | then throw("out of base range") | |
1323 | - | else if ( | |
1324 | - | then (( | |
1329 | + | else if (ax(if (if ((eJ >= eL)) | |
1330 | + | then ((eL * c) >= eJ) | |
1325 | 1331 | else false) | |
1326 | 1332 | then true | |
1327 | - | else if (( | |
1328 | - | then (( | |
1333 | + | else if ((eL > eJ)) | |
1334 | + | then ((eJ * c) >= eL) | |
1329 | 1335 | else false)) | |
1330 | 1336 | then throw("out of range") | |
1331 | - | else [IntegerEntry("initial_A", | |
1337 | + | else [IntegerEntry("initial_A", eL), IntegerEntry("future_A", eJ), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", eK)] | |
1332 | 1338 | })) | |
1333 | 1339 | ||
1334 | 1340 | ||
1335 | 1341 | ||
1336 | - | @Callable( | |
1337 | - | func stopRampA () = valueOrElse( | |
1338 | - | let | |
1339 | - | [IntegerEntry("initial_A", | |
1342 | + | @Callable(dc) | |
1343 | + | func stopRampA () = valueOrElse(ao(), valueOrElse(ap(dc), { | |
1344 | + | let eM = aH() | |
1345 | + | [IntegerEntry("initial_A", eM), IntegerEntry("future_A", eM), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", aw)] | |
1340 | 1346 | })) | |
1341 | 1347 | ||
1342 | 1348 | ||
1343 | 1349 | ||
1344 | - | @Callable( | |
1345 | - | func shutdown () = valueOrElse( | |
1346 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
1347 | - | else | |
1350 | + | @Callable(dc) | |
1351 | + | func shutdown () = valueOrElse(ap(dc), if (!(Y)) | |
1352 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified"))) | |
1353 | + | else al("Paused by admin")) | |
1348 | 1354 | ||
1349 | 1355 | ||
1350 | 1356 | ||
1351 | - | @Callable( | |
1352 | - | func activate () = valueOrElse( | |
1353 | - | then | |
1354 | - | else [BooleanEntry(j, true), DeleteEntry( | |
1357 | + | @Callable(dc) | |
1358 | + | func activate () = valueOrElse(ap(dc), if (Y) | |
1359 | + | then an() | |
1360 | + | else [BooleanEntry(j, true), DeleteEntry(l)]) | |
1355 | 1361 | ||
1356 | 1362 | ||
1357 | 1363 | ||
1358 | - | @Callable( | |
1359 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
1364 | + | @Callable(dc) | |
1365 | + | func takeIntoAccountExtraFunds () = valueOrElse(ao(), if ((dc.caller != Q)) | |
1360 | 1366 | then throw("Only the wallet can call this function") | |
1361 | 1367 | else { | |
1362 | - | let | |
1363 | - | func | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | if ((0 > | |
1371 | - | then | |
1368 | + | let eF = aM() | |
1369 | + | func eN (aO,aP) = { | |
1370 | + | let eO = aO | |
1371 | + | let eP = eO._1 | |
1372 | + | let aq = eO._2 | |
1373 | + | let eQ = fromBase58String(aP) | |
1374 | + | let eR = (assetBalance(this, eQ) + cC(eQ)) | |
1375 | + | let eS = (eR - eF[aq]) | |
1376 | + | if ((0 > eS)) | |
1377 | + | then al(("Enroll amount negative for asset" + aP)) | |
1372 | 1378 | else { | |
1373 | - | let | |
1374 | - | then invoke( | |
1379 | + | let dK = if ((eS > 0)) | |
1380 | + | then invoke(V, "airDrop", nil, [AttachedPayment(eQ, eS)]) | |
1375 | 1381 | else 0 | |
1376 | - | if (( | |
1377 | - | then $Tuple2(( | |
1382 | + | if ((dK == dK)) | |
1383 | + | then $Tuple2((eP + eS), (aq + 1)) | |
1378 | 1384 | else throw("Strict value is not equal to itself.") | |
1379 | 1385 | } | |
1380 | 1386 | } | |
1381 | 1387 | ||
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | func | |
1387 | - | then | |
1388 | - | else | |
1388 | + | let dw = { | |
1389 | + | let aQ = aj | |
1390 | + | let aR = size(aQ) | |
1391 | + | let aS = $Tuple2(0, 0) | |
1392 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1393 | + | then aU | |
1394 | + | else eN(aU, aQ[aV]) | |
1389 | 1395 | ||
1390 | - | func | |
1391 | - | then | |
1396 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1397 | + | then aU | |
1392 | 1398 | else throw("List size exceeds 10") | |
1393 | 1399 | ||
1394 | - | | |
1400 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1395 | 1401 | } | |
1396 | - | if (( | |
1402 | + | if ((dw._1 == 0)) | |
1397 | 1403 | then throw("No money to take") | |
1398 | 1404 | else nil | |
1399 | 1405 | }) | |
1400 | 1406 | ||
1401 | 1407 | ||
1402 | - | @Verifier( | |
1403 | - | func | |
1404 | - | let | |
1405 | - | let | |
1408 | + | @Verifier(eT) | |
1409 | + | func eU () = { | |
1410 | + | let eV = { | |
1411 | + | let eW = if (sigVerify(eT.bodyBytes, eT.proofs[0], M)) | |
1406 | 1412 | then 1 | |
1407 | 1413 | else 0 | |
1408 | - | let | |
1414 | + | let eX = if (sigVerify(eT.bodyBytes, eT.proofs[1], N)) | |
1409 | 1415 | then 1 | |
1410 | 1416 | else 0 | |
1411 | - | let | |
1417 | + | let eY = if (sigVerify(eT.bodyBytes, eT.proofs[2], O)) | |
1412 | 1418 | then 1 | |
1413 | 1419 | else 0 | |
1414 | - | ((( | |
1420 | + | (((eW + eX) + eY) >= 2) | |
1415 | 1421 | } | |
1416 | - | let | |
1417 | - | if ($isInstanceOf( | |
1422 | + | let J = eT | |
1423 | + | if ($isInstanceOf(J, "InvokeScriptTransaction")) | |
1418 | 1424 | then { | |
1419 | - | let | |
1420 | - | let | |
1421 | - | then ( | |
1425 | + | let dJ = J | |
1426 | + | let eZ = if ((dJ.dApp == this)) | |
1427 | + | then (dJ.function == "takeIntoAccountExtraFunds") | |
1422 | 1428 | else false | |
1423 | - | let | |
1429 | + | let fa = if (if (if (sigVerify(eT.bodyBytes, eT.proofs[0], M)) | |
1424 | 1430 | then true | |
1425 | - | else sigVerify( | |
1431 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], N)) | |
1426 | 1432 | then true | |
1427 | - | else sigVerify( | |
1433 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], O)) | |
1428 | 1434 | then true | |
1429 | - | else sigVerify( | |
1430 | - | if (if ( | |
1431 | - | then | |
1435 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], P) | |
1436 | + | if (if (eZ) | |
1437 | + | then fa | |
1432 | 1438 | else false) | |
1433 | 1439 | then true | |
1434 | - | else | |
1440 | + | else eV | |
1435 | 1441 | } | |
1436 | - | else | |
1442 | + | else eV | |
1437 | 1443 | } | |
1438 | 1444 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 6 | |
11 | 11 | ||
12 | 12 | let e = (86400 / 60) | |
13 | 13 | ||
14 | 14 | let f = "3.0.0" | |
15 | 15 | ||
16 | 16 | let g = "version" | |
17 | 17 | ||
18 | 18 | let h = "asset_ids" | |
19 | 19 | ||
20 | 20 | let i = "_balance" | |
21 | 21 | ||
22 | 22 | let j = "active" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "active_all_contracts" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "shutdown_cause" | |
27 | 27 | ||
28 | - | let m = "share_asset_ | |
28 | + | let m = "share_asset_id" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "share_asset_supply" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "commission" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "dAppThresholdCoef" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "staking_usdnnsbt_address" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "discounts" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "discount_values" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_SWOP_amount" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "_GSwop_amount" | |
45 | 45 | ||
46 | - | let v = "admin_pub_ | |
46 | + | let v = "admin_pub_1" | |
47 | 47 | ||
48 | - | let w = "admin_pub_ | |
48 | + | let w = "admin_pub_2" | |
49 | 49 | ||
50 | - | let x = "admin_ | |
50 | + | let x = "admin_pub_3" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "admin_invoke_pub" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "money_box_address" | |
55 | 55 | ||
56 | - | let B = " | |
56 | + | let B = "governance_address" | |
57 | 57 | ||
58 | - | let C = " | |
58 | + | let C = "voting_address" | |
59 | 59 | ||
60 | - | let E = " | |
60 | + | let E = "farming_address" | |
61 | 61 | ||
62 | - | let F = | |
62 | + | let F = "lp_farming" | |
63 | 63 | ||
64 | - | func G (H) = { | |
65 | - | let I = getString(F, H) | |
66 | - | if ($isInstanceOf(I, "String")) | |
64 | + | let G = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
65 | + | ||
66 | + | func H (I) = { | |
67 | + | let J = getString(G, I) | |
68 | + | if ($isInstanceOf(J, "String")) | |
67 | 69 | then { | |
68 | - | let | |
69 | - | fromBase58String( | |
70 | + | let K = J | |
71 | + | fromBase58String(K) | |
70 | 72 | } | |
71 | 73 | else { | |
72 | - | let | |
73 | - | throw(( | |
74 | + | let L = J | |
75 | + | throw((I + "is empty")) | |
74 | 76 | } | |
75 | 77 | } | |
76 | 78 | ||
77 | 79 | ||
78 | - | let | |
80 | + | let M = H(v) | |
79 | 81 | ||
80 | - | let | |
82 | + | let N = H(w) | |
81 | 83 | ||
82 | - | let | |
84 | + | let O = H(x) | |
83 | 85 | ||
84 | - | let | |
86 | + | let P = H(y) | |
85 | 87 | ||
86 | - | let | |
88 | + | let Q = Address(H(z)) | |
87 | 89 | ||
88 | - | let | |
90 | + | let R = Address(H(B)) | |
89 | 91 | ||
90 | - | let | |
92 | + | let S = Address(H(q)) | |
91 | 93 | ||
92 | - | let | |
94 | + | let T = Address(H(C)) | |
93 | 95 | ||
94 | - | let | |
96 | + | let U = Address(H(E)) | |
95 | 97 | ||
96 | - | let | |
98 | + | let V = Address(H(F)) | |
97 | 99 | ||
98 | - | let | |
100 | + | let W = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
99 | 101 | ||
100 | - | let | |
102 | + | let X = [toBase58String(W)] | |
101 | 103 | ||
102 | - | let | |
104 | + | let Y = getBooleanValue(this, j) | |
103 | 105 | ||
104 | - | let | |
106 | + | let Z = valueOrElse(getBoolean(G, k), true) | |
105 | 107 | ||
106 | - | let Z = getIntegerValue(this, m) | |
107 | - | ||
108 | - | let aa = 1000000 | |
108 | + | let aa = fromBase58String(getStringValue(this, m)) | |
109 | 109 | ||
110 | 110 | let ab = getIntegerValue(this, n) | |
111 | 111 | ||
112 | - | let ac = | |
112 | + | let ac = 1000000 | |
113 | 113 | ||
114 | - | let ad = getIntegerValue(this, | |
114 | + | let ad = getIntegerValue(this, o) | |
115 | 115 | ||
116 | - | let ae = | |
116 | + | let ae = fraction(40, ac, 100) | |
117 | 117 | ||
118 | - | let af = | |
118 | + | let af = getIntegerValue(this, "initial_A") | |
119 | 119 | ||
120 | - | let ag = | |
120 | + | let ag = getIntegerValue(this, "future_A") | |
121 | 121 | ||
122 | - | let ah = | |
122 | + | let ah = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
123 | 123 | ||
124 | - | let ai = | |
124 | + | let ai = valueOrElse(getInteger(this, "future_A_time"), 0) | |
125 | 125 | ||
126 | - | func aj (ak) = [BooleanEntry(j, false), StringEntry(k, ak)] | |
126 | + | let aj = split(getStringValue(this, h), ",") | |
127 | + | ||
128 | + | let ak = size(aj) | |
129 | + | ||
130 | + | func al (am) = [BooleanEntry(j, false), StringEntry(l, am)] | |
127 | 131 | ||
128 | 132 | ||
129 | - | func | |
133 | + | func an () = throw("DApp is already active") | |
130 | 134 | ||
131 | 135 | ||
132 | - | func am () = if (X) | |
136 | + | func ao () = if (if (Y) | |
137 | + | then Z | |
138 | + | else false) | |
133 | 139 | then unit | |
134 | 140 | else throw("DApp is inactive at this moment") | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
143 | + | func ap (aq) = if (containsElement([M, N, O], aq.callerPublicKey)) | |
138 | 144 | then unit | |
139 | 145 | else throw("Only admin can call this function") | |
140 | 146 | ||
141 | 147 | ||
142 | - | func | |
148 | + | func ar (aq) = if ((this == aq.caller)) | |
143 | 149 | then unit | |
144 | 150 | else throw("Only contract itself can call this function") | |
145 | 151 | ||
146 | 152 | ||
147 | - | let | |
153 | + | let as = toBigInt(2) | |
148 | 154 | ||
149 | - | let | |
155 | + | let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
150 | 156 | ||
151 | - | let | |
157 | + | let au = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
152 | 158 | ||
153 | - | let | |
159 | + | let av = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
154 | 160 | ||
155 | - | let | |
161 | + | let aw = height | |
156 | 162 | ||
157 | - | func | |
163 | + | func ax (ay) = if (ay) | |
158 | 164 | then false | |
159 | 165 | else true | |
160 | 166 | ||
161 | 167 | ||
162 | - | func | |
163 | - | let | |
164 | - | let | |
165 | - | if ($isInstanceOf( | |
168 | + | func az (aA) = { | |
169 | + | let aB = { | |
170 | + | let J = aA | |
171 | + | if ($isInstanceOf(J, "Address")) | |
166 | 172 | then { | |
167 | - | let | |
168 | - | toString( | |
173 | + | let aC = J | |
174 | + | toString(aC) | |
169 | 175 | } | |
170 | - | else if ($isInstanceOf( | |
176 | + | else if ($isInstanceOf(J, "String")) | |
171 | 177 | then { | |
172 | - | let | |
173 | - | | |
178 | + | let aC = J | |
179 | + | aC | |
174 | 180 | } | |
175 | 181 | else throw("Unknow type of user Addr") | |
176 | 182 | } | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | if (if (( | |
182 | - | then (parseIntValue( | |
183 | + | let aD = valueOrElse(getInteger(R, (aB + u)), 0) | |
184 | + | let aE = valueOrElse(getInteger(R, (aB + u)), aD) | |
185 | + | let aF = split(getStringValue(G, s), ",") | |
186 | + | let aG = split(getStringValue(G, r), ",") | |
187 | + | if (if ((aE >= parseIntValue(aF[0]))) | |
188 | + | then (parseIntValue(aF[1]) > aE) | |
183 | 189 | else false) | |
184 | - | then ( | |
185 | - | else if (if (( | |
186 | - | then (parseIntValue( | |
190 | + | then (ac - parseIntValue(aG[0])) | |
191 | + | else if (if ((aE >= parseIntValue(aF[1]))) | |
192 | + | then (parseIntValue(aF[2]) > aE) | |
187 | 193 | else false) | |
188 | - | then ( | |
189 | - | else if (if (( | |
190 | - | then (parseIntValue( | |
194 | + | then (ac - parseIntValue(aG[1])) | |
195 | + | else if (if ((aE >= parseIntValue(aF[2]))) | |
196 | + | then (parseIntValue(aF[3]) > aE) | |
191 | 197 | else false) | |
192 | - | then ( | |
193 | - | else if (if (( | |
194 | - | then (parseIntValue( | |
198 | + | then (ac - parseIntValue(aG[2])) | |
199 | + | else if (if ((aE >= parseIntValue(aF[3]))) | |
200 | + | then (parseIntValue(aF[4]) > aE) | |
195 | 201 | else false) | |
196 | - | then ( | |
197 | - | else if (( | |
198 | - | then ( | |
199 | - | else | |
202 | + | then (ac - parseIntValue(aG[3])) | |
203 | + | else if ((aE >= parseIntValue(aF[4]))) | |
204 | + | then (ac - parseIntValue(aG[4])) | |
205 | + | else ac | |
200 | 206 | } | |
201 | 207 | ||
202 | 208 | ||
203 | - | func | |
204 | - | let | |
205 | - | let | |
206 | - | if (( | |
209 | + | func aH () = { | |
210 | + | let aI = ai | |
211 | + | let aJ = ag | |
212 | + | if ((aI > aw)) | |
207 | 213 | then { | |
208 | - | let | |
209 | - | let | |
210 | - | if (( | |
211 | - | then ( | |
212 | - | else ( | |
214 | + | let aK = af | |
215 | + | let aL = ah | |
216 | + | if ((aJ > aK)) | |
217 | + | then (aK + (((aJ - aK) * (aw - aL)) / (aI - aL))) | |
218 | + | else (aK - (((aK - aJ) * (aw - aL)) / (aI - aL))) | |
213 | 219 | } | |
214 | - | else | |
220 | + | else aJ | |
215 | 221 | } | |
216 | 222 | ||
217 | 223 | ||
218 | - | func | |
219 | - | func | |
224 | + | func aM () = { | |
225 | + | func aN (aO,aP) = (aO :+ valueOrElse(getInteger(this, (aP + i)), 0)) | |
220 | 226 | ||
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
227 | + | let aQ = aj | |
228 | + | let aR = size(aQ) | |
229 | + | let aS = nil | |
230 | + | func aT (aU,aV) = if ((aV >= aR)) | |
231 | + | then aU | |
232 | + | else aN(aU, aQ[aV]) | |
227 | 233 | ||
228 | - | func | |
229 | - | then | |
234 | + | func aW (aU,aV) = if ((aV >= aR)) | |
235 | + | then aU | |
230 | 236 | else throw("List size exceeds 10") | |
231 | 237 | ||
232 | - | | |
238 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
233 | 239 | } | |
234 | 240 | ||
235 | 241 | ||
236 | - | func | |
242 | + | func aX (aY) = aY | |
237 | 243 | ||
238 | 244 | ||
239 | - | func | |
245 | + | func aZ (aO,ba) = (aO + ba) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
245 | - | then | |
246 | - | else throw(($getType( | |
248 | + | func bb (aY,bc) = { | |
249 | + | let bd = invoke(this, "D", [aY, bc], nil) | |
250 | + | if ($isInstanceOf(bd, "Int")) | |
251 | + | then bd | |
252 | + | else throw(($getType(bd) + " couldn't be cast to Int")) | |
247 | 253 | } | |
248 | 254 | ||
249 | 255 | ||
250 | - | func | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | func | |
256 | - | then | |
257 | - | else | |
256 | + | func be (aY,bc) = { | |
257 | + | let bf = { | |
258 | + | let aQ = aY | |
259 | + | let aR = size(aQ) | |
260 | + | let aS = 0 | |
261 | + | func aT (aU,aV) = if ((aV >= aR)) | |
262 | + | then aU | |
263 | + | else aZ(aU, aQ[aV]) | |
258 | 264 | ||
259 | - | func | |
260 | - | then | |
265 | + | func aW (aU,aV) = if ((aV >= aR)) | |
266 | + | then aU | |
261 | 267 | else throw("List size exceeds 10") | |
262 | 268 | ||
263 | - | | |
269 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
264 | 270 | } | |
265 | - | if (( | |
271 | + | if ((bf == 0)) | |
266 | 272 | then 0 | |
267 | 273 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
274 | + | let bg = (bc * ak) | |
275 | + | let bh = (toBigInt(bg) * toBigInt(bf)) | |
276 | + | let bi = toBigInt((bg - 1)) | |
277 | + | func bj (aO,aq) = if ((aO._2 == true)) | |
278 | + | then aO | |
273 | 279 | else { | |
274 | - | let | |
275 | - | func | |
276 | - | then (( | |
277 | - | else | |
280 | + | let bk = aO._1 | |
281 | + | func bl (bm,aq) = if ((ak > aq)) | |
282 | + | then ((bm * bk) / (toBigInt(aY[aq]) * toBigInt(ak))) | |
283 | + | else bm | |
278 | 284 | ||
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | func | |
284 | - | then | |
285 | - | else | |
285 | + | let bm = { | |
286 | + | let aQ = at | |
287 | + | let aR = size(aQ) | |
288 | + | let aS = bk | |
289 | + | func bn (aU,aV) = if ((aV >= aR)) | |
290 | + | then aU | |
291 | + | else bl(aU, aQ[aV]) | |
286 | 292 | ||
287 | - | func | |
288 | - | then | |
293 | + | func bo (aU,aV) = if ((aV >= aR)) | |
294 | + | then aU | |
289 | 295 | else throw("List size exceeds 10") | |
290 | 296 | ||
291 | - | | |
297 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
292 | 298 | } | |
293 | - | let | |
294 | - | if (( | |
295 | - | then if ((1 >= toInt(( | |
296 | - | then $Tuple2( | |
297 | - | else $Tuple2( | |
298 | - | else if ((1 >= toInt(( | |
299 | - | then $Tuple2( | |
300 | - | else $Tuple2( | |
299 | + | let bp = fraction((bh + (toBigInt(ak) * bm)), bk, ((bi * bk) + (toBigInt((ak + 1)) * bm))) | |
300 | + | if ((bp > bk)) | |
301 | + | then if ((1 >= toInt((bp - bk)))) | |
302 | + | then $Tuple2(bp, true) | |
303 | + | else $Tuple2(bp, false) | |
304 | + | else if ((1 >= toInt((bk - bp)))) | |
305 | + | then $Tuple2(bp, true) | |
306 | + | else $Tuple2(bp, false) | |
301 | 307 | } | |
302 | 308 | ||
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | func | |
308 | - | then | |
309 | - | else | |
309 | + | let bq = { | |
310 | + | let aQ = au | |
311 | + | let aR = size(aQ) | |
312 | + | let aS = $Tuple2(toBigInt(bf), false) | |
313 | + | func bn (aU,aV) = if ((aV >= aR)) | |
314 | + | then aU | |
315 | + | else bj(aU, aQ[aV]) | |
310 | 316 | ||
311 | - | func | |
312 | - | then | |
317 | + | func bo (aU,aV) = if ((aV >= aR)) | |
318 | + | then aU | |
313 | 319 | else throw("List size exceeds 15") | |
314 | 320 | ||
315 | - | | |
321 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
316 | 322 | } | |
317 | - | let | |
318 | - | let | |
319 | - | if (( | |
320 | - | then throw(("get_D() not finished with " + toString( | |
321 | - | else toInt( | |
323 | + | let bp = bq._1 | |
324 | + | let br = bq._2 | |
325 | + | if ((br == false)) | |
326 | + | then throw(("get_D() not finished with " + toString(bp))) | |
327 | + | else toInt(bp) | |
322 | 328 | } | |
323 | 329 | } | |
324 | 330 | ||
325 | 331 | ||
326 | - | func | |
332 | + | func bs (aY,bc) = bb(aX(aY), bc) | |
327 | 333 | ||
328 | 334 | ||
329 | - | func | |
335 | + | func bt (bu,bv,bw,bx) = if (ax((bu != bv))) | |
330 | 336 | then throw("same coin") | |
331 | - | else if ( | |
332 | - | then ( | |
337 | + | else if (ax(if ((bv >= 0)) | |
338 | + | then (bu >= 0) | |
333 | 339 | else false)) | |
334 | 340 | then throw("below zero") | |
335 | - | else if ( | |
336 | - | then ( | |
341 | + | else if (ax(if ((ak > bv)) | |
342 | + | then (ak > bu) | |
337 | 343 | else false)) | |
338 | 344 | then throw("above N_COINS") | |
339 | 345 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | func | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then | |
349 | - | else | |
350 | - | if (if (( | |
351 | - | then ( | |
346 | + | let bc = aH() | |
347 | + | let bp = bb(bx, bc) | |
348 | + | let bg = (bc * ak) | |
349 | + | func by (aO,aq) = { | |
350 | + | let bz = aO | |
351 | + | let bA = bz._1 | |
352 | + | let bB = bz._2 | |
353 | + | let bC = if ((bu == aq)) | |
354 | + | then bw | |
355 | + | else bx[aq] | |
356 | + | if (if ((aq != bv)) | |
357 | + | then (ak > aq) | |
352 | 358 | else false) | |
353 | - | then $Tuple2(( | |
354 | - | else $Tuple2( | |
359 | + | then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak)))) | |
360 | + | else $Tuple2(bA, bB) | |
355 | 361 | } | |
356 | 362 | ||
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | func | |
362 | - | then | |
363 | - | else | |
363 | + | let bD = { | |
364 | + | let aQ = at | |
365 | + | let aR = size(aQ) | |
366 | + | let aS = $Tuple2(0, toBigInt(bp)) | |
367 | + | func aT (aU,aV) = if ((aV >= aR)) | |
368 | + | then aU | |
369 | + | else by(aU, aQ[aV]) | |
364 | 370 | ||
365 | - | func | |
366 | - | then | |
371 | + | func aW (aU,aV) = if ((aV >= aR)) | |
372 | + | then aU | |
367 | 373 | else throw("List size exceeds 10") | |
368 | 374 | ||
369 | - | | |
375 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
370 | 376 | } | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | func | |
376 | - | then | |
377 | + | let bA = bD._1 | |
378 | + | let bE = bD._2 | |
379 | + | let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak))) | |
380 | + | let bF = toBigInt(((bA + (bp / bg)) - bp)) | |
381 | + | func bG (aO,bH) = if ((aO._2 == true)) | |
382 | + | then aO | |
377 | 383 | else { | |
378 | - | let | |
379 | - | let | |
380 | - | if (( | |
381 | - | then if ((1 >= toInt(( | |
382 | - | then $Tuple2( | |
383 | - | else $Tuple2( | |
384 | - | else if ((1 >= toInt(( | |
385 | - | then $Tuple2( | |
386 | - | else $Tuple2( | |
384 | + | let bI = aO._1 | |
385 | + | let bJ = (((bI * bI) + bB) / ((as * bI) + bF)) | |
386 | + | if ((bJ > bI)) | |
387 | + | then if ((1 >= toInt((bJ - bI)))) | |
388 | + | then $Tuple2(bJ, true) | |
389 | + | else $Tuple2(bJ, false) | |
390 | + | else if ((1 >= toInt((bI - bJ)))) | |
391 | + | then $Tuple2(bJ, true) | |
392 | + | else $Tuple2(bJ, false) | |
387 | 393 | } | |
388 | 394 | ||
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | func | |
394 | - | then | |
395 | - | else | |
395 | + | let bK = { | |
396 | + | let aQ = av | |
397 | + | let aR = size(aQ) | |
398 | + | let aS = $Tuple2(toBigInt(bp), false) | |
399 | + | func bn (aU,aV) = if ((aV >= aR)) | |
400 | + | then aU | |
401 | + | else bG(aU, aQ[aV]) | |
396 | 402 | ||
397 | - | func | |
398 | - | then | |
403 | + | func bo (aU,aV) = if ((aV >= aR)) | |
404 | + | then aU | |
399 | 405 | else throw("List size exceeds 16") | |
400 | 406 | ||
401 | - | | |
407 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
402 | 408 | } | |
403 | - | let | |
404 | - | let | |
405 | - | if (( | |
406 | - | then throw(("getY() not finished with " + toString( | |
407 | - | else toInt( | |
409 | + | let bJ = bK._1 | |
410 | + | let br = bK._2 | |
411 | + | if ((br == false)) | |
412 | + | then throw(("getY() not finished with " + toString(bJ))) | |
413 | + | else toInt(bJ) | |
408 | 414 | } | |
409 | 415 | ||
410 | 416 | ||
411 | - | func | |
417 | + | func bL (bM,bu,aY,bp) = if (ax((bu >= 0))) | |
412 | 418 | then throw("i below zero") | |
413 | - | else if ( | |
419 | + | else if (ax((ak > bu))) | |
414 | 420 | then throw("i above N_COINS") | |
415 | 421 | else { | |
416 | - | let | |
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | then ( | |
422 | + | let bg = (bM * ak) | |
423 | + | func by (aO,aq) = { | |
424 | + | let bN = aO | |
425 | + | let bA = bN._1 | |
426 | + | let bB = bN._2 | |
427 | + | let bC = if (if ((bu != aq)) | |
428 | + | then (ak > aq) | |
423 | 429 | else false) | |
424 | - | then | |
430 | + | then aY[aq] | |
425 | 431 | else 0 | |
426 | - | if (if (( | |
427 | - | then ( | |
432 | + | if (if ((ak > aq)) | |
433 | + | then (bu != aq) | |
428 | 434 | else false) | |
429 | - | then $Tuple2(( | |
430 | - | else $Tuple2( | |
435 | + | then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak)))) | |
436 | + | else $Tuple2(bA, bB) | |
431 | 437 | } | |
432 | 438 | ||
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | func | |
438 | - | then | |
439 | - | else | |
439 | + | let bO = { | |
440 | + | let aQ = at | |
441 | + | let aR = size(aQ) | |
442 | + | let aS = $Tuple2(0, toBigInt(bp)) | |
443 | + | func aT (aU,aV) = if ((aV >= aR)) | |
444 | + | then aU | |
445 | + | else by(aU, aQ[aV]) | |
440 | 446 | ||
441 | - | func | |
442 | - | then | |
447 | + | func aW (aU,aV) = if ((aV >= aR)) | |
448 | + | then aU | |
443 | 449 | else throw("List size exceeds 10") | |
444 | 450 | ||
445 | - | | |
451 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
446 | 452 | } | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | func | |
452 | - | then | |
453 | + | let bA = bO._1 | |
454 | + | let bE = bO._2 | |
455 | + | let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak))) | |
456 | + | let bF = toBigInt(((bA + (bp / bg)) - bp)) | |
457 | + | func bP (aO,aq) = if ((aO._2 == true)) | |
458 | + | then aO | |
453 | 459 | else { | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
457 | - | then if ((1 >= toInt(( | |
458 | - | then $Tuple2( | |
459 | - | else $Tuple2( | |
460 | - | else if ((1 >= toInt(( | |
461 | - | then $Tuple2( | |
462 | - | else $Tuple2( | |
460 | + | let bI = aO._1 | |
461 | + | let bJ = (((bI * bI) + bB) / ((as * bI) + bF)) | |
462 | + | if ((bJ > bI)) | |
463 | + | then if ((1 >= toInt((bJ - bI)))) | |
464 | + | then $Tuple2(bJ, true) | |
465 | + | else $Tuple2(bJ, false) | |
466 | + | else if ((1 >= toInt((bI - bJ)))) | |
467 | + | then $Tuple2(bJ, true) | |
468 | + | else $Tuple2(bJ, false) | |
463 | 469 | } | |
464 | 470 | ||
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | func | |
470 | - | then | |
471 | - | else | |
471 | + | let bQ = { | |
472 | + | let aQ = av | |
473 | + | let aR = size(aQ) | |
474 | + | let aS = $Tuple2(toBigInt(bp), false) | |
475 | + | func bn (aU,aV) = if ((aV >= aR)) | |
476 | + | then aU | |
477 | + | else bP(aU, aQ[aV]) | |
472 | 478 | ||
473 | - | func | |
474 | - | then | |
479 | + | func bo (aU,aV) = if ((aV >= aR)) | |
480 | + | then aU | |
475 | 481 | else throw("List size exceeds 16") | |
476 | 482 | ||
477 | - | | |
483 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
478 | 484 | } | |
479 | - | let | |
480 | - | let | |
481 | - | if (( | |
482 | - | then throw(("get_y_D() not finished with " + toString( | |
483 | - | else toInt( | |
485 | + | let bJ = bQ._1 | |
486 | + | let br = bQ._2 | |
487 | + | if ((br == false)) | |
488 | + | then throw(("get_y_D() not finished with " + toString(bJ))) | |
489 | + | else toInt(bJ) | |
484 | 490 | } | |
485 | 491 | ||
486 | 492 | ||
487 | - | func | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | then (fraction( | |
502 | - | else ( | |
503 | - | $Tuple2(( | |
493 | + | func bR (aY,bS,aq,bT) = { | |
494 | + | let bU = az(bT) | |
495 | + | let bc = aH() | |
496 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
497 | + | let bW = ab | |
498 | + | let bX = bb(aY, bc) | |
499 | + | let bY = (bX - fraction(bS, bX, bW)) | |
500 | + | let bZ = bL(bc, aq, aY, bY) | |
501 | + | let ca = (aY[aq] - bZ) | |
502 | + | func cb (aO,cc) = { | |
503 | + | let cd = aO | |
504 | + | let ce = cd._1 | |
505 | + | let cf = cd._2 | |
506 | + | let cg = if ((cf == aq)) | |
507 | + | then (fraction(cc, bY, bX) - bZ) | |
508 | + | else (cc - fraction(cc, bY, bX)) | |
509 | + | $Tuple2((ce :+ (cc - fraction(bV, cg, ac))), (cf + 1)) | |
504 | 510 | } | |
505 | 511 | ||
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | func | |
511 | - | then | |
512 | - | else | |
512 | + | let ch = { | |
513 | + | let aQ = aY | |
514 | + | let aR = size(aQ) | |
515 | + | let aS = $Tuple2(nil, 0) | |
516 | + | func aT (aU,aV) = if ((aV >= aR)) | |
517 | + | then aU | |
518 | + | else cb(aU, aQ[aV]) | |
513 | 519 | ||
514 | - | func | |
515 | - | then | |
520 | + | func aW (aU,aV) = if ((aV >= aR)) | |
521 | + | then aU | |
516 | 522 | else throw("List size exceeds 10") | |
517 | 523 | ||
518 | - | | |
524 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
519 | 525 | } | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | $Tuple2( | |
526 | + | let ce = ch._1 | |
527 | + | let cf = ch._2 | |
528 | + | let ci = ce[aq] | |
529 | + | let cj = ((ci - bL(bc, aq, ce, bY)) - 1) | |
530 | + | $Tuple2(cj, (ca - cj)) | |
525 | 531 | } | |
526 | 532 | ||
527 | 533 | ||
528 | - | func | |
529 | - | let | |
530 | - | if ($isInstanceOf( | |
534 | + | func ck (aP) = { | |
535 | + | let J = aP | |
536 | + | if ($isInstanceOf(J, "ByteVector")) | |
531 | 537 | then { | |
532 | - | let | |
533 | - | toBase58String( | |
538 | + | let cl = J | |
539 | + | toBase58String(cl) | |
534 | 540 | } | |
535 | - | else if ($isInstanceOf( | |
541 | + | else if ($isInstanceOf(J, "Unit")) | |
536 | 542 | then { | |
537 | - | let | |
543 | + | let cm = J | |
538 | 544 | "WAVES" | |
539 | 545 | } | |
540 | 546 | else throw("Match error") | |
541 | 547 | } | |
542 | 548 | ||
543 | 549 | ||
544 | - | func | |
545 | - | then $Tuple2("lockNeutrino", | |
546 | - | else $Tuple2("unlockNeutrino", | |
550 | + | func cn (co,aP) = if (co) | |
551 | + | then $Tuple2("lockNeutrino", S) | |
552 | + | else $Tuple2("unlockNeutrino", S) | |
547 | 553 | ||
548 | 554 | ||
549 | - | func | |
555 | + | func cp (co,cq,aP) = if (co) | |
550 | 556 | then { | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | $Tuple4( | |
557 | + | let cr = cn(co, aP) | |
558 | + | let cs = cr._1 | |
559 | + | let ct = cr._2 | |
560 | + | $Tuple4(cs, ct, nil, [AttachedPayment(aP, cq)]) | |
555 | 561 | } | |
556 | 562 | else { | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple4( | |
563 | + | let cu = cn(co, aP) | |
564 | + | let cs = cu._1 | |
565 | + | let ct = cu._2 | |
566 | + | $Tuple4(cs, ct, [cq, toBase58String(aP)], nil) | |
561 | 567 | } | |
562 | 568 | ||
563 | 569 | ||
564 | - | func | |
570 | + | func co (cq,cv) = if (containsElement(X, cv)) | |
565 | 571 | then { | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | invoke( | |
572 | + | let cw = cp(true, cq, fromBase58String(cv)) | |
573 | + | let cs = cw._1 | |
574 | + | let cx = cw._2 | |
575 | + | let cy = cw._3 | |
576 | + | let cz = cw._4 | |
577 | + | invoke(cx, cs, cy, cz) | |
572 | 578 | } | |
573 | 579 | else 0 | |
574 | 580 | ||
575 | 581 | ||
576 | - | func | |
582 | + | func cA (cq,cv) = if (containsElement(X, cv)) | |
577 | 583 | then { | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | invoke( | |
584 | + | let cB = cp(false, cq, fromBase58String(cv)) | |
585 | + | let cs = cB._1 | |
586 | + | let cx = cB._2 | |
587 | + | let cy = cB._3 | |
588 | + | let cz = cB._4 | |
589 | + | invoke(cx, cs, cy, cz) | |
584 | 590 | } | |
585 | 591 | else 0 | |
586 | 592 | ||
587 | 593 | ||
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
594 | + | func cC (aP) = { | |
595 | + | let cD = { | |
596 | + | let J = aP | |
597 | + | if ($isInstanceOf(J, "ByteVector")) | |
592 | 598 | then { | |
593 | - | let | |
594 | - | if (( | |
595 | - | then getInteger( | |
599 | + | let cE = J | |
600 | + | if ((cE == W)) | |
601 | + | then getInteger(S, ((("rpd_balance_" + toBase58String(cE)) + "_") + toString(this))) | |
596 | 602 | else 0 | |
597 | 603 | } | |
598 | - | else if ($isInstanceOf( | |
604 | + | else if ($isInstanceOf(J, "Unit")) | |
599 | 605 | then 0 | |
600 | 606 | else throw("Match error") | |
601 | 607 | } | |
602 | - | let | |
603 | - | if ($isInstanceOf( | |
608 | + | let J = cD | |
609 | + | if ($isInstanceOf(J, "Int")) | |
604 | 610 | then { | |
605 | - | let | |
606 | - | | |
611 | + | let aq = J | |
612 | + | aq | |
607 | 613 | } | |
608 | 614 | else 0 | |
609 | 615 | } | |
610 | 616 | ||
611 | 617 | ||
612 | - | func | |
613 | - | let | |
614 | - | func | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | if ( | |
619 | - | then $Tuple2( | |
618 | + | func cF () = { | |
619 | + | let cG = aM() | |
620 | + | func cH (aO,aP) = { | |
621 | + | let cI = aO | |
622 | + | let cJ = cI._1 | |
623 | + | let aq = cI._2 | |
624 | + | if (cJ) | |
625 | + | then $Tuple2(cJ, aq) | |
620 | 626 | else { | |
621 | - | let | |
622 | - | if (( | |
623 | - | then $Tuple2(true, | |
624 | - | else $Tuple2(false, ( | |
627 | + | let cK = (assetBalance(this, fromBase58String(aP)) + cC(fromBase58String(aP))) | |
628 | + | if ((cG[aq] > cK)) | |
629 | + | then $Tuple2(true, aq) | |
630 | + | else $Tuple2(false, (aq + 1)) | |
625 | 631 | } | |
626 | 632 | } | |
627 | 633 | ||
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | func | |
632 | - | then | |
633 | - | else | |
634 | + | let aQ = aj | |
635 | + | let aR = size(aQ) | |
636 | + | let aS = $Tuple2(false, 0) | |
637 | + | func aT (aU,aV) = if ((aV >= aR)) | |
638 | + | then aU | |
639 | + | else cH(aU, aQ[aV]) | |
634 | 640 | ||
635 | - | func | |
636 | - | then | |
641 | + | func aW (aU,aV) = if ((aV >= aR)) | |
642 | + | then aU | |
637 | 643 | else throw("List size exceeds 10") | |
638 | 644 | ||
639 | - | | |
645 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
640 | 646 | } | |
641 | 647 | ||
642 | 648 | ||
643 | - | func | |
649 | + | func cL (aq) = al(("Suspicious state with asset: " + aj[aq])) | |
644 | 650 | ||
645 | 651 | ||
646 | - | func | |
647 | - | func | |
652 | + | func cM (bT,cz) = { | |
653 | + | func cN (aO,cO) = (aO :+ ScriptTransfer(bT, cO.amount, cO.assetId)) | |
648 | 654 | ||
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | func | |
653 | - | then | |
654 | - | else | |
655 | + | let aQ = cz | |
656 | + | let aR = size(aQ) | |
657 | + | let aS = nil | |
658 | + | func aT (aU,aV) = if ((aV >= aR)) | |
659 | + | then aU | |
660 | + | else cN(aU, aQ[aV]) | |
655 | 661 | ||
656 | - | func | |
657 | - | then | |
662 | + | func aW (aU,aV) = if ((aV >= aR)) | |
663 | + | then aU | |
658 | 664 | else throw("List size exceeds 10") | |
659 | 665 | ||
660 | - | | |
666 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
661 | 667 | } | |
662 | 668 | ||
663 | 669 | ||
664 | - | func | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | if (( | |
670 | + | func cP (cQ) = { | |
671 | + | let cR = valueOrErrorMessage(getInteger(this, p), "No dAppThresholdCoef key") | |
672 | + | let cS = 10000 | |
673 | + | let cT = max(cQ) | |
674 | + | let cU = min(cQ) | |
675 | + | let cV = fraction(cT, cS, cU) | |
676 | + | if ((cV > (cR * cS))) | |
671 | 677 | then throw("New balance in assets of the DApp is less than threshold") | |
672 | 678 | else false | |
673 | 679 | } | |
674 | 680 | ||
675 | 681 | ||
676 | - | func | |
677 | - | let | |
678 | - | if ((size( | |
682 | + | func cW (aj) = { | |
683 | + | let cX = split(aj, ",") | |
684 | + | if ((size(cX) > 10)) | |
679 | 685 | then throw("To many coins, max coins size 10") | |
680 | 686 | else { | |
681 | - | func | |
682 | - | let | |
683 | - | let | |
684 | - | if (( | |
687 | + | func cY (cZ,aP) = { | |
688 | + | let da = valueOrErrorMessage(fromBase58String(aP), ("fromBase58String: " + aP)) | |
689 | + | let db = valueOrErrorMessage(assetInfo(da), ("assetInfo: " + aP)).decimals | |
690 | + | if ((db != d)) | |
685 | 691 | then throw("wrong decimals") | |
686 | 692 | else false | |
687 | 693 | } | |
688 | 694 | ||
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | func | |
693 | - | then | |
694 | - | else | |
695 | + | let aQ = cX | |
696 | + | let aR = size(aQ) | |
697 | + | let aS = false | |
698 | + | func aT (aU,aV) = if ((aV >= aR)) | |
699 | + | then aU | |
700 | + | else cY(aU, aQ[aV]) | |
695 | 701 | ||
696 | - | func | |
697 | - | then | |
702 | + | func aW (aU,aV) = if ((aV >= aR)) | |
703 | + | then aU | |
698 | 704 | else throw("List size exceeds 10") | |
699 | 705 | ||
700 | - | | |
706 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
701 | 707 | } | |
702 | 708 | } | |
703 | 709 | ||
704 | 710 | ||
705 | - | @Callable( | |
706 | - | func D ( | |
707 | - | let | |
708 | - | $Tuple2([IntegerEntry("D", | |
711 | + | @Callable(dc) | |
712 | + | func D (aY,bc) = { | |
713 | + | let bp = be(aY, bc) | |
714 | + | $Tuple2([IntegerEntry("D", bp)], bp) | |
709 | 715 | } | |
710 | 716 | ||
711 | 717 | ||
712 | 718 | ||
713 | - | @Callable( | |
714 | - | func init ( | |
719 | + | @Callable(dc) | |
720 | + | func init (aj,aH,dd) = if (!(isDataStorageUntouched(this))) | |
715 | 721 | then throw("Already initialized") | |
716 | - | else if ((0 >= | |
722 | + | else if ((0 >= aH)) | |
717 | 723 | then throw("Amp must be must > 0") | |
718 | - | else if ((0 >= | |
724 | + | else if ((0 >= dd)) | |
719 | 725 | then throw("dApp Threshold Coef must be > 0") | |
720 | 726 | else { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | if ( | |
727 | + | let de = "s_Multi_USD" | |
728 | + | let df = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
729 | + | let dg = Issue(de, df, 0, 6, true) | |
730 | + | let dh = calculateAssetId(dg) | |
731 | + | if (cW(aj)) | |
726 | 732 | then throw() | |
727 | - | else [StringEntry(g, f), StringEntry(h, | |
733 | + | else [StringEntry(g, f), StringEntry(h, aj), IntegerEntry("initial_A", aH), IntegerEntry("future_A", aH), IntegerEntry(o, getIntegerValue(G, "base_fee_flat")), StringEntry(m, toBase58String(dh)), IntegerEntry(n, 0), IntegerEntry(p, dd), BooleanEntry(j, true), dg] | |
728 | 734 | } | |
729 | 735 | ||
730 | 736 | ||
731 | 737 | ||
732 | - | @Callable( | |
733 | - | func addLiquidity ( | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
738 | + | @Callable(dc) | |
739 | + | func addLiquidity (di,dj,dk) = valueOrElse(ao(), { | |
740 | + | let bc = aH() | |
741 | + | let aY = aM() | |
742 | + | let bX = if ((ab == 0)) | |
737 | 743 | then 0 | |
738 | - | else | |
739 | - | let | |
740 | - | then ( | |
744 | + | else bs(aY, bc) | |
745 | + | let dl = if (if ((dk > 0)) | |
746 | + | then (dc.payments[(size(dc.payments) - 1)].assetId == unit) | |
741 | 747 | else false) | |
742 | - | then $Tuple2(removeByIndex( | |
743 | - | else $Tuple2( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | func | |
748 | - | then throw(("payments size > " + toString( | |
749 | - | else if ((1 > | |
748 | + | then $Tuple2(removeByIndex(dc.payments, (size(dc.payments) - 1)), [dc.payments[(size(dc.payments) - 1)]]) | |
749 | + | else $Tuple2(dc.payments, nil) | |
750 | + | let cz = dl._1 | |
751 | + | let dm = dl._2 | |
752 | + | let dn = size(cz) | |
753 | + | func do (dp) = if ((dn > ak)) | |
754 | + | then throw(("payments size > " + toString(ak))) | |
755 | + | else if ((1 > dn)) | |
750 | 756 | then throw("payments size < 1") | |
751 | - | else if (if (( | |
752 | - | then ( | |
757 | + | else if (if ((ab == 0)) | |
758 | + | then (ak != dn) | |
753 | 759 | else false) | |
754 | 760 | then throw("initial deposit requires all coins") | |
755 | 761 | else { | |
756 | - | func | |
762 | + | func dq (aO,cO) = if (containsElement(aj, ck(cO.assetId))) | |
757 | 763 | then true | |
758 | 764 | else throw("Invalid asset in payment") | |
759 | 765 | ||
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | func | |
764 | - | then | |
765 | - | else | |
766 | + | let aQ = cz | |
767 | + | let aR = size(aQ) | |
768 | + | let aS = false | |
769 | + | func aT (aU,aV) = if ((aV >= aR)) | |
770 | + | then aU | |
771 | + | else dq(aU, aQ[aV]) | |
766 | 772 | ||
767 | - | func | |
768 | - | then | |
773 | + | func aW (aU,aV) = if ((aV >= aR)) | |
774 | + | then aU | |
769 | 775 | else throw("List size exceeds 10") | |
770 | 776 | ||
771 | - | | |
777 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
772 | 778 | } | |
773 | 779 | ||
774 | - | if (!( | |
780 | + | if (!(do(dn))) | |
775 | 781 | then throw() | |
776 | 782 | else { | |
777 | - | let | |
778 | - | if ( | |
779 | - | then (cJ | |
783 | + | let cJ = cF() | |
784 | + | if (cJ._1) | |
785 | + | then (cL(cJ._2) ++ cM(dc.caller, cz)) | |
780 | 786 | else { | |
781 | - | func | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | func | |
786 | - | then ( | |
787 | - | else | |
787 | + | func cN (aO,aP) = { | |
788 | + | let dr = aO | |
789 | + | let cQ = dr._1 | |
790 | + | let aq = dr._2 | |
791 | + | func ds (dt,cO) = if ((ck(cO.assetId) == aP)) | |
792 | + | then (dt + cO.amount) | |
793 | + | else dt | |
788 | 794 | ||
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | func | |
794 | - | then | |
795 | - | else | |
795 | + | let du = { | |
796 | + | let aQ = cz | |
797 | + | let aR = size(aQ) | |
798 | + | let aS = aY[aq] | |
799 | + | func aT (aU,aV) = if ((aV >= aR)) | |
800 | + | then aU | |
801 | + | else ds(aU, aQ[aV]) | |
796 | 802 | ||
797 | - | func | |
798 | - | then | |
803 | + | func aW (aU,aV) = if ((aV >= aR)) | |
804 | + | then aU | |
799 | 805 | else throw("List size exceeds 10") | |
800 | 806 | ||
801 | - | | |
807 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
802 | 808 | } | |
803 | - | $Tuple2(( | |
809 | + | $Tuple2((cQ :+ du), (aq + 1)) | |
804 | 810 | } | |
805 | 811 | ||
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | func | |
811 | - | then | |
812 | - | else | |
812 | + | let dv = { | |
813 | + | let aQ = aj | |
814 | + | let aR = size(aQ) | |
815 | + | let aS = $Tuple2(nil, 0) | |
816 | + | func aT (aU,aV) = if ((aV >= aR)) | |
817 | + | then aU | |
818 | + | else cN(aU, aQ[aV]) | |
813 | 819 | ||
814 | - | func | |
815 | - | then | |
820 | + | func aW (aU,aV) = if ((aV >= aR)) | |
821 | + | then aU | |
816 | 822 | else throw("List size exceeds 10") | |
817 | 823 | ||
818 | - | | |
824 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
819 | 825 | } | |
820 | - | let | |
821 | - | let | |
822 | - | if ( | |
826 | + | let cQ = dv._1 | |
827 | + | let dw = dv._2 | |
828 | + | if (cP(cQ)) | |
823 | 829 | then throw() | |
824 | 830 | else { | |
825 | - | let | |
826 | - | if ( | |
831 | + | let bY = bs(cQ, bc) | |
832 | + | if (ax((bY > bX))) | |
827 | 833 | then throw("D1 > D0") | |
828 | 834 | else { | |
829 | - | let | |
830 | - | func | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | if (( | |
835 | + | let bU = az(dc.caller) | |
836 | + | func dx (aO,dt) = { | |
837 | + | let dy = aO | |
838 | + | let dz = dy._1 | |
839 | + | let dA = dy._2 | |
840 | + | let aq = dy._3 | |
841 | + | if ((ab > 0)) | |
836 | 842 | then { | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | then ( | |
842 | - | else ( | |
843 | - | fraction( | |
843 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
844 | + | let dB = { | |
845 | + | let dC = fraction(bY, aY[aq], bX) | |
846 | + | let dD = if ((dC > dt)) | |
847 | + | then (dC - dt) | |
848 | + | else (dt - dC) | |
849 | + | fraction(bV, dD, ac) | |
844 | 850 | } | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | if (( | |
851 | + | let dE = fraction(dB, ae, ac) | |
852 | + | let dF = (dt - dB) | |
853 | + | let dG = (dt - dB) | |
854 | + | let dH = (dt - aY[aq]) | |
855 | + | let dI = (dB - dE) | |
856 | + | let dJ = if ((dH > 0)) | |
857 | + | then co((dH - dB), aj[aq]) | |
858 | + | else cA(dB, aj[aq]) | |
859 | + | if ((dJ == dJ)) | |
854 | 860 | then { | |
855 | - | let | |
856 | - | then invoke( | |
861 | + | let dK = if ((dI > 0)) | |
862 | + | then invoke(V, "airDrop", nil, [AttachedPayment(fromBase58String(aj[aq]), dI)]) | |
857 | 863 | else 0 | |
858 | - | if (( | |
859 | - | then $Tuple3(( | |
864 | + | if ((dK == dK)) | |
865 | + | then $Tuple3((dz :+ dG), (dA ++ [ScriptTransfer(Q, dE, fromBase58String(aj[aq])), IntegerEntry((aj[aq] + i), dF)]), (aq + 1)) | |
860 | 866 | else throw("Strict value is not equal to itself.") | |
861 | 867 | } | |
862 | 868 | else throw("Strict value is not equal to itself.") | |
863 | 869 | } | |
864 | 870 | else { | |
865 | - | let | |
866 | - | if (( | |
867 | - | then $Tuple3(( | |
871 | + | let dJ = co(dt, aj[aq]) | |
872 | + | if ((dJ == dJ)) | |
873 | + | then $Tuple3((dz :+ dt), (dA :+ IntegerEntry((aj[aq] + i), dt)), (aq + 1)) | |
868 | 874 | else throw("Strict value is not equal to itself.") | |
869 | 875 | } | |
870 | 876 | } | |
871 | 877 | ||
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | func | |
877 | - | then | |
878 | - | else | |
878 | + | let dL = { | |
879 | + | let aQ = cQ | |
880 | + | let aR = size(aQ) | |
881 | + | let aS = $Tuple3(nil, nil, 0) | |
882 | + | func bn (aU,aV) = if ((aV >= aR)) | |
883 | + | then aU | |
884 | + | else dx(aU, aQ[aV]) | |
879 | 885 | ||
880 | - | func | |
881 | - | then | |
886 | + | func bo (aU,aV) = if ((aV >= aR)) | |
887 | + | then aU | |
882 | 888 | else throw("List size exceeds 10") | |
883 | 889 | ||
884 | - | | |
890 | + | bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
885 | 891 | } | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | then | |
891 | - | else fraction( | |
892 | - | if ( | |
892 | + | let dz = dL._1 | |
893 | + | let dA = dL._2 | |
894 | + | let dM = bs(dz, bc) | |
895 | + | let dN = if ((ab == 0)) | |
896 | + | then bY | |
897 | + | else fraction(ab, (dM - bX), bX) | |
898 | + | if (ax((dN >= di))) | |
893 | 899 | then throw("Slippage screwed you") | |
894 | - | else if ( | |
900 | + | else if (dj) | |
895 | 901 | then { | |
896 | - | let | |
897 | - | if (( | |
902 | + | let dO = invoke(this, "reissueShare", [dN], nil) | |
903 | + | if ((dO == dO)) | |
898 | 904 | then { | |
899 | - | let | |
900 | - | if (( | |
901 | - | then ( | |
905 | + | let dP = invoke(U, "lockShareTokensFromPool", [dc.caller.bytes, toString(this), dk], ([AttachedPayment(aa, dN)] ++ dm)) | |
906 | + | if ((dP == dP)) | |
907 | + | then (dA :+ IntegerEntry(n, (ab + dN))) | |
902 | 908 | else throw("Strict value is not equal to itself.") | |
903 | 909 | } | |
904 | 910 | else throw("Strict value is not equal to itself.") | |
905 | 911 | } | |
906 | - | else ( | |
912 | + | else (dA ++ [Reissue(aa, dN, true), ScriptTransfer(dc.caller, dN, aa), IntegerEntry(n, (ab + dN))]) | |
907 | 913 | } | |
908 | 914 | } | |
909 | 915 | } | |
910 | 916 | } | |
911 | 917 | }) | |
912 | 918 | ||
913 | 919 | ||
914 | 920 | ||
915 | - | @Callable( | |
916 | - | func calcMintAmount ( | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | if (( | |
921 | - | then $Tuple2(nil, | |
921 | + | @Callable(dc) | |
922 | + | func calcMintAmount (cQ,aB) = { | |
923 | + | let bc = aH() | |
924 | + | let aY = aM() | |
925 | + | let bY = bs(cQ, bc) | |
926 | + | if ((ab == 0)) | |
927 | + | then $Tuple2(nil, bY) | |
922 | 928 | else { | |
923 | - | let | |
924 | - | let | |
925 | - | func | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | then ( | |
934 | - | else ( | |
935 | - | fraction( | |
929 | + | let bX = bs(aY, bc) | |
930 | + | let bU = az(aB) | |
931 | + | func dQ (aO,dt) = { | |
932 | + | let dR = aO | |
933 | + | let dz = dR._1 | |
934 | + | let aq = dR._2 | |
935 | + | let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1))) | |
936 | + | let dB = { | |
937 | + | let dC = fraction(bY, aY[aq], bX) | |
938 | + | let dD = if ((dC > dt)) | |
939 | + | then (dC - dt) | |
940 | + | else (dt - dC) | |
941 | + | fraction(bV, dD, ac) | |
936 | 942 | } | |
937 | - | let | |
938 | - | $Tuple2(( | |
943 | + | let dG = (dt - dB) | |
944 | + | $Tuple2((dz :+ dG), (aq + 1)) | |
939 | 945 | } | |
940 | 946 | ||
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | func | |
946 | - | then | |
947 | - | else | |
947 | + | let dS = { | |
948 | + | let aQ = cQ | |
949 | + | let aR = size(aQ) | |
950 | + | let aS = $Tuple2(nil, 0) | |
951 | + | func aT (aU,aV) = if ((aV >= aR)) | |
952 | + | then aU | |
953 | + | else dQ(aU, aQ[aV]) | |
948 | 954 | ||
949 | - | func | |
950 | - | then | |
955 | + | func aW (aU,aV) = if ((aV >= aR)) | |
956 | + | then aU | |
951 | 957 | else throw("List size exceeds 10") | |
952 | 958 | ||
953 | - | | |
959 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
954 | 960 | } | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | $Tuple2(nil, | |
961 | + | let dz = dS._1 | |
962 | + | let dw = dS._2 | |
963 | + | let dM = bs(dz, bc) | |
964 | + | let dT = fraction(ab, (dM - bX), bX) | |
965 | + | $Tuple2(nil, dT) | |
960 | 966 | } | |
961 | 967 | } | |
962 | 968 | ||
963 | 969 | ||
964 | 970 | ||
965 | - | @Callable( | |
966 | - | func reissueShare ( | |
971 | + | @Callable(dc) | |
972 | + | func reissueShare (cq) = valueOrElse(ar(dc), [Reissue(aa, cq, true)]) | |
967 | 973 | ||
968 | 974 | ||
969 | 975 | ||
970 | - | @Callable( | |
971 | - | func getDy ( | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | let | |
980 | - | $Tuple2(nil, $Tuple2(( | |
976 | + | @Callable(dc) | |
977 | + | func getDy (dU,dV,dW,dX) = { | |
978 | + | let aY = aM() | |
979 | + | let dY = valueOrErrorMessage(indexOf(aj, dU), "unknown token in") | |
980 | + | let dZ = valueOrErrorMessage(indexOf(aj, dV), "unknown token out") | |
981 | + | let bw = (aY[dY] + dW) | |
982 | + | let bJ = bt(dY, dZ, bw, aY) | |
983 | + | let cj = ((aY[dZ] - bJ) - 1) | |
984 | + | let bU = az(Address(fromBase58String(dX))) | |
985 | + | let bV = fraction(fraction(ad, bU, ac, CEILING), cj, ac) | |
986 | + | $Tuple2(nil, $Tuple2((cj - bV), bV)) | |
981 | 987 | } | |
982 | 988 | ||
983 | 989 | ||
984 | 990 | ||
985 | - | @Callable( | |
986 | - | func exchange ( | |
991 | + | @Callable(dc) | |
992 | + | func exchange (ea,eb) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
987 | 993 | then throw("size(payments) != 1") | |
988 | 994 | else { | |
989 | - | let | |
990 | - | if ( | |
991 | - | then (cJ | |
995 | + | let cJ = cF() | |
996 | + | if (cJ._1) | |
997 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
992 | 998 | else { | |
993 | - | let | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | if ( | |
999 | + | let cO = dc.payments[0] | |
1000 | + | let ec = ck(cO.assetId) | |
1001 | + | let ed = fromBase58String(ea) | |
1002 | + | let dW = cO.amount | |
1003 | + | let dY = valueOrErrorMessage(indexOf(aj, ec), "unknown token in") | |
1004 | + | let dZ = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1005 | + | let aY = aM() | |
1006 | + | let bw = (aY[dY] + dW) | |
1007 | + | let bJ = bt(dY, dZ, bw, aY) | |
1008 | + | let ee = ((aY[dZ] - bJ) - 1) | |
1009 | + | let bU = az(dc.originCaller) | |
1010 | + | let bV = fraction(ee, fraction(ad, bU, ac, CEILING), ac) | |
1011 | + | let cj = (ee - bV) | |
1012 | + | let dE = fraction(bV, ae, ac) | |
1013 | + | if (ax((cj >= eb))) | |
1008 | 1014 | then throw("Exchange resulted in fewer coins than expected") | |
1009 | 1015 | else { | |
1010 | - | func | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | if (( | |
1015 | - | then $Tuple2(( | |
1016 | - | else if (( | |
1017 | - | then $Tuple2(( | |
1018 | - | else $Tuple2(( | |
1016 | + | func ef (aO,eg) = { | |
1017 | + | let eh = aO | |
1018 | + | let cQ = eh._1 | |
1019 | + | let aq = eh._2 | |
1020 | + | if ((aq == dY)) | |
1021 | + | then $Tuple2((cQ :+ (eg + dW)), (aq + 1)) | |
1022 | + | else if ((aq == dZ)) | |
1023 | + | then $Tuple2((cQ :+ (eg - ee)), (aq + 1)) | |
1024 | + | else $Tuple2((cQ :+ eg), (aq + 1)) | |
1019 | 1025 | } | |
1020 | 1026 | ||
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | func | |
1026 | - | then | |
1027 | - | else | |
1027 | + | let ei = { | |
1028 | + | let aQ = aY | |
1029 | + | let aR = size(aQ) | |
1030 | + | let aS = $Tuple2(nil, 0) | |
1031 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1032 | + | then aU | |
1033 | + | else ef(aU, aQ[aV]) | |
1028 | 1034 | ||
1029 | - | func | |
1030 | - | then | |
1035 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1036 | + | then aU | |
1031 | 1037 | else throw("List size exceeds 10") | |
1032 | 1038 | ||
1033 | - | | |
1039 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1034 | 1040 | } | |
1035 | - | let | |
1036 | - | let | |
1037 | - | if ( | |
1041 | + | let cQ = ei._1 | |
1042 | + | let aq = ei._2 | |
1043 | + | if (cP(cQ)) | |
1038 | 1044 | then throw() | |
1039 | 1045 | else { | |
1040 | - | let | |
1041 | - | if (( | |
1046 | + | let dP = co(cO.amount, ck(cO.assetId)) | |
1047 | + | if ((dP == dP)) | |
1042 | 1048 | then { | |
1043 | - | let | |
1044 | - | if (( | |
1049 | + | let ej = cA(ee, ea) | |
1050 | + | if ((ej == ej)) | |
1045 | 1051 | then { | |
1046 | - | let | |
1047 | - | let | |
1048 | - | then invoke( | |
1052 | + | let dI = (bV - dE) | |
1053 | + | let dK = if ((dI > 0)) | |
1054 | + | then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)]) | |
1049 | 1055 | else 0 | |
1050 | - | if (( | |
1051 | - | then $Tuple2([IntegerEntry((ea + i), | |
1056 | + | if ((dK == dK)) | |
1057 | + | then $Tuple2([IntegerEntry((ec + i), bw), IntegerEntry((ea + i), (aY[dZ] - ee)), ScriptTransfer(dc.caller, cj, ed), ScriptTransfer(Q, dE, ed)], [cj, ed]) | |
1052 | 1058 | else throw("Strict value is not equal to itself.") | |
1053 | 1059 | } | |
1054 | 1060 | else throw("Strict value is not equal to itself.") | |
1055 | 1061 | } | |
1056 | 1062 | else throw("Strict value is not equal to itself.") | |
1057 | 1063 | } | |
1058 | 1064 | } | |
1059 | 1065 | } | |
1060 | 1066 | }) | |
1061 | 1067 | ||
1062 | 1068 | ||
1063 | 1069 | ||
1064 | - | @Callable( | |
1065 | - | func withdraw ( | |
1070 | + | @Callable(dc) | |
1071 | + | func withdraw (ek) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
1066 | 1072 | then throw("size(payments) != 1") | |
1067 | 1073 | else { | |
1068 | - | let | |
1069 | - | let | |
1070 | - | if (( | |
1074 | + | let el = dc.payments[0].amount | |
1075 | + | let em = dc.payments[0].assetId | |
1076 | + | if ((aa != em)) | |
1071 | 1077 | then throw("unknown payment token") | |
1072 | 1078 | else { | |
1073 | - | let | |
1074 | - | if ( | |
1075 | - | then (cJ | |
1079 | + | let cJ = cF() | |
1080 | + | if (cJ._1) | |
1081 | + | then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments)) | |
1076 | 1082 | else { | |
1077 | - | func | |
1078 | - | let | |
1079 | - | let | |
1080 | - | let | |
1081 | - | let | |
1082 | - | if ( | |
1083 | + | func dx (aO,en) = { | |
1084 | + | let eo = aO | |
1085 | + | let dA = eo._1 | |
1086 | + | let aq = eo._2 | |
1087 | + | let ep = fraction(en, el, ab) | |
1088 | + | if (ax((ep >= ek[aq]))) | |
1083 | 1089 | then throw("Withdrawal resulted in fewer coins than expected") | |
1084 | 1090 | else { | |
1085 | - | let | |
1086 | - | if (( | |
1087 | - | then $Tuple2(( | |
1091 | + | let ej = cA(ep, aj[aq]) | |
1092 | + | if ((ej == ej)) | |
1093 | + | then $Tuple2((dA ++ [IntegerEntry((aj[aq] + i), (en - ep)), ScriptTransfer(dc.originCaller, ep, fromBase58String(aj[aq]))]), (aq + 1)) | |
1088 | 1094 | else throw("Strict value is not equal to itself.") | |
1089 | 1095 | } | |
1090 | 1096 | } | |
1091 | 1097 | ||
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | func | |
1097 | - | then | |
1098 | - | else | |
1098 | + | let eq = { | |
1099 | + | let aQ = aM() | |
1100 | + | let aR = size(aQ) | |
1101 | + | let aS = $Tuple2(nil, 0) | |
1102 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1103 | + | then aU | |
1104 | + | else dx(aU, aQ[aV]) | |
1099 | 1105 | ||
1100 | - | func | |
1101 | - | then | |
1106 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1107 | + | then aU | |
1102 | 1108 | else throw("List size exceeds 10") | |
1103 | 1109 | ||
1104 | - | | |
1110 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1105 | 1111 | } | |
1106 | - | let | |
1107 | - | let | |
1108 | - | ( | |
1112 | + | let dA = eq._1 | |
1113 | + | let aq = eq._2 | |
1114 | + | (dA ++ [Burn(aa, el), IntegerEntry(n, (ab - el))]) | |
1109 | 1115 | } | |
1110 | 1116 | } | |
1111 | 1117 | }) | |
1112 | 1118 | ||
1113 | 1119 | ||
1114 | 1120 | ||
1115 | - | @Callable( | |
1116 | - | func withdrawWithUnlock ( | |
1121 | + | @Callable(dc) | |
1122 | + | func withdrawWithUnlock (ek,er) = valueOrElse(ao(), if ((0 >= er)) | |
1117 | 1123 | then throw("Unlock amount must be positive") | |
1118 | 1124 | else { | |
1119 | - | let | |
1120 | - | if ( | |
1121 | - | then (cJ | |
1125 | + | let cJ = cF() | |
1126 | + | if (cJ._1) | |
1127 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
1122 | 1128 | else { | |
1123 | - | let | |
1124 | - | then if ((size( | |
1129 | + | let el = if ((size(dc.payments) > 0)) | |
1130 | + | then if ((size(dc.payments) != 1)) | |
1125 | 1131 | then throw("size(payments) != 1") | |
1126 | 1132 | else { | |
1127 | - | let | |
1128 | - | if (( | |
1133 | + | let em = dc.payments[0].assetId | |
1134 | + | if ((aa != em)) | |
1129 | 1135 | then throw("unknown payment token") | |
1130 | - | else | |
1136 | + | else dc.payments[0].amount | |
1131 | 1137 | } | |
1132 | 1138 | else 0 | |
1133 | - | let | |
1134 | - | if (( | |
1139 | + | let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil) | |
1140 | + | if ((es == es)) | |
1135 | 1141 | then { | |
1136 | - | let | |
1137 | - | let | |
1138 | - | if (( | |
1142 | + | let et = (el + er) | |
1143 | + | let dJ = invoke(this, "withdraw", [ek], [AttachedPayment(aa, et)]) | |
1144 | + | if ((dJ == dJ)) | |
1139 | 1145 | then nil | |
1140 | 1146 | else throw("Strict value is not equal to itself.") | |
1141 | 1147 | } | |
1142 | 1148 | else throw("Strict value is not equal to itself.") | |
1143 | 1149 | } | |
1144 | 1150 | }) | |
1145 | 1151 | ||
1146 | 1152 | ||
1147 | 1153 | ||
1148 | - | @Callable( | |
1149 | - | func calcWithdrawOneCoin ( | |
1154 | + | @Callable(dc) | |
1155 | + | func calcWithdrawOneCoin (eu,ea,aB) = if ((0 >= eu)) | |
1150 | 1156 | then throw("Amount must be positive") | |
1151 | 1157 | else { | |
1152 | - | let | |
1153 | - | $Tuple2(nil, | |
1158 | + | let aq = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1159 | + | $Tuple2(nil, bR(aM(), eu, aq, Address(fromBase58String(aB)))._1) | |
1154 | 1160 | } | |
1155 | 1161 | ||
1156 | 1162 | ||
1157 | 1163 | ||
1158 | - | @Callable( | |
1159 | - | func withdrawOneCoin ( | |
1164 | + | @Callable(dc) | |
1165 | + | func withdrawOneCoin (ea,ev) = valueOrElse(ao(), if ((size(dc.payments) != 1)) | |
1160 | 1166 | then throw("size(payments) != 1") | |
1161 | 1167 | else { | |
1162 | - | let | |
1163 | - | if ( | |
1164 | - | then (cJ | |
1168 | + | let cJ = cF() | |
1169 | + | if (cJ._1) | |
1170 | + | then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments)) | |
1165 | 1171 | else { | |
1166 | - | let | |
1167 | - | let | |
1168 | - | if (( | |
1172 | + | let el = dc.payments[0].amount | |
1173 | + | let em = dc.payments[0].assetId | |
1174 | + | if ((em != aa)) | |
1169 | 1175 | then throw("unknown token") | |
1170 | 1176 | else { | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if ( | |
1177 | + | let ew = valueOrErrorMessage(indexOf(aj, ea), "unknown token out") | |
1178 | + | let ed = fromBase58String(ea) | |
1179 | + | let aY = aM() | |
1180 | + | let ex = bR(aY, el, ew, dc.originCaller) | |
1181 | + | let cj = ex._1 | |
1182 | + | let ey = ex._2 | |
1183 | + | if (ax((cj >= ev))) | |
1178 | 1184 | then throw("Not enough coins removed") | |
1179 | 1185 | else { | |
1180 | - | let | |
1181 | - | let | |
1182 | - | func | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | if (( | |
1187 | - | then $Tuple2(( | |
1188 | - | else $Tuple2(( | |
1186 | + | let dE = fraction(ey, ae, ac) | |
1187 | + | let ez = (cj + ey) | |
1188 | + | func ef (aO,eg) = { | |
1189 | + | let eA = aO | |
1190 | + | let cQ = eA._1 | |
1191 | + | let aq = eA._2 | |
1192 | + | if ((aq == ew)) | |
1193 | + | then $Tuple2((cQ :+ (eg - ez)), (aq + 1)) | |
1194 | + | else $Tuple2((cQ :+ eg), (aq + 1)) | |
1189 | 1195 | } | |
1190 | 1196 | ||
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | func | |
1196 | - | then | |
1197 | - | else | |
1197 | + | let eB = { | |
1198 | + | let aQ = aY | |
1199 | + | let aR = size(aQ) | |
1200 | + | let aS = $Tuple2(nil, 0) | |
1201 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1202 | + | then aU | |
1203 | + | else ef(aU, aQ[aV]) | |
1198 | 1204 | ||
1199 | - | func | |
1200 | - | then | |
1205 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1206 | + | then aU | |
1201 | 1207 | else throw("List size exceeds 10") | |
1202 | 1208 | ||
1203 | - | | |
1209 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1204 | 1210 | } | |
1205 | - | let | |
1206 | - | let | |
1207 | - | if ( | |
1211 | + | let cQ = eB._1 | |
1212 | + | let eC = eB._2 | |
1213 | + | if (cP(cQ)) | |
1208 | 1214 | then throw() | |
1209 | 1215 | else { | |
1210 | - | let | |
1211 | - | if (( | |
1216 | + | let ej = cA(ez, ea) | |
1217 | + | if ((ej == ej)) | |
1212 | 1218 | then { | |
1213 | - | let | |
1214 | - | let | |
1215 | - | then invoke( | |
1219 | + | let dI = (ey - dE) | |
1220 | + | let dK = if ((dI > 0)) | |
1221 | + | then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)]) | |
1216 | 1222 | else 0 | |
1217 | - | if (( | |
1218 | - | then [ScriptTransfer( | |
1223 | + | if ((dK == dK)) | |
1224 | + | then [ScriptTransfer(dc.originCaller, cj, ed), IntegerEntry((aj[ew] + i), (aY[ew] - ez)), Burn(aa, el), ScriptTransfer(Q, dE, ed), IntegerEntry(n, (ab - el))] | |
1219 | 1225 | else throw("Strict value is not equal to itself.") | |
1220 | 1226 | } | |
1221 | 1227 | else throw("Strict value is not equal to itself.") | |
1222 | 1228 | } | |
1223 | 1229 | } | |
1224 | 1230 | } | |
1225 | 1231 | } | |
1226 | 1232 | }) | |
1227 | 1233 | ||
1228 | 1234 | ||
1229 | 1235 | ||
1230 | - | @Callable( | |
1231 | - | func withdrawOneCoinWithUnlock ( | |
1236 | + | @Callable(dc) | |
1237 | + | func withdrawOneCoinWithUnlock (ea,ev,er) = valueOrElse(ao(), if ((0 >= er)) | |
1232 | 1238 | then throw("Unlock amount must be positive") | |
1233 | 1239 | else { | |
1234 | - | let | |
1235 | - | if ( | |
1236 | - | then (cJ | |
1240 | + | let cJ = cF() | |
1241 | + | if (cJ._1) | |
1242 | + | then (cL(cJ._2) ++ cM(dc.caller, dc.payments)) | |
1237 | 1243 | else { | |
1238 | - | let | |
1239 | - | then if ((size( | |
1244 | + | let el = if ((size(dc.payments) > 0)) | |
1245 | + | then if ((size(dc.payments) != 1)) | |
1240 | 1246 | then throw("size(payments) != 1") | |
1241 | 1247 | else { | |
1242 | - | let | |
1243 | - | if (( | |
1248 | + | let em = dc.payments[0].assetId | |
1249 | + | if ((aa != em)) | |
1244 | 1250 | then throw("unknown payment token") | |
1245 | - | else | |
1251 | + | else dc.payments[0].amount | |
1246 | 1252 | } | |
1247 | 1253 | else 0 | |
1248 | - | let | |
1249 | - | if (( | |
1254 | + | let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil) | |
1255 | + | if ((es == es)) | |
1250 | 1256 | then { | |
1251 | - | let | |
1252 | - | let | |
1253 | - | if (( | |
1257 | + | let et = (el + er) | |
1258 | + | let dJ = invoke(this, "withdrawOneCoin", [ea, ev], [AttachedPayment(aa, et)]) | |
1259 | + | if ((dJ == dJ)) | |
1254 | 1260 | then nil | |
1255 | 1261 | else throw("Strict value is not equal to itself.") | |
1256 | 1262 | } | |
1257 | 1263 | else throw("Strict value is not equal to itself.") | |
1258 | 1264 | } | |
1259 | 1265 | }) | |
1260 | 1266 | ||
1261 | 1267 | ||
1262 | 1268 | ||
1263 | - | @Callable( | |
1264 | - | func A () = $Tuple2(nil, | |
1269 | + | @Callable(dc) | |
1270 | + | func A () = $Tuple2(nil, aH()) | |
1265 | 1271 | ||
1266 | 1272 | ||
1267 | 1273 | ||
1268 | - | @Callable( | |
1274 | + | @Callable(dc) | |
1269 | 1275 | func getVirtualPrice () = { | |
1270 | - | let | |
1271 | - | $Tuple2(nil, fraction( | |
1276 | + | let bp = bb(aM(), aH()) | |
1277 | + | $Tuple2(nil, fraction(bp, a, ab)) | |
1272 | 1278 | } | |
1273 | 1279 | ||
1274 | 1280 | ||
1275 | 1281 | ||
1276 | - | @Callable( | |
1277 | - | func calcTokenAmount ( | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | func | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | then | |
1287 | - | else -( | |
1288 | - | $Tuple2(( | |
1282 | + | @Callable(dc) | |
1283 | + | func calcTokenAmount (eD,eE) = { | |
1284 | + | let bc = aH() | |
1285 | + | let eF = aM() | |
1286 | + | let bX = bs(eF, bc) | |
1287 | + | func eG (aO,en) = { | |
1288 | + | let eH = aO | |
1289 | + | let cQ = eH._1 | |
1290 | + | let aq = eH._2 | |
1291 | + | let dt = (en + (if (eE) | |
1292 | + | then eD[aq] | |
1293 | + | else -(eD[aq]))) | |
1294 | + | $Tuple2((cQ :+ dt), (aq + 1)) | |
1289 | 1295 | } | |
1290 | 1296 | ||
1291 | - | let | |
1292 | - | let | |
1293 | - | let | |
1294 | - | func | |
1295 | - | then | |
1296 | - | else | |
1297 | + | let cQ = ( let aQ = eF | |
1298 | + | let aR = size(aQ) | |
1299 | + | let aS = $Tuple2(nil, 0) | |
1300 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1301 | + | then aU | |
1302 | + | else eG(aU, aQ[aV]) | |
1297 | 1303 | ||
1298 | - | func | |
1299 | - | then | |
1304 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1305 | + | then aU | |
1300 | 1306 | else throw("List size exceeds 10") | |
1301 | 1307 | ||
1302 | - | | |
1303 | - | let | |
1304 | - | let | |
1305 | - | then ( | |
1306 | - | else ( | |
1307 | - | $Tuple2(nil, fraction( | |
1308 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1 | |
1309 | + | let bY = bs(cQ, bc) | |
1310 | + | let eI = if (eE) | |
1311 | + | then (bY - bX) | |
1312 | + | else (bX - bY) | |
1313 | + | $Tuple2(nil, fraction(eI, ab, bX)) | |
1308 | 1314 | } | |
1309 | 1315 | ||
1310 | 1316 | ||
1311 | 1317 | ||
1312 | - | @Callable( | |
1313 | - | func rampA ( | |
1318 | + | @Callable(dc) | |
1319 | + | func rampA (eJ,eK) = valueOrElse(ao(), valueOrElse(ap(dc), if (ax((aw >= (ah + e)))) | |
1314 | 1320 | then throw("too often") | |
1315 | - | else if ( | |
1321 | + | else if (ax((eK >= (aw + e)))) | |
1316 | 1322 | then throw("insufficient time") | |
1317 | 1323 | else { | |
1318 | - | let | |
1319 | - | if ( | |
1320 | - | then (b > | |
1324 | + | let eL = aH() | |
1325 | + | if (ax(if ((eJ > 0)) | |
1326 | + | then (b > eJ) | |
1321 | 1327 | else false)) | |
1322 | 1328 | then throw("out of base range") | |
1323 | - | else if ( | |
1324 | - | then (( | |
1329 | + | else if (ax(if (if ((eJ >= eL)) | |
1330 | + | then ((eL * c) >= eJ) | |
1325 | 1331 | else false) | |
1326 | 1332 | then true | |
1327 | - | else if (( | |
1328 | - | then (( | |
1333 | + | else if ((eL > eJ)) | |
1334 | + | then ((eJ * c) >= eL) | |
1329 | 1335 | else false)) | |
1330 | 1336 | then throw("out of range") | |
1331 | - | else [IntegerEntry("initial_A", | |
1337 | + | else [IntegerEntry("initial_A", eL), IntegerEntry("future_A", eJ), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", eK)] | |
1332 | 1338 | })) | |
1333 | 1339 | ||
1334 | 1340 | ||
1335 | 1341 | ||
1336 | - | @Callable( | |
1337 | - | func stopRampA () = valueOrElse( | |
1338 | - | let | |
1339 | - | [IntegerEntry("initial_A", | |
1342 | + | @Callable(dc) | |
1343 | + | func stopRampA () = valueOrElse(ao(), valueOrElse(ap(dc), { | |
1344 | + | let eM = aH() | |
1345 | + | [IntegerEntry("initial_A", eM), IntegerEntry("future_A", eM), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", aw)] | |
1340 | 1346 | })) | |
1341 | 1347 | ||
1342 | 1348 | ||
1343 | 1349 | ||
1344 | - | @Callable( | |
1345 | - | func shutdown () = valueOrElse( | |
1346 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
1347 | - | else | |
1350 | + | @Callable(dc) | |
1351 | + | func shutdown () = valueOrElse(ap(dc), if (!(Y)) | |
1352 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified"))) | |
1353 | + | else al("Paused by admin")) | |
1348 | 1354 | ||
1349 | 1355 | ||
1350 | 1356 | ||
1351 | - | @Callable( | |
1352 | - | func activate () = valueOrElse( | |
1353 | - | then | |
1354 | - | else [BooleanEntry(j, true), DeleteEntry( | |
1357 | + | @Callable(dc) | |
1358 | + | func activate () = valueOrElse(ap(dc), if (Y) | |
1359 | + | then an() | |
1360 | + | else [BooleanEntry(j, true), DeleteEntry(l)]) | |
1355 | 1361 | ||
1356 | 1362 | ||
1357 | 1363 | ||
1358 | - | @Callable( | |
1359 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
1364 | + | @Callable(dc) | |
1365 | + | func takeIntoAccountExtraFunds () = valueOrElse(ao(), if ((dc.caller != Q)) | |
1360 | 1366 | then throw("Only the wallet can call this function") | |
1361 | 1367 | else { | |
1362 | - | let | |
1363 | - | func | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | if ((0 > | |
1371 | - | then | |
1368 | + | let eF = aM() | |
1369 | + | func eN (aO,aP) = { | |
1370 | + | let eO = aO | |
1371 | + | let eP = eO._1 | |
1372 | + | let aq = eO._2 | |
1373 | + | let eQ = fromBase58String(aP) | |
1374 | + | let eR = (assetBalance(this, eQ) + cC(eQ)) | |
1375 | + | let eS = (eR - eF[aq]) | |
1376 | + | if ((0 > eS)) | |
1377 | + | then al(("Enroll amount negative for asset" + aP)) | |
1372 | 1378 | else { | |
1373 | - | let | |
1374 | - | then invoke( | |
1379 | + | let dK = if ((eS > 0)) | |
1380 | + | then invoke(V, "airDrop", nil, [AttachedPayment(eQ, eS)]) | |
1375 | 1381 | else 0 | |
1376 | - | if (( | |
1377 | - | then $Tuple2(( | |
1382 | + | if ((dK == dK)) | |
1383 | + | then $Tuple2((eP + eS), (aq + 1)) | |
1378 | 1384 | else throw("Strict value is not equal to itself.") | |
1379 | 1385 | } | |
1380 | 1386 | } | |
1381 | 1387 | ||
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | func | |
1387 | - | then | |
1388 | - | else | |
1388 | + | let dw = { | |
1389 | + | let aQ = aj | |
1390 | + | let aR = size(aQ) | |
1391 | + | let aS = $Tuple2(0, 0) | |
1392 | + | func aT (aU,aV) = if ((aV >= aR)) | |
1393 | + | then aU | |
1394 | + | else eN(aU, aQ[aV]) | |
1389 | 1395 | ||
1390 | - | func | |
1391 | - | then | |
1396 | + | func aW (aU,aV) = if ((aV >= aR)) | |
1397 | + | then aU | |
1392 | 1398 | else throw("List size exceeds 10") | |
1393 | 1399 | ||
1394 | - | | |
1400 | + | aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1395 | 1401 | } | |
1396 | - | if (( | |
1402 | + | if ((dw._1 == 0)) | |
1397 | 1403 | then throw("No money to take") | |
1398 | 1404 | else nil | |
1399 | 1405 | }) | |
1400 | 1406 | ||
1401 | 1407 | ||
1402 | - | @Verifier( | |
1403 | - | func | |
1404 | - | let | |
1405 | - | let | |
1408 | + | @Verifier(eT) | |
1409 | + | func eU () = { | |
1410 | + | let eV = { | |
1411 | + | let eW = if (sigVerify(eT.bodyBytes, eT.proofs[0], M)) | |
1406 | 1412 | then 1 | |
1407 | 1413 | else 0 | |
1408 | - | let | |
1414 | + | let eX = if (sigVerify(eT.bodyBytes, eT.proofs[1], N)) | |
1409 | 1415 | then 1 | |
1410 | 1416 | else 0 | |
1411 | - | let | |
1417 | + | let eY = if (sigVerify(eT.bodyBytes, eT.proofs[2], O)) | |
1412 | 1418 | then 1 | |
1413 | 1419 | else 0 | |
1414 | - | ((( | |
1420 | + | (((eW + eX) + eY) >= 2) | |
1415 | 1421 | } | |
1416 | - | let | |
1417 | - | if ($isInstanceOf( | |
1422 | + | let J = eT | |
1423 | + | if ($isInstanceOf(J, "InvokeScriptTransaction")) | |
1418 | 1424 | then { | |
1419 | - | let | |
1420 | - | let | |
1421 | - | then ( | |
1425 | + | let dJ = J | |
1426 | + | let eZ = if ((dJ.dApp == this)) | |
1427 | + | then (dJ.function == "takeIntoAccountExtraFunds") | |
1422 | 1428 | else false | |
1423 | - | let | |
1429 | + | let fa = if (if (if (sigVerify(eT.bodyBytes, eT.proofs[0], M)) | |
1424 | 1430 | then true | |
1425 | - | else sigVerify( | |
1431 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], N)) | |
1426 | 1432 | then true | |
1427 | - | else sigVerify( | |
1433 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], O)) | |
1428 | 1434 | then true | |
1429 | - | else sigVerify( | |
1430 | - | if (if ( | |
1431 | - | then | |
1435 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], P) | |
1436 | + | if (if (eZ) | |
1437 | + | then fa | |
1432 | 1438 | else false) | |
1433 | 1439 | then true | |
1434 | - | else | |
1440 | + | else eV | |
1435 | 1441 | } | |
1436 | - | else | |
1442 | + | else eV | |
1437 | 1443 | } | |
1438 | 1444 |
github/deemru/w8io/026f985 621.25 ms ◑