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