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