tx · 6sheZFMRfTAE9enRiTfug2UpBoQpdUaLgzJuhRvvmHpY 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc: -0.01400000 Waves 2021.04.15 16:33 [1483626] smart account 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc > SELF 0.00000000 Waves
{ "type": 13, "id": "6sheZFMRfTAE9enRiTfug2UpBoQpdUaLgzJuhRvvmHpY", "fee": 1400000, "feeAssetId": null, "timestamp": 1618493639534, "version": 1, "sender": "3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc", "senderPublicKey": "DoeRC9WSwJNdJzQYBEDUB3g6ZcE95e6PjGqwV3q7JNMF", "proofs": [ "WJM14kmo2mJt1MkNed3DvWNX73rem5srTJFjgZfhBuy7bpsqYQJNZGWBVMpKmiLm4bedmQYiGAwPvvBNxiHHqQn" ], "script": "base64:AAIEAAAAAAAAABMIAhIAEgASBAoCCAgSABIDCgEIAAAAdwEAAAARa2V5QWNjdW11bGF0ZWRGZWUAAAAAAgAAABIlc19fYWNjdW11bGF0ZWRGZWUBAAAAGWtleUFjY3VtdWxhdGVkUHJvdG9jb2xGZWUAAAAAAgAAABolc19fYWNjdW11bGF0ZWRQcm90b2NvbEZlZQEAAAAOa2V5VWNvbGxhdGVyYWwAAAAAAgAAAA8lc19fdWNvbGxhdGVyYWwBAAAAGWtleVRvdGFsTGVuZGVkQXRPdGhlckFjY3MAAAAAAgAAABolc19fdG90YWxMZW5kZWRBdE90aGVyQWNjcwEAAAATa2V5QXNzZXRMb2NrZWRUb3RhbAAAAAEAAAAHYXNzZXRJZAkAASwAAAACAgAAABglcyVzX19hc3NldExvY2tlZFRvdGFsX18FAAAAB2Fzc2V0SWQBAAAAE2tleUFjY291bnRPcGVyYXRpb24AAAADAAAADHVubG9ja0hlaWdodAAAAAdhZGRyZXNzAAAABnN0YXR1cwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAHiVzJXMlZCVzX19kZWZv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", "chainId": 84, "height": 1483626, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EXL8Bh5c3wK339PzNFoBhpDMaq9Ywu3W2h42svmqCpXT Next: none Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | func a () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | - | func b () = "%s__ | |
7 | + | func b () = "%s__accumulatedProtocolFee" | |
8 | 8 | ||
9 | 9 | ||
10 | - | func c () = "%s__ | |
10 | + | func c () = "%s__ucollateral" | |
11 | 11 | ||
12 | 12 | ||
13 | - | func d ( | |
13 | + | func d () = "%s__totalLendedAtOtherAccs" | |
14 | 14 | ||
15 | 15 | ||
16 | - | func | |
16 | + | func e (f) = ("%s%s__assetLockedTotal__" + f) | |
17 | 17 | ||
18 | 18 | ||
19 | - | func | |
19 | + | func g (h,i,j) = ((((("%s%s%d%s__defoAssetOperation__" + i) + "__") + toString(h)) + "__") + j) | |
20 | 20 | ||
21 | 21 | ||
22 | - | func k ( | |
22 | + | func k () = "%s__factory" | |
23 | 23 | ||
24 | 24 | ||
25 | - | func | |
25 | + | func l (m) = ("%s%s__lendedBaseAssetAmount__" + m) | |
26 | 26 | ||
27 | 27 | ||
28 | - | func n ( | |
28 | + | func n (m) = ("%s%s__price__" + m) | |
29 | 29 | ||
30 | 30 | ||
31 | - | let o = 1 | |
32 | - | ||
33 | - | let p = 2 | |
34 | - | ||
35 | - | let q = 3 | |
36 | - | ||
37 | - | let r = 4 | |
38 | - | ||
39 | - | let s = 5 | |
40 | - | ||
41 | - | func t (u,v,w,x,y,z,A) = makeString(["%d%s%d%s%d%d%d", toString(u), v, toString(x), y, toString(w), toString(z), toString(A)], "__") | |
31 | + | func o (m) = ("%s%s__lastHeight__" + m) | |
42 | 32 | ||
43 | 33 | ||
44 | - | func B (C,D,E,F,G) = makeString(["%s%s%d%s%d%d%d", C, toBase58String(value(D.assetId)), toString(D.amount), toBase58String(value(E.assetId)), toString(E.amount), toString(F), toString(G)], "__") | |
34 | + | let p = 1 | |
35 | + | ||
36 | + | let q = 2 | |
37 | + | ||
38 | + | let r = 3 | |
39 | + | ||
40 | + | let s = 4 | |
41 | + | ||
42 | + | let t = 5 | |
43 | + | ||
44 | + | func u (v,w,x,y,z,A,B,C) = makeString(["%d%s%d%s%d%d%d%d", toString(v), w, toString(y), z, toString(x), toString(A), toString(B), toString(C)], "__") | |
45 | 45 | ||
46 | 46 | ||
47 | - | func H (I) = { | |
48 | - | let J = valueOrErrorMessage(getString(this, I), ("There is no request for passed arguments: " + I)) | |
49 | - | split(J, "__") | |
47 | + | func D (E,F,G,H,I) = makeString(["%s%s%d%s%d%d%d", E, toBase58String(value(F.assetId)), toString(F.amount), toBase58String(value(G.assetId)), toString(G.amount), toString(H), toString(I)], "__") | |
48 | + | ||
49 | + | ||
50 | + | func J (K) = { | |
51 | + | let L = valueOrErrorMessage(getString(this, K), ("There is no request for passed arguments: " + K)) | |
52 | + | split(L, "__") | |
50 | 53 | } | |
51 | 54 | ||
52 | 55 | ||
53 | - | let | |
56 | + | let M = -1 | |
54 | 57 | ||
55 | - | let | |
58 | + | let N = "NULL" | |
56 | 59 | ||
57 | - | let | |
60 | + | let O = addressFromStringValue(valueOrErrorMessage(getString(this, k()), ((("No config at this=" + toString(this)) + " for key=") + k()))) | |
58 | 61 | ||
59 | - | func | |
62 | + | func P () = "%s%s__commonConfig__neutrinoContractAddress" | |
60 | 63 | ||
61 | 64 | ||
62 | - | func | |
65 | + | func Q () = "%s%s__commonConfig__debtAssetId" | |
63 | 66 | ||
64 | 67 | ||
65 | - | func | |
68 | + | func R () = "%s%s__commonConfig__debtAssetEtalonBalance" | |
66 | 69 | ||
67 | 70 | ||
68 | - | func | |
71 | + | func S (T) = (("%s%s%s__defoAsset__" + T) + "__config") | |
69 | 72 | ||
70 | 73 | ||
71 | - | func | |
74 | + | func U (V) = (("%s%s%s__defoAsset__" + toString(V)) + "__currentPool") | |
72 | 75 | ||
73 | 76 | ||
74 | - | func | |
77 | + | func W (m) = (("%s%s%s__defoAsset__" + m) + "__addressByAssetCode") | |
75 | 78 | ||
76 | 79 | ||
77 | - | func | |
80 | + | func X (Y) = (("%s%s%s__defoAsset__" + Y) + "__poolMakers") | |
78 | 81 | ||
79 | 82 | ||
80 | - | func | |
83 | + | func Z () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
81 | 84 | ||
82 | 85 | ||
83 | - | func aa ( | |
86 | + | func aa (Y,ab,ac) = makeString(["%s%s%s%d%s__pool", Y, ab, toString(ac), "liquidityRequest"], "__") | |
84 | 87 | ||
85 | 88 | ||
86 | - | func | |
89 | + | func ad (Y,ab) = makeString(["%s%s%s%s__pool", Y, ab, "unlockHeight"], "__") | |
87 | 90 | ||
88 | 91 | ||
89 | - | func | |
92 | + | func ae () = valueOrErrorMessage(getString(O, Q()), ((("No config at factory=" + toString(O)) + " for key=") + Q())) | |
90 | 93 | ||
91 | 94 | ||
92 | - | func ad (l) = { | |
93 | - | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
94 | - | $Tuple2(Q, ac(Q)) | |
95 | + | func af (T) = split(valueOrErrorMessage(getString(O, S(T)), ((("No config at factory=" + toString(O)) + " for key=") + S(T))), "__") | |
96 | + | ||
97 | + | ||
98 | + | func ag (m) = { | |
99 | + | let T = valueOrErrorMessage(getString(O, W(m)), ((("No config at factory=" + toString(O)) + " for key=") + W(m))) | |
100 | + | $Tuple2(T, af(T)) | |
95 | 101 | } | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func ah (T) = addressFromStringValue("3MsbFMstwm3FHPJXmMfTgyaw7zQrpZfkwnx") | |
99 | 105 | ||
100 | 106 | ||
101 | - | func | |
107 | + | func ai () = fromBase58String(valueOrErrorMessage(getString(O, Z()), ((("No config at factory=" + toString(O)) + " for key=") + Z()))) | |
102 | 108 | ||
103 | 109 | ||
104 | - | let | |
110 | + | let aj = 1 | |
105 | 111 | ||
106 | - | let | |
112 | + | let ak = 2 | |
107 | 113 | ||
108 | - | let | |
114 | + | let al = 3 | |
109 | 115 | ||
110 | - | let | |
116 | + | let am = 4 | |
111 | 117 | ||
112 | - | let | |
118 | + | let an = 5 | |
113 | 119 | ||
114 | - | let | |
120 | + | let ao = 6 | |
115 | 121 | ||
116 | - | let | |
122 | + | let ap = 7 | |
117 | 123 | ||
118 | - | let | |
124 | + | let aq = 8 | |
119 | 125 | ||
120 | - | let | |
126 | + | let ar = 9 | |
121 | 127 | ||
122 | - | let | |
128 | + | let as = 10 | |
123 | 129 | ||
124 | - | let | |
130 | + | let at = 11 | |
125 | 131 | ||
126 | - | let | |
132 | + | let au = 12 | |
127 | 133 | ||
128 | - | let | |
134 | + | let av = 13 | |
129 | 135 | ||
130 | - | let | |
136 | + | let aw = 14 | |
131 | 137 | ||
132 | - | let | |
138 | + | let ax = 15 | |
133 | 139 | ||
134 | - | let | |
140 | + | let ay = 16 | |
135 | 141 | ||
136 | - | let | |
142 | + | let az = 17 | |
137 | 143 | ||
138 | - | let | |
144 | + | let aA = 18 | |
139 | 145 | ||
140 | - | let | |
146 | + | let aB = 19 | |
141 | 147 | ||
142 | - | let | |
148 | + | let aC = 20 | |
143 | 149 | ||
144 | - | let | |
150 | + | let aD = 21 | |
145 | 151 | ||
146 | - | let | |
152 | + | let aE = 22 | |
147 | 153 | ||
148 | - | let | |
154 | + | let aF = af(toString(this)) | |
149 | 155 | ||
150 | - | let | |
156 | + | let aG = aF[aj] | |
151 | 157 | ||
152 | - | let aE = fromBase58String(aD) | |
153 | - | ||
154 | - | let aF = addressFromStringValue(aB[an]) | |
155 | - | ||
156 | - | let aG = parseIntValue(aB[al]) | |
157 | - | ||
158 | - | let aH = aB[ak] | |
158 | + | let aH = aF[ak] | |
159 | 159 | ||
160 | 160 | let aI = fromBase58String(aH) | |
161 | 161 | ||
162 | - | let aJ = | |
162 | + | let aJ = addressFromStringValue(aF[aq]) | |
163 | 163 | ||
164 | - | let aK = parseIntValue( | |
164 | + | let aK = parseIntValue(aF[ao]) | |
165 | 165 | ||
166 | - | let aL = | |
166 | + | let aL = aF[an] | |
167 | 167 | ||
168 | - | let aM = | |
168 | + | let aM = fromBase58String(aL) | |
169 | 169 | ||
170 | - | let aN = parseIntValue( | |
170 | + | let aN = parseIntValue(aF[am]) | |
171 | 171 | ||
172 | - | let aO = parseIntValue( | |
172 | + | let aO = parseIntValue(aF[ar]) | |
173 | 173 | ||
174 | - | let aP = parseIntValue( | |
174 | + | let aP = parseIntValue(aF[as]) | |
175 | 175 | ||
176 | - | let aQ = parseIntValue( | |
176 | + | let aQ = parseIntValue(aF[at]) | |
177 | 177 | ||
178 | - | let aR = | |
178 | + | let aR = parseIntValue(aF[au]) | |
179 | 179 | ||
180 | - | let aS = | |
180 | + | let aS = parseIntValue(aF[av]) | |
181 | 181 | ||
182 | - | let aT = parseIntValue( | |
182 | + | let aT = parseIntValue(aF[aw]) | |
183 | 183 | ||
184 | - | let aU = parseIntValue( | |
184 | + | let aU = parseIntValue(aF[ay]) | |
185 | 185 | ||
186 | - | let aV = | |
186 | + | let aV = aF[az] | |
187 | 187 | ||
188 | - | func aW () = "%s__isBlocked" | |
188 | + | let aW = aF[aA] | |
189 | + | ||
190 | + | let aX = parseIntValue(aF[aB]) | |
191 | + | ||
192 | + | let aY = parseIntValue(aF[aC]) | |
193 | + | ||
194 | + | let aZ = parseIntValue(aF[aD]) | |
195 | + | ||
196 | + | let ba = parseIntValue(aF[aE]) | |
197 | + | ||
198 | + | func bb () = "%s__isBlocked" | |
189 | 199 | ||
190 | 200 | ||
191 | - | func | |
201 | + | func bc (m) = ("%s%s__isMarketOpened__" + m) | |
192 | 202 | ||
193 | 203 | ||
194 | - | let | |
204 | + | let bd = valueOrElse(getBoolean(aJ, bb()), false) | |
195 | 205 | ||
196 | - | let | |
206 | + | let be = valueOrElse(getBoolean(aJ, bc(aG)), false) | |
197 | 207 | ||
198 | - | func | |
208 | + | func bf (m) = valueOrErrorMessage(getInteger(aJ, n(m)), ((("No price at priceOracle=" + toString(aJ)) + " for key=") + n(m))) | |
199 | 209 | ||
200 | 210 | ||
201 | - | func | |
211 | + | func bg (m) = valueOrErrorMessage(getInteger(aJ, o(m)), ((("No lastHeight at priceOracle=" + toString(aJ)) + " for key=") + o(m))) | |
202 | 212 | ||
203 | 213 | ||
204 | - | func | |
214 | + | func bh () = valueOrErrorMessage(getInteger(aJ, "currIdx"), ("No currIdx at controlAcc=" + toString(aJ))) | |
205 | 215 | ||
206 | 216 | ||
207 | - | func | |
208 | - | let | |
209 | - | valueOrElse(getInteger( | |
217 | + | func bi (bj) = { | |
218 | + | let bk = ("idxHeight_" + toString(bj)) | |
219 | + | valueOrElse(getInteger(aJ, bk), 0) | |
210 | 220 | } | |
211 | 221 | ||
212 | 222 | ||
213 | - | func | |
214 | - | let | |
215 | - | valueOrErrorMessage(getInteger( | |
223 | + | func bl (bm) = { | |
224 | + | let bn = ("price_" + toString(bm)) | |
225 | + | valueOrErrorMessage(getInteger(aJ, bn), ((("No " + bn) + " at controlAcc=") + toString(aJ))) | |
216 | 226 | } | |
217 | 227 | ||
218 | 228 | ||
219 | - | let | |
229 | + | let bo = bg(aG) | |
220 | 230 | ||
221 | - | let | |
231 | + | let bp = ((bo - bo) > 5) | |
222 | 232 | ||
223 | - | let bl = "%s%s__commonConfig__defoStakingAddress" | |
224 | - | ||
225 | - | let bm = "%s%s__commonConfig__neutrinoStakingAddress" | |
226 | - | ||
227 | - | func bn (e) = ("%s%s__stakingBalance__" + e) | |
233 | + | func bq () = "fees_manager_address" | |
228 | 234 | ||
229 | 235 | ||
230 | - | func bo () = ((("rpd_balance_" + aH) + "_") + toString(this)) | |
236 | + | let br = addressFromStringValue(valueOrErrorMessage(getString(O, P()), ((("No config at factory=" + toString(O)) + " for key=") + P()))) | |
237 | + | ||
238 | + | let bs = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(br, bq()), (bq() + " is not specified"))), (bq() + " invalid address format")) | |
239 | + | ||
240 | + | let bt = "%s%s__commonConfig__defoStakingAddress" | |
241 | + | ||
242 | + | let bu = "%s%s__commonConfig__neutrinoStakingAddress" | |
243 | + | ||
244 | + | func bv (f) = ("%s%s__stakingBalance__" + f) | |
231 | 245 | ||
232 | 246 | ||
233 | - | let bp = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bl), ((("No config at factoryAcc" + toString(M)) + " for key=") + bl))), ("address extraction error for key=" + bl)) | |
234 | - | ||
235 | - | let bq = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bm), ((("No config at factoryAcc" + toString(M)) + " for key=") + bm))), ("address extraction error for key=" + bm)) | |
236 | - | ||
237 | - | func br () = valueOrElse(getInteger(bp, bn(aD)), 0) | |
247 | + | func bw () = ((("rpd_balance_" + aL) + "_") + toString(this)) | |
238 | 248 | ||
239 | 249 | ||
240 | - | func bs () = valueOrElse(getInteger(bq, bo()), 0) | |
250 | + | let bx = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(O, bt), ((("No config at factoryAcc" + toString(O)) + " for key=") + bt))), ("address extraction error for key=" + bt)) | |
251 | + | ||
252 | + | let by = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(O, bu), ((("No config at factoryAcc" + toString(O)) + " for key=") + bu))), ("address extraction error for key=" + bu)) | |
253 | + | ||
254 | + | func bz () = valueOrElse(getInteger(bx, bv(aH)), 0) | |
241 | 255 | ||
242 | 256 | ||
243 | - | let bt = valueOrElse(getInteger(this, b()), 0) | |
244 | - | ||
245 | - | let bu = valueOrElse(getInteger(this, a()), 0) | |
246 | - | ||
247 | - | let bv = getIntegerValue(M, R(this)) | |
248 | - | ||
249 | - | let bw = fromBase58String(ab()) | |
250 | - | ||
251 | - | let bx = getIntegerValue(M, O()) | |
252 | - | ||
253 | - | let by = (bx - assetBalance(this, bw)) | |
254 | - | ||
255 | - | let bz = ((assetBalance(this, aI) + bs()) + by) | |
256 | - | ||
257 | - | let bA = ba(aB[ag]) | |
258 | - | ||
259 | - | let bB = (value(assetInfo(aE)).quantity - assetBalance(this, aE)) | |
260 | - | ||
261 | - | func bC (bD) = if (aZ) | |
262 | - | then bA | |
263 | - | else fraction((aJ - bD), bA, aJ) | |
257 | + | func bA () = valueOrElse(getInteger(by, bw()), 0) | |
264 | 258 | ||
265 | 259 | ||
266 | - | func bE (bF) = if ((aS == bF)) | |
267 | - | then 0 | |
268 | - | else aO | |
260 | + | let bB = valueOrElse(getInteger(this, c()), 0) | |
261 | + | ||
262 | + | let bC = valueOrElse(getInteger(this, a()), 0) | |
263 | + | ||
264 | + | let bD = valueOrElse(getInteger(this, b()), 0) | |
265 | + | ||
266 | + | let bE = getIntegerValue(O, U(this)) | |
267 | + | ||
268 | + | let bF = fromBase58String(ae()) | |
269 | + | ||
270 | + | let bG = getIntegerValue(O, R()) | |
271 | + | ||
272 | + | let bH = (bG - assetBalance(this, bF)) | |
273 | + | ||
274 | + | let bI = ((assetBalance(this, aM) + bA()) + bH) | |
275 | + | ||
276 | + | let bJ = bf(aF[aj]) | |
277 | + | ||
278 | + | let bK = (value(assetInfo(aI)).quantity - assetBalance(this, aI)) | |
279 | + | ||
280 | + | func bL (bM) = if (be) | |
281 | + | then bJ | |
282 | + | else fraction((aN - bM), bJ, aN) | |
269 | 283 | ||
270 | 284 | ||
271 | - | func | |
272 | - | then | |
273 | - | else | |
285 | + | func bN (bO) = if ((aW == bO)) | |
286 | + | then 0 | |
287 | + | else aS | |
274 | 288 | ||
275 | 289 | ||
276 | - | func | |
277 | - | then | |
278 | - | else | |
290 | + | func bP (bO) = if ((aW == bO)) | |
291 | + | then 0 | |
292 | + | else ba | |
279 | 293 | ||
280 | 294 | ||
281 | - | func | |
295 | + | func bQ (bM,bO) = if ((aW == bO)) | |
282 | 296 | then bJ | |
283 | - | else | |
297 | + | else bL(bM) | |
284 | 298 | ||
285 | 299 | ||
286 | - | func bK (bL,bM,bN,bO,bP,bQ) = { | |
287 | - | let bR = fraction(bM, bP, aJ) | |
288 | - | let bS = fraction(aV, bR, aJ) | |
289 | - | let bT = fraction(bQ, bR, aJ) | |
290 | - | let bU = ((bR - bS) - bT) | |
291 | - | let bV = fraction(bR, aJ, bP) | |
292 | - | let bW = (bM - bV) | |
293 | - | if (if ((bO > bM)) | |
294 | - | then (toString(bL) != toString(bp)) | |
300 | + | func bR (bM) = if (be) | |
301 | + | then bJ | |
302 | + | else fraction((aN + bM), bJ, aN) | |
303 | + | ||
304 | + | ||
305 | + | func bS (bT,bM) = if (be) | |
306 | + | then bT | |
307 | + | else fraction((aN + bM), bT, aN) | |
308 | + | ||
309 | + | ||
310 | + | func bU (bV,bW,bX,bY,bZ,ca,cb) = { | |
311 | + | let cc = fraction(bW, bZ, aN) | |
312 | + | let cd = fraction(aZ, cc, aN) | |
313 | + | let ce = fraction(ca, cc, aN) | |
314 | + | let cf = fraction(cb, cc, aN) | |
315 | + | let cg = (((cc - cd) - ce) - cf) | |
316 | + | let ch = fraction(cc, aN, bZ) | |
317 | + | let ci = (bW - ch) | |
318 | + | if (if ((bY > bW)) | |
319 | + | then (toString(bV) != toString(bx)) | |
295 | 320 | else false) | |
296 | - | then throw(((((("impossible to issue new " + | |
297 | - | else $Tuple2([IntegerEntry( | |
321 | + | then throw(((((("impossible to issue new " + aG) + ": payment=") + toString(bW)) + "is less then min amount=") + toString(bY))) | |
322 | + | else $Tuple2([IntegerEntry(c(), (bB + ch)), StringEntry(g(height, toString(bV), "FINISHED"), u(bW, toBase58String(bX), bJ, cg, toBase58String(aI), cc, ce, cf)), Reissue(aI, ((cg + ce) + cf), true), ScriptTransfer(bV, cg, aI), ScriptTransfer(bV, ci, bX), ScriptTransfer(ah(toString(this)), ce, aI), ScriptTransfer(bs, cf, aI), IntegerEntry(a(), (bC + ce)), IntegerEntry(b(), (bD + cf))], ci) | |
298 | 323 | } | |
299 | 324 | ||
300 | 325 | ||
301 | - | @Callable( | |
326 | + | @Callable(cj) | |
302 | 327 | func buyAsset () = { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | if ( | |
328 | + | let ck = value(cj.payments[0]) | |
329 | + | let cl = value(ck.assetId) | |
330 | + | let bO = toBase58String(cj.callerPublicKey) | |
331 | + | if (bd) | |
307 | 332 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
308 | - | else if ( | |
309 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
310 | - | else if (( | |
311 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
312 | - | else | |
333 | + | else if (bp) | |
334 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height))) | |
335 | + | else if ((cl != aM)) | |
336 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aM)) + " actual=") + toBase58String(cl))) | |
337 | + | else bU(cj.caller, ck.amount, cl, aO, bQ(aU, bO), bN(bO), bP(bO))._1 | |
313 | 338 | } | |
314 | 339 | ||
315 | 340 | ||
316 | 341 | ||
317 | - | @Callable( | |
342 | + | @Callable(cj) | |
318 | 343 | func sellAsset () = { | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | if ( | |
344 | + | let ck = value(cj.payments[0]) | |
345 | + | let cm = value(ck.assetId) | |
346 | + | let cn = toString(cj.caller) | |
347 | + | let co = bR(aU) | |
348 | + | if (bd) | |
324 | 349 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
325 | - | else if ( | |
326 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
327 | - | else if (( | |
328 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
329 | - | else if (( | |
330 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
350 | + | else if (bp) | |
351 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height))) | |
352 | + | else if ((cm != aI)) | |
353 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(aI)) + " actual=") + toBase58String(cm))) | |
354 | + | else if ((aP > ck.amount)) | |
355 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(ck.amount)) + " minAmount=") + toString(aP))) | |
331 | 356 | else { | |
332 | - | let cd = fraction(bY.amount, aJ, cc) | |
333 | - | let ce = if ((cd > bz)) | |
334 | - | then bz | |
335 | - | else cd | |
336 | - | let cf = fraction(ce, cc, aJ) | |
337 | - | let bW = (bY.amount - cf) | |
338 | - | let bS = fraction(aV, cf, aJ) | |
339 | - | let bT = fraction(aP, cf, aJ) | |
340 | - | let cg = ((cf - bS) - bT) | |
341 | - | let ch = fraction(cg, aJ, cc) | |
342 | - | [IntegerEntry(b(), (bt - ch)), StringEntry(f(height, cb, "FINISHED"), t(bY.amount, toBase58String(ca), cc, ch, aH, cf, bT)), Burn(aE, (cg + bS)), ScriptTransfer(bX.caller, ch, aI), ScriptTransfer(bX.caller, bW, aE), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))] | |
357 | + | let cp = fraction(ck.amount, aN, co) | |
358 | + | let cq = if ((cp > bI)) | |
359 | + | then bI | |
360 | + | else cp | |
361 | + | let cr = fraction(cq, co, aN) | |
362 | + | let ci = (ck.amount - cr) | |
363 | + | let cd = fraction(aZ, cr, aN) | |
364 | + | let ce = fraction(aT, cr, aN) | |
365 | + | let cf = fraction(ba, cr, aN) | |
366 | + | let cs = (((cr - cd) - ce) - cf) | |
367 | + | let ct = fraction(cs, aN, co) | |
368 | + | [IntegerEntry(c(), (bB - ct)), StringEntry(g(height, cn, "FINISHED"), u(ck.amount, toBase58String(cm), co, ct, aL, cr, ce, cf)), Burn(aI, (cs + cd)), ScriptTransfer(cj.caller, ct, aM), ScriptTransfer(cj.caller, ci, aI), ScriptTransfer(bs, cf, aI), ScriptTransfer(ah(toString(this)), ce, aI), IntegerEntry(a(), (bC + ce)), IntegerEntry(b(), (bD + cf))] | |
343 | 369 | } | |
344 | 370 | } | |
345 | 371 | ||
346 | 372 | ||
347 | 373 | ||
348 | - | @Callable( | |
349 | - | func crossExchange ( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if ( | |
374 | + | @Callable(cj) | |
375 | + | func crossExchange (cu,cv) = { | |
376 | + | let ck = value(cj.payments[0]) | |
377 | + | let cm = value(ck.assetId) | |
378 | + | let cw = toBase58String(cm) | |
379 | + | let cx = ck.amount | |
380 | + | let cn = toString(cj.caller) | |
381 | + | let cy = aF | |
382 | + | let cz = ag(cv) | |
383 | + | let cA = cz._2 | |
384 | + | let cB = valueOrErrorMessage(addressFromString(cz._1), ("couldn't parse address from string for assetCode=" + cv)) | |
385 | + | let cC = valueOrErrorMessage(parseInt(cA[as]), ("minSellPmt parsing error: rawVal=" + cA[as])) | |
386 | + | let cD = bg(cv) | |
387 | + | let cE = ((cD - cD) > 5) | |
388 | + | if (bd) | |
363 | 389 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
364 | - | else if (( | |
365 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
366 | - | else if (( | |
367 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
368 | - | else if (( | |
369 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
370 | - | else if (( | |
371 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
372 | - | else if ( | |
373 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
374 | - | else if ( | |
375 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
390 | + | else if ((aF[aj] != cu)) | |
391 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aF[aj]) + " BUT buyAssetId=") + cu)) | |
392 | + | else if ((cA[ak] != cw)) | |
393 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + cA[ak]) + "BUT pmtAsset=") + cw)) | |
394 | + | else if ((aF[al] != "ISSUED")) | |
395 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + cu) + " BUT status=") + aF[al])) | |
396 | + | else if ((cA[al] != "ISSUED")) | |
397 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + cw) + " BUT status=") + cA[al])) | |
398 | + | else if (bp) | |
399 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height)) + " buyCode=") + cu)) | |
400 | + | else if (cE) | |
401 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height)) + " sellCode=") + cv)) | |
376 | 402 | else { | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | (((( | |
403 | + | let cF = bL((aU / 2)) | |
404 | + | let cG = bS(bf(cv), (aU / 2)) | |
405 | + | let bZ = fraction(cF, aN, cG) | |
406 | + | let cH = fraction(cx, aN, cG) | |
407 | + | let cI = valueOrElse(getInteger(this, d()), 0) | |
408 | + | let cJ = l(cv) | |
409 | + | let cK = valueOrElse(getInteger(this, cJ), 0) | |
410 | + | let cL = parseIntValue(cA[aw]) | |
411 | + | let cM = fraction((aS + cL), aX, aN) | |
412 | + | let cN = bU(cj.caller, cx, cm, cC, bZ, cM, ba) | |
413 | + | ((((cN._1 :+ ScriptTransfer(cB, cH, bF)) :+ ScriptTransfer(cB, (cx - cN._2), cm)) :+ IntegerEntry(cJ, (cK + cH))) :+ IntegerEntry(d(), (cI + cH))) | |
388 | 414 | } | |
389 | 415 | } | |
390 | 416 | ||
391 | 417 | ||
392 | 418 | ||
393 | - | @Callable( | |
419 | + | @Callable(cj) | |
394 | 420 | func rebalanceDebts () = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | if ( | |
421 | + | let cO = value(cj.payments[0]) | |
422 | + | let cP = value(cO.assetId) | |
423 | + | let cQ = value(cj.payments[1]) | |
424 | + | let cR = value(cQ.assetId) | |
425 | + | let cS = toString(cj.caller) | |
426 | + | let cT = af(cS) | |
427 | + | let E = cT[aj] | |
428 | + | let cJ = l(E) | |
429 | + | let cU = valueOrErrorMessage(getInteger(this, cJ), ("No debts for " + E)) | |
430 | + | if (bd) | |
405 | 431 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
406 | - | else if (( | |
407 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
408 | - | else if (( | |
409 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
410 | - | else if (( | |
432 | + | else if ((bF != cP)) | |
433 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bF)) + " actual=") + toBase58String(cP))) | |
434 | + | else if ((aM != cR)) | |
435 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aM)) + " actual=") + toBase58String(cR))) | |
436 | + | else if ((cO.amount != cQ.amount)) | |
411 | 437 | then throw("first payment amount doesn't match to the second payment amount") | |
412 | - | else if ((0 >= | |
413 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
414 | - | else if (((1 * | |
415 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
416 | - | else if (( | |
417 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
438 | + | else if ((0 >= cU)) | |
439 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cU))) | |
440 | + | else if (((1 * aN) >= cO.amount)) | |
441 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cO.amount))) | |
442 | + | else if ((cO.amount > cU)) | |
443 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cO.amount)) + " lendedAmt=") + toString(cU))) | |
418 | 444 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | [IntegerEntry( | |
445 | + | let cI = valueOrElse(getInteger(this, d()), 0) | |
446 | + | let I = (cU - cO.amount) | |
447 | + | [IntegerEntry(cJ, I), IntegerEntry(d(), (cI - cO.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(cj.transactionId)), D(E, cO, cQ, cU, I))] | |
422 | 448 | } | |
423 | 449 | } | |
424 | 450 | ||
425 | 451 | ||
426 | 452 | ||
427 | - | @Callable( | |
428 | - | func fulfillRedeemRequest ( | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | if ((0 >= | |
453 | + | @Callable(cj) | |
454 | + | func fulfillRedeemRequest (ab) = { | |
455 | + | let cV = toString(this) | |
456 | + | let cW = ad(cV, ab) | |
457 | + | let cX = valueOrElse(getInteger(O, cW), 0) | |
458 | + | if ((0 >= cX)) | |
433 | 459 | then throw("All liquidity request fulfilled") | |
434 | 460 | else { | |
435 | - | let | |
436 | - | let | |
437 | - | if (isDefined(getInteger(this, | |
461 | + | let cY = aa(cV, ab, cX) | |
462 | + | let cZ = valueOrErrorMessage(getInteger(O, cY), "Empty poolMakerLiquidityRequestKey at factory acc") | |
463 | + | if (isDefined(getInteger(this, cY))) | |
438 | 464 | then throw("Liquidity request has been already fulfilled") | |
439 | - | else [IntegerEntry( | |
465 | + | else [IntegerEntry(cY, cZ), ScriptTransfer(O, cZ, aM)] | |
440 | 466 | } | |
441 | 467 | } | |
442 | 468 | ||
443 | 469 | ||
444 | - | @Verifier( | |
445 | - | func | |
446 | - | let | |
447 | - | if ($isInstanceOf( | |
470 | + | @Verifier(da) | |
471 | + | func db () = { | |
472 | + | let dc = da | |
473 | + | if ($isInstanceOf(dc, "InvokeScriptTransaction")) | |
448 | 474 | then { | |
449 | - | let | |
450 | - | if (( | |
451 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
452 | - | else if (isDefined( | |
475 | + | let dd = dc | |
476 | + | if ((dd.fee > (900 * 1000))) | |
477 | + | then throw(("fee amount is greater than max allowed: " + toString(dd.fee))) | |
478 | + | else if (isDefined(dd.feeAssetId)) | |
453 | 479 | then throw("only Waves is allowed as feeAssetId") | |
454 | - | else if (( | |
480 | + | else if ((dd.function == "rebalanceDebts")) | |
455 | 481 | then { | |
456 | - | let | |
457 | - | if (( | |
482 | + | let de = toString(addressFromRecipient(dd.dApp)) | |
483 | + | if ((af(de)[al] != "ISSUED")) | |
458 | 484 | then throw("only defo dapp is allowed") | |
459 | - | else if (( | |
485 | + | else if ((de == toString(this))) | |
460 | 486 | then throw("impossible to call self rebealnceDebt") | |
461 | 487 | else true | |
462 | 488 | } | |
463 | - | else if (if (if (( | |
489 | + | else if (if (if ((dd.function == "lockNeutrino")) | |
464 | 490 | then true | |
465 | - | else ( | |
491 | + | else (dd.function == "lockNeutrinoSP")) | |
466 | 492 | then true | |
467 | - | else ( | |
468 | - | then if ((toString( | |
493 | + | else (dd.function == "unlockNeutrino")) | |
494 | + | then if ((toString(by) != toString(addressFromRecipient(dd.dApp)))) | |
469 | 495 | then throw("invalid neutrino staking dapp address") | |
470 | - | else sigVerify( | |
496 | + | else sigVerify(da.bodyBytes, da.proofs[0], ai()) | |
471 | 497 | else throw("Not allowed invocation method calls") | |
472 | 498 | } | |
473 | - | else sigVerify( | |
499 | + | else sigVerify(da.bodyBytes, da.proofs[0], da.senderPublicKey) | |
474 | 500 | } | |
475 | 501 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | - | func b () = "%s__ | |
7 | + | func b () = "%s__accumulatedProtocolFee" | |
8 | 8 | ||
9 | 9 | ||
10 | - | func c () = "%s__ | |
10 | + | func c () = "%s__ucollateral" | |
11 | 11 | ||
12 | 12 | ||
13 | - | func d ( | |
13 | + | func d () = "%s__totalLendedAtOtherAccs" | |
14 | 14 | ||
15 | 15 | ||
16 | - | func | |
16 | + | func e (f) = ("%s%s__assetLockedTotal__" + f) | |
17 | 17 | ||
18 | 18 | ||
19 | - | func | |
19 | + | func g (h,i,j) = ((((("%s%s%d%s__defoAssetOperation__" + i) + "__") + toString(h)) + "__") + j) | |
20 | 20 | ||
21 | 21 | ||
22 | - | func k ( | |
22 | + | func k () = "%s__factory" | |
23 | 23 | ||
24 | 24 | ||
25 | - | func | |
25 | + | func l (m) = ("%s%s__lendedBaseAssetAmount__" + m) | |
26 | 26 | ||
27 | 27 | ||
28 | - | func n ( | |
28 | + | func n (m) = ("%s%s__price__" + m) | |
29 | 29 | ||
30 | 30 | ||
31 | - | let o = 1 | |
32 | - | ||
33 | - | let p = 2 | |
34 | - | ||
35 | - | let q = 3 | |
36 | - | ||
37 | - | let r = 4 | |
38 | - | ||
39 | - | let s = 5 | |
40 | - | ||
41 | - | func t (u,v,w,x,y,z,A) = makeString(["%d%s%d%s%d%d%d", toString(u), v, toString(x), y, toString(w), toString(z), toString(A)], "__") | |
31 | + | func o (m) = ("%s%s__lastHeight__" + m) | |
42 | 32 | ||
43 | 33 | ||
44 | - | func B (C,D,E,F,G) = makeString(["%s%s%d%s%d%d%d", C, toBase58String(value(D.assetId)), toString(D.amount), toBase58String(value(E.assetId)), toString(E.amount), toString(F), toString(G)], "__") | |
34 | + | let p = 1 | |
35 | + | ||
36 | + | let q = 2 | |
37 | + | ||
38 | + | let r = 3 | |
39 | + | ||
40 | + | let s = 4 | |
41 | + | ||
42 | + | let t = 5 | |
43 | + | ||
44 | + | func u (v,w,x,y,z,A,B,C) = makeString(["%d%s%d%s%d%d%d%d", toString(v), w, toString(y), z, toString(x), toString(A), toString(B), toString(C)], "__") | |
45 | 45 | ||
46 | 46 | ||
47 | - | func H (I) = { | |
48 | - | let J = valueOrErrorMessage(getString(this, I), ("There is no request for passed arguments: " + I)) | |
49 | - | split(J, "__") | |
47 | + | func D (E,F,G,H,I) = makeString(["%s%s%d%s%d%d%d", E, toBase58String(value(F.assetId)), toString(F.amount), toBase58String(value(G.assetId)), toString(G.amount), toString(H), toString(I)], "__") | |
48 | + | ||
49 | + | ||
50 | + | func J (K) = { | |
51 | + | let L = valueOrErrorMessage(getString(this, K), ("There is no request for passed arguments: " + K)) | |
52 | + | split(L, "__") | |
50 | 53 | } | |
51 | 54 | ||
52 | 55 | ||
53 | - | let | |
56 | + | let M = -1 | |
54 | 57 | ||
55 | - | let | |
58 | + | let N = "NULL" | |
56 | 59 | ||
57 | - | let | |
60 | + | let O = addressFromStringValue(valueOrErrorMessage(getString(this, k()), ((("No config at this=" + toString(this)) + " for key=") + k()))) | |
58 | 61 | ||
59 | - | func | |
62 | + | func P () = "%s%s__commonConfig__neutrinoContractAddress" | |
60 | 63 | ||
61 | 64 | ||
62 | - | func | |
65 | + | func Q () = "%s%s__commonConfig__debtAssetId" | |
63 | 66 | ||
64 | 67 | ||
65 | - | func | |
68 | + | func R () = "%s%s__commonConfig__debtAssetEtalonBalance" | |
66 | 69 | ||
67 | 70 | ||
68 | - | func | |
71 | + | func S (T) = (("%s%s%s__defoAsset__" + T) + "__config") | |
69 | 72 | ||
70 | 73 | ||
71 | - | func | |
74 | + | func U (V) = (("%s%s%s__defoAsset__" + toString(V)) + "__currentPool") | |
72 | 75 | ||
73 | 76 | ||
74 | - | func | |
77 | + | func W (m) = (("%s%s%s__defoAsset__" + m) + "__addressByAssetCode") | |
75 | 78 | ||
76 | 79 | ||
77 | - | func | |
80 | + | func X (Y) = (("%s%s%s__defoAsset__" + Y) + "__poolMakers") | |
78 | 81 | ||
79 | 82 | ||
80 | - | func | |
83 | + | func Z () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
81 | 84 | ||
82 | 85 | ||
83 | - | func aa ( | |
86 | + | func aa (Y,ab,ac) = makeString(["%s%s%s%d%s__pool", Y, ab, toString(ac), "liquidityRequest"], "__") | |
84 | 87 | ||
85 | 88 | ||
86 | - | func | |
89 | + | func ad (Y,ab) = makeString(["%s%s%s%s__pool", Y, ab, "unlockHeight"], "__") | |
87 | 90 | ||
88 | 91 | ||
89 | - | func | |
92 | + | func ae () = valueOrErrorMessage(getString(O, Q()), ((("No config at factory=" + toString(O)) + " for key=") + Q())) | |
90 | 93 | ||
91 | 94 | ||
92 | - | func ad (l) = { | |
93 | - | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
94 | - | $Tuple2(Q, ac(Q)) | |
95 | + | func af (T) = split(valueOrErrorMessage(getString(O, S(T)), ((("No config at factory=" + toString(O)) + " for key=") + S(T))), "__") | |
96 | + | ||
97 | + | ||
98 | + | func ag (m) = { | |
99 | + | let T = valueOrErrorMessage(getString(O, W(m)), ((("No config at factory=" + toString(O)) + " for key=") + W(m))) | |
100 | + | $Tuple2(T, af(T)) | |
95 | 101 | } | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func ah (T) = addressFromStringValue("3MsbFMstwm3FHPJXmMfTgyaw7zQrpZfkwnx") | |
99 | 105 | ||
100 | 106 | ||
101 | - | func | |
107 | + | func ai () = fromBase58String(valueOrErrorMessage(getString(O, Z()), ((("No config at factory=" + toString(O)) + " for key=") + Z()))) | |
102 | 108 | ||
103 | 109 | ||
104 | - | let | |
110 | + | let aj = 1 | |
105 | 111 | ||
106 | - | let | |
112 | + | let ak = 2 | |
107 | 113 | ||
108 | - | let | |
114 | + | let al = 3 | |
109 | 115 | ||
110 | - | let | |
116 | + | let am = 4 | |
111 | 117 | ||
112 | - | let | |
118 | + | let an = 5 | |
113 | 119 | ||
114 | - | let | |
120 | + | let ao = 6 | |
115 | 121 | ||
116 | - | let | |
122 | + | let ap = 7 | |
117 | 123 | ||
118 | - | let | |
124 | + | let aq = 8 | |
119 | 125 | ||
120 | - | let | |
126 | + | let ar = 9 | |
121 | 127 | ||
122 | - | let | |
128 | + | let as = 10 | |
123 | 129 | ||
124 | - | let | |
130 | + | let at = 11 | |
125 | 131 | ||
126 | - | let | |
132 | + | let au = 12 | |
127 | 133 | ||
128 | - | let | |
134 | + | let av = 13 | |
129 | 135 | ||
130 | - | let | |
136 | + | let aw = 14 | |
131 | 137 | ||
132 | - | let | |
138 | + | let ax = 15 | |
133 | 139 | ||
134 | - | let | |
140 | + | let ay = 16 | |
135 | 141 | ||
136 | - | let | |
142 | + | let az = 17 | |
137 | 143 | ||
138 | - | let | |
144 | + | let aA = 18 | |
139 | 145 | ||
140 | - | let | |
146 | + | let aB = 19 | |
141 | 147 | ||
142 | - | let | |
148 | + | let aC = 20 | |
143 | 149 | ||
144 | - | let | |
150 | + | let aD = 21 | |
145 | 151 | ||
146 | - | let | |
152 | + | let aE = 22 | |
147 | 153 | ||
148 | - | let | |
154 | + | let aF = af(toString(this)) | |
149 | 155 | ||
150 | - | let | |
156 | + | let aG = aF[aj] | |
151 | 157 | ||
152 | - | let aE = fromBase58String(aD) | |
153 | - | ||
154 | - | let aF = addressFromStringValue(aB[an]) | |
155 | - | ||
156 | - | let aG = parseIntValue(aB[al]) | |
157 | - | ||
158 | - | let aH = aB[ak] | |
158 | + | let aH = aF[ak] | |
159 | 159 | ||
160 | 160 | let aI = fromBase58String(aH) | |
161 | 161 | ||
162 | - | let aJ = | |
162 | + | let aJ = addressFromStringValue(aF[aq]) | |
163 | 163 | ||
164 | - | let aK = parseIntValue( | |
164 | + | let aK = parseIntValue(aF[ao]) | |
165 | 165 | ||
166 | - | let aL = | |
166 | + | let aL = aF[an] | |
167 | 167 | ||
168 | - | let aM = | |
168 | + | let aM = fromBase58String(aL) | |
169 | 169 | ||
170 | - | let aN = parseIntValue( | |
170 | + | let aN = parseIntValue(aF[am]) | |
171 | 171 | ||
172 | - | let aO = parseIntValue( | |
172 | + | let aO = parseIntValue(aF[ar]) | |
173 | 173 | ||
174 | - | let aP = parseIntValue( | |
174 | + | let aP = parseIntValue(aF[as]) | |
175 | 175 | ||
176 | - | let aQ = parseIntValue( | |
176 | + | let aQ = parseIntValue(aF[at]) | |
177 | 177 | ||
178 | - | let aR = | |
178 | + | let aR = parseIntValue(aF[au]) | |
179 | 179 | ||
180 | - | let aS = | |
180 | + | let aS = parseIntValue(aF[av]) | |
181 | 181 | ||
182 | - | let aT = parseIntValue( | |
182 | + | let aT = parseIntValue(aF[aw]) | |
183 | 183 | ||
184 | - | let aU = parseIntValue( | |
184 | + | let aU = parseIntValue(aF[ay]) | |
185 | 185 | ||
186 | - | let aV = | |
186 | + | let aV = aF[az] | |
187 | 187 | ||
188 | - | func aW () = "%s__isBlocked" | |
188 | + | let aW = aF[aA] | |
189 | + | ||
190 | + | let aX = parseIntValue(aF[aB]) | |
191 | + | ||
192 | + | let aY = parseIntValue(aF[aC]) | |
193 | + | ||
194 | + | let aZ = parseIntValue(aF[aD]) | |
195 | + | ||
196 | + | let ba = parseIntValue(aF[aE]) | |
197 | + | ||
198 | + | func bb () = "%s__isBlocked" | |
189 | 199 | ||
190 | 200 | ||
191 | - | func | |
201 | + | func bc (m) = ("%s%s__isMarketOpened__" + m) | |
192 | 202 | ||
193 | 203 | ||
194 | - | let | |
204 | + | let bd = valueOrElse(getBoolean(aJ, bb()), false) | |
195 | 205 | ||
196 | - | let | |
206 | + | let be = valueOrElse(getBoolean(aJ, bc(aG)), false) | |
197 | 207 | ||
198 | - | func | |
208 | + | func bf (m) = valueOrErrorMessage(getInteger(aJ, n(m)), ((("No price at priceOracle=" + toString(aJ)) + " for key=") + n(m))) | |
199 | 209 | ||
200 | 210 | ||
201 | - | func | |
211 | + | func bg (m) = valueOrErrorMessage(getInteger(aJ, o(m)), ((("No lastHeight at priceOracle=" + toString(aJ)) + " for key=") + o(m))) | |
202 | 212 | ||
203 | 213 | ||
204 | - | func | |
214 | + | func bh () = valueOrErrorMessage(getInteger(aJ, "currIdx"), ("No currIdx at controlAcc=" + toString(aJ))) | |
205 | 215 | ||
206 | 216 | ||
207 | - | func | |
208 | - | let | |
209 | - | valueOrElse(getInteger( | |
217 | + | func bi (bj) = { | |
218 | + | let bk = ("idxHeight_" + toString(bj)) | |
219 | + | valueOrElse(getInteger(aJ, bk), 0) | |
210 | 220 | } | |
211 | 221 | ||
212 | 222 | ||
213 | - | func | |
214 | - | let | |
215 | - | valueOrErrorMessage(getInteger( | |
223 | + | func bl (bm) = { | |
224 | + | let bn = ("price_" + toString(bm)) | |
225 | + | valueOrErrorMessage(getInteger(aJ, bn), ((("No " + bn) + " at controlAcc=") + toString(aJ))) | |
216 | 226 | } | |
217 | 227 | ||
218 | 228 | ||
219 | - | let | |
229 | + | let bo = bg(aG) | |
220 | 230 | ||
221 | - | let | |
231 | + | let bp = ((bo - bo) > 5) | |
222 | 232 | ||
223 | - | let bl = "%s%s__commonConfig__defoStakingAddress" | |
224 | - | ||
225 | - | let bm = "%s%s__commonConfig__neutrinoStakingAddress" | |
226 | - | ||
227 | - | func bn (e) = ("%s%s__stakingBalance__" + e) | |
233 | + | func bq () = "fees_manager_address" | |
228 | 234 | ||
229 | 235 | ||
230 | - | func bo () = ((("rpd_balance_" + aH) + "_") + toString(this)) | |
236 | + | let br = addressFromStringValue(valueOrErrorMessage(getString(O, P()), ((("No config at factory=" + toString(O)) + " for key=") + P()))) | |
237 | + | ||
238 | + | let bs = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(br, bq()), (bq() + " is not specified"))), (bq() + " invalid address format")) | |
239 | + | ||
240 | + | let bt = "%s%s__commonConfig__defoStakingAddress" | |
241 | + | ||
242 | + | let bu = "%s%s__commonConfig__neutrinoStakingAddress" | |
243 | + | ||
244 | + | func bv (f) = ("%s%s__stakingBalance__" + f) | |
231 | 245 | ||
232 | 246 | ||
233 | - | let bp = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bl), ((("No config at factoryAcc" + toString(M)) + " for key=") + bl))), ("address extraction error for key=" + bl)) | |
234 | - | ||
235 | - | let bq = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bm), ((("No config at factoryAcc" + toString(M)) + " for key=") + bm))), ("address extraction error for key=" + bm)) | |
236 | - | ||
237 | - | func br () = valueOrElse(getInteger(bp, bn(aD)), 0) | |
247 | + | func bw () = ((("rpd_balance_" + aL) + "_") + toString(this)) | |
238 | 248 | ||
239 | 249 | ||
240 | - | func bs () = valueOrElse(getInteger(bq, bo()), 0) | |
250 | + | let bx = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(O, bt), ((("No config at factoryAcc" + toString(O)) + " for key=") + bt))), ("address extraction error for key=" + bt)) | |
251 | + | ||
252 | + | let by = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(O, bu), ((("No config at factoryAcc" + toString(O)) + " for key=") + bu))), ("address extraction error for key=" + bu)) | |
253 | + | ||
254 | + | func bz () = valueOrElse(getInteger(bx, bv(aH)), 0) | |
241 | 255 | ||
242 | 256 | ||
243 | - | let bt = valueOrElse(getInteger(this, b()), 0) | |
244 | - | ||
245 | - | let bu = valueOrElse(getInteger(this, a()), 0) | |
246 | - | ||
247 | - | let bv = getIntegerValue(M, R(this)) | |
248 | - | ||
249 | - | let bw = fromBase58String(ab()) | |
250 | - | ||
251 | - | let bx = getIntegerValue(M, O()) | |
252 | - | ||
253 | - | let by = (bx - assetBalance(this, bw)) | |
254 | - | ||
255 | - | let bz = ((assetBalance(this, aI) + bs()) + by) | |
256 | - | ||
257 | - | let bA = ba(aB[ag]) | |
258 | - | ||
259 | - | let bB = (value(assetInfo(aE)).quantity - assetBalance(this, aE)) | |
260 | - | ||
261 | - | func bC (bD) = if (aZ) | |
262 | - | then bA | |
263 | - | else fraction((aJ - bD), bA, aJ) | |
257 | + | func bA () = valueOrElse(getInteger(by, bw()), 0) | |
264 | 258 | ||
265 | 259 | ||
266 | - | func bE (bF) = if ((aS == bF)) | |
267 | - | then 0 | |
268 | - | else aO | |
260 | + | let bB = valueOrElse(getInteger(this, c()), 0) | |
261 | + | ||
262 | + | let bC = valueOrElse(getInteger(this, a()), 0) | |
263 | + | ||
264 | + | let bD = valueOrElse(getInteger(this, b()), 0) | |
265 | + | ||
266 | + | let bE = getIntegerValue(O, U(this)) | |
267 | + | ||
268 | + | let bF = fromBase58String(ae()) | |
269 | + | ||
270 | + | let bG = getIntegerValue(O, R()) | |
271 | + | ||
272 | + | let bH = (bG - assetBalance(this, bF)) | |
273 | + | ||
274 | + | let bI = ((assetBalance(this, aM) + bA()) + bH) | |
275 | + | ||
276 | + | let bJ = bf(aF[aj]) | |
277 | + | ||
278 | + | let bK = (value(assetInfo(aI)).quantity - assetBalance(this, aI)) | |
279 | + | ||
280 | + | func bL (bM) = if (be) | |
281 | + | then bJ | |
282 | + | else fraction((aN - bM), bJ, aN) | |
269 | 283 | ||
270 | 284 | ||
271 | - | func | |
272 | - | then | |
273 | - | else | |
285 | + | func bN (bO) = if ((aW == bO)) | |
286 | + | then 0 | |
287 | + | else aS | |
274 | 288 | ||
275 | 289 | ||
276 | - | func | |
277 | - | then | |
278 | - | else | |
290 | + | func bP (bO) = if ((aW == bO)) | |
291 | + | then 0 | |
292 | + | else ba | |
279 | 293 | ||
280 | 294 | ||
281 | - | func | |
295 | + | func bQ (bM,bO) = if ((aW == bO)) | |
282 | 296 | then bJ | |
283 | - | else | |
297 | + | else bL(bM) | |
284 | 298 | ||
285 | 299 | ||
286 | - | func bK (bL,bM,bN,bO,bP,bQ) = { | |
287 | - | let bR = fraction(bM, bP, aJ) | |
288 | - | let bS = fraction(aV, bR, aJ) | |
289 | - | let bT = fraction(bQ, bR, aJ) | |
290 | - | let bU = ((bR - bS) - bT) | |
291 | - | let bV = fraction(bR, aJ, bP) | |
292 | - | let bW = (bM - bV) | |
293 | - | if (if ((bO > bM)) | |
294 | - | then (toString(bL) != toString(bp)) | |
300 | + | func bR (bM) = if (be) | |
301 | + | then bJ | |
302 | + | else fraction((aN + bM), bJ, aN) | |
303 | + | ||
304 | + | ||
305 | + | func bS (bT,bM) = if (be) | |
306 | + | then bT | |
307 | + | else fraction((aN + bM), bT, aN) | |
308 | + | ||
309 | + | ||
310 | + | func bU (bV,bW,bX,bY,bZ,ca,cb) = { | |
311 | + | let cc = fraction(bW, bZ, aN) | |
312 | + | let cd = fraction(aZ, cc, aN) | |
313 | + | let ce = fraction(ca, cc, aN) | |
314 | + | let cf = fraction(cb, cc, aN) | |
315 | + | let cg = (((cc - cd) - ce) - cf) | |
316 | + | let ch = fraction(cc, aN, bZ) | |
317 | + | let ci = (bW - ch) | |
318 | + | if (if ((bY > bW)) | |
319 | + | then (toString(bV) != toString(bx)) | |
295 | 320 | else false) | |
296 | - | then throw(((((("impossible to issue new " + | |
297 | - | else $Tuple2([IntegerEntry( | |
321 | + | then throw(((((("impossible to issue new " + aG) + ": payment=") + toString(bW)) + "is less then min amount=") + toString(bY))) | |
322 | + | else $Tuple2([IntegerEntry(c(), (bB + ch)), StringEntry(g(height, toString(bV), "FINISHED"), u(bW, toBase58String(bX), bJ, cg, toBase58String(aI), cc, ce, cf)), Reissue(aI, ((cg + ce) + cf), true), ScriptTransfer(bV, cg, aI), ScriptTransfer(bV, ci, bX), ScriptTransfer(ah(toString(this)), ce, aI), ScriptTransfer(bs, cf, aI), IntegerEntry(a(), (bC + ce)), IntegerEntry(b(), (bD + cf))], ci) | |
298 | 323 | } | |
299 | 324 | ||
300 | 325 | ||
301 | - | @Callable( | |
326 | + | @Callable(cj) | |
302 | 327 | func buyAsset () = { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | if ( | |
328 | + | let ck = value(cj.payments[0]) | |
329 | + | let cl = value(ck.assetId) | |
330 | + | let bO = toBase58String(cj.callerPublicKey) | |
331 | + | if (bd) | |
307 | 332 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
308 | - | else if ( | |
309 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
310 | - | else if (( | |
311 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
312 | - | else | |
333 | + | else if (bp) | |
334 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height))) | |
335 | + | else if ((cl != aM)) | |
336 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aM)) + " actual=") + toBase58String(cl))) | |
337 | + | else bU(cj.caller, ck.amount, cl, aO, bQ(aU, bO), bN(bO), bP(bO))._1 | |
313 | 338 | } | |
314 | 339 | ||
315 | 340 | ||
316 | 341 | ||
317 | - | @Callable( | |
342 | + | @Callable(cj) | |
318 | 343 | func sellAsset () = { | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | if ( | |
344 | + | let ck = value(cj.payments[0]) | |
345 | + | let cm = value(ck.assetId) | |
346 | + | let cn = toString(cj.caller) | |
347 | + | let co = bR(aU) | |
348 | + | if (bd) | |
324 | 349 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
325 | - | else if ( | |
326 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
327 | - | else if (( | |
328 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
329 | - | else if (( | |
330 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
350 | + | else if (bp) | |
351 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height))) | |
352 | + | else if ((cm != aI)) | |
353 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(aI)) + " actual=") + toBase58String(cm))) | |
354 | + | else if ((aP > ck.amount)) | |
355 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(ck.amount)) + " minAmount=") + toString(aP))) | |
331 | 356 | else { | |
332 | - | let cd = fraction(bY.amount, aJ, cc) | |
333 | - | let ce = if ((cd > bz)) | |
334 | - | then bz | |
335 | - | else cd | |
336 | - | let cf = fraction(ce, cc, aJ) | |
337 | - | let bW = (bY.amount - cf) | |
338 | - | let bS = fraction(aV, cf, aJ) | |
339 | - | let bT = fraction(aP, cf, aJ) | |
340 | - | let cg = ((cf - bS) - bT) | |
341 | - | let ch = fraction(cg, aJ, cc) | |
342 | - | [IntegerEntry(b(), (bt - ch)), StringEntry(f(height, cb, "FINISHED"), t(bY.amount, toBase58String(ca), cc, ch, aH, cf, bT)), Burn(aE, (cg + bS)), ScriptTransfer(bX.caller, ch, aI), ScriptTransfer(bX.caller, bW, aE), ScriptTransfer(ae(toString(this)), bT, aE), IntegerEntry(a(), (bu + bT))] | |
357 | + | let cp = fraction(ck.amount, aN, co) | |
358 | + | let cq = if ((cp > bI)) | |
359 | + | then bI | |
360 | + | else cp | |
361 | + | let cr = fraction(cq, co, aN) | |
362 | + | let ci = (ck.amount - cr) | |
363 | + | let cd = fraction(aZ, cr, aN) | |
364 | + | let ce = fraction(aT, cr, aN) | |
365 | + | let cf = fraction(ba, cr, aN) | |
366 | + | let cs = (((cr - cd) - ce) - cf) | |
367 | + | let ct = fraction(cs, aN, co) | |
368 | + | [IntegerEntry(c(), (bB - ct)), StringEntry(g(height, cn, "FINISHED"), u(ck.amount, toBase58String(cm), co, ct, aL, cr, ce, cf)), Burn(aI, (cs + cd)), ScriptTransfer(cj.caller, ct, aM), ScriptTransfer(cj.caller, ci, aI), ScriptTransfer(bs, cf, aI), ScriptTransfer(ah(toString(this)), ce, aI), IntegerEntry(a(), (bC + ce)), IntegerEntry(b(), (bD + cf))] | |
343 | 369 | } | |
344 | 370 | } | |
345 | 371 | ||
346 | 372 | ||
347 | 373 | ||
348 | - | @Callable( | |
349 | - | func crossExchange ( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if ( | |
374 | + | @Callable(cj) | |
375 | + | func crossExchange (cu,cv) = { | |
376 | + | let ck = value(cj.payments[0]) | |
377 | + | let cm = value(ck.assetId) | |
378 | + | let cw = toBase58String(cm) | |
379 | + | let cx = ck.amount | |
380 | + | let cn = toString(cj.caller) | |
381 | + | let cy = aF | |
382 | + | let cz = ag(cv) | |
383 | + | let cA = cz._2 | |
384 | + | let cB = valueOrErrorMessage(addressFromString(cz._1), ("couldn't parse address from string for assetCode=" + cv)) | |
385 | + | let cC = valueOrErrorMessage(parseInt(cA[as]), ("minSellPmt parsing error: rawVal=" + cA[as])) | |
386 | + | let cD = bg(cv) | |
387 | + | let cE = ((cD - cD) > 5) | |
388 | + | if (bd) | |
363 | 389 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
364 | - | else if (( | |
365 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
366 | - | else if (( | |
367 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
368 | - | else if (( | |
369 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
370 | - | else if (( | |
371 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
372 | - | else if ( | |
373 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
374 | - | else if ( | |
375 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
390 | + | else if ((aF[aj] != cu)) | |
391 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aF[aj]) + " BUT buyAssetId=") + cu)) | |
392 | + | else if ((cA[ak] != cw)) | |
393 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + cA[ak]) + "BUT pmtAsset=") + cw)) | |
394 | + | else if ((aF[al] != "ISSUED")) | |
395 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + cu) + " BUT status=") + aF[al])) | |
396 | + | else if ((cA[al] != "ISSUED")) | |
397 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + cw) + " BUT status=") + cA[al])) | |
398 | + | else if (bp) | |
399 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height)) + " buyCode=") + cu)) | |
400 | + | else if (cE) | |
401 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(bo)) + " currHeight=") + toString(height)) + " sellCode=") + cv)) | |
376 | 402 | else { | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | (((( | |
403 | + | let cF = bL((aU / 2)) | |
404 | + | let cG = bS(bf(cv), (aU / 2)) | |
405 | + | let bZ = fraction(cF, aN, cG) | |
406 | + | let cH = fraction(cx, aN, cG) | |
407 | + | let cI = valueOrElse(getInteger(this, d()), 0) | |
408 | + | let cJ = l(cv) | |
409 | + | let cK = valueOrElse(getInteger(this, cJ), 0) | |
410 | + | let cL = parseIntValue(cA[aw]) | |
411 | + | let cM = fraction((aS + cL), aX, aN) | |
412 | + | let cN = bU(cj.caller, cx, cm, cC, bZ, cM, ba) | |
413 | + | ((((cN._1 :+ ScriptTransfer(cB, cH, bF)) :+ ScriptTransfer(cB, (cx - cN._2), cm)) :+ IntegerEntry(cJ, (cK + cH))) :+ IntegerEntry(d(), (cI + cH))) | |
388 | 414 | } | |
389 | 415 | } | |
390 | 416 | ||
391 | 417 | ||
392 | 418 | ||
393 | - | @Callable( | |
419 | + | @Callable(cj) | |
394 | 420 | func rebalanceDebts () = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | if ( | |
421 | + | let cO = value(cj.payments[0]) | |
422 | + | let cP = value(cO.assetId) | |
423 | + | let cQ = value(cj.payments[1]) | |
424 | + | let cR = value(cQ.assetId) | |
425 | + | let cS = toString(cj.caller) | |
426 | + | let cT = af(cS) | |
427 | + | let E = cT[aj] | |
428 | + | let cJ = l(E) | |
429 | + | let cU = valueOrErrorMessage(getInteger(this, cJ), ("No debts for " + E)) | |
430 | + | if (bd) | |
405 | 431 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
406 | - | else if (( | |
407 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
408 | - | else if (( | |
409 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
410 | - | else if (( | |
432 | + | else if ((bF != cP)) | |
433 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bF)) + " actual=") + toBase58String(cP))) | |
434 | + | else if ((aM != cR)) | |
435 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aM)) + " actual=") + toBase58String(cR))) | |
436 | + | else if ((cO.amount != cQ.amount)) | |
411 | 437 | then throw("first payment amount doesn't match to the second payment amount") | |
412 | - | else if ((0 >= | |
413 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
414 | - | else if (((1 * | |
415 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
416 | - | else if (( | |
417 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
438 | + | else if ((0 >= cU)) | |
439 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cU))) | |
440 | + | else if (((1 * aN) >= cO.amount)) | |
441 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cO.amount))) | |
442 | + | else if ((cO.amount > cU)) | |
443 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cO.amount)) + " lendedAmt=") + toString(cU))) | |
418 | 444 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | [IntegerEntry( | |
445 | + | let cI = valueOrElse(getInteger(this, d()), 0) | |
446 | + | let I = (cU - cO.amount) | |
447 | + | [IntegerEntry(cJ, I), IntegerEntry(d(), (cI - cO.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(cj.transactionId)), D(E, cO, cQ, cU, I))] | |
422 | 448 | } | |
423 | 449 | } | |
424 | 450 | ||
425 | 451 | ||
426 | 452 | ||
427 | - | @Callable( | |
428 | - | func fulfillRedeemRequest ( | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | if ((0 >= | |
453 | + | @Callable(cj) | |
454 | + | func fulfillRedeemRequest (ab) = { | |
455 | + | let cV = toString(this) | |
456 | + | let cW = ad(cV, ab) | |
457 | + | let cX = valueOrElse(getInteger(O, cW), 0) | |
458 | + | if ((0 >= cX)) | |
433 | 459 | then throw("All liquidity request fulfilled") | |
434 | 460 | else { | |
435 | - | let | |
436 | - | let | |
437 | - | if (isDefined(getInteger(this, | |
461 | + | let cY = aa(cV, ab, cX) | |
462 | + | let cZ = valueOrErrorMessage(getInteger(O, cY), "Empty poolMakerLiquidityRequestKey at factory acc") | |
463 | + | if (isDefined(getInteger(this, cY))) | |
438 | 464 | then throw("Liquidity request has been already fulfilled") | |
439 | - | else [IntegerEntry( | |
465 | + | else [IntegerEntry(cY, cZ), ScriptTransfer(O, cZ, aM)] | |
440 | 466 | } | |
441 | 467 | } | |
442 | 468 | ||
443 | 469 | ||
444 | - | @Verifier( | |
445 | - | func | |
446 | - | let | |
447 | - | if ($isInstanceOf( | |
470 | + | @Verifier(da) | |
471 | + | func db () = { | |
472 | + | let dc = da | |
473 | + | if ($isInstanceOf(dc, "InvokeScriptTransaction")) | |
448 | 474 | then { | |
449 | - | let | |
450 | - | if (( | |
451 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
452 | - | else if (isDefined( | |
475 | + | let dd = dc | |
476 | + | if ((dd.fee > (900 * 1000))) | |
477 | + | then throw(("fee amount is greater than max allowed: " + toString(dd.fee))) | |
478 | + | else if (isDefined(dd.feeAssetId)) | |
453 | 479 | then throw("only Waves is allowed as feeAssetId") | |
454 | - | else if (( | |
480 | + | else if ((dd.function == "rebalanceDebts")) | |
455 | 481 | then { | |
456 | - | let | |
457 | - | if (( | |
482 | + | let de = toString(addressFromRecipient(dd.dApp)) | |
483 | + | if ((af(de)[al] != "ISSUED")) | |
458 | 484 | then throw("only defo dapp is allowed") | |
459 | - | else if (( | |
485 | + | else if ((de == toString(this))) | |
460 | 486 | then throw("impossible to call self rebealnceDebt") | |
461 | 487 | else true | |
462 | 488 | } | |
463 | - | else if (if (if (( | |
489 | + | else if (if (if ((dd.function == "lockNeutrino")) | |
464 | 490 | then true | |
465 | - | else ( | |
491 | + | else (dd.function == "lockNeutrinoSP")) | |
466 | 492 | then true | |
467 | - | else ( | |
468 | - | then if ((toString( | |
493 | + | else (dd.function == "unlockNeutrino")) | |
494 | + | then if ((toString(by) != toString(addressFromRecipient(dd.dApp)))) | |
469 | 495 | then throw("invalid neutrino staking dapp address") | |
470 | - | else sigVerify( | |
496 | + | else sigVerify(da.bodyBytes, da.proofs[0], ai()) | |
471 | 497 | else throw("Not allowed invocation method calls") | |
472 | 498 | } | |
473 | - | else sigVerify( | |
499 | + | else sigVerify(da.bodyBytes, da.proofs[0], da.senderPublicKey) | |
474 | 500 | } | |
475 | 501 |
github/deemru/w8io/169f3d6 248.65 ms ◑