tx · Eo9E2oVWjvbfH1fzw3jXEbmAAsCpSDAPGr1BbQGX3LPg 3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9: -0.05000000 Waves 2021.08.12 16:50 [1655236] smart account 3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9 > SELF 0.00000000 Waves
{ "type": 13, "id": "Eo9E2oVWjvbfH1fzw3jXEbmAAsCpSDAPGr1BbQGX3LPg", "fee": 5000000, "feeAssetId": null, "timestamp": 1628776251622, "version": 2, "chainId": 84, "sender": "3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9", "senderPublicKey": "AzWZ4rwReUMi2EBexU5XceFGKPvTcfdkZnygszAEtnYv", "proofs": [ "5LTdtfsSK38TRtGKhgwrADD2cCo8SqTfA8AHAzBvaYYFb4tMD8Tf5dwoeHQx4rbktGMXq9WDEpoXR5zHYrwpb8Fb" ], "script": "base64:AAIFAAAAAAAAABcIAhIDCgEBEgASBwoFCAgICAESAwoBAQAAACoAAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAAEWRlY2ltYWxzTXVsdFByaWNlCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAADU0VQAgAAAAJfXwAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQAAAAAEGZhY3RvcnlQdWJsaWNLZXkJAAJZAAAAAQIAAAAsNnBKa3J3Zld5aFpqbTNMb1FXUmpqTlZhTHQ1Q1F6cWZnZ3pYeXFyN25yd0EAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAABBpZHhBbW91bnRBc3NldElkAAAAAA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AADWFtb3VudEFzc2V0SWQJAAJZAAAAAQUAAAAOYW1vdW50QXNzZXRTdHIEAAAAE2Ftb3VudEFzc2V0RGVjaW1hbHMICQEAAAAFdmFsdWUAAAABCQAD7AAAAAEFAAAADWFtb3VudEFzc2V0SWQAAAAIZGVjaW1hbHMEAAAADHByaWNlQXNzZXRJZAkAAlkAAAABBQAAAA1wcmljZUFzc2V0U3RyBAAAABJwcmljZUFzc2V0RGVjaW1hbHMICQEAAAAFdmFsdWUAAAABCQAD7AAAAAEFAAAADHByaWNlQXNzZXRJZAAAAAhkZWNpbWFscwQAAAASbHBBc3NldElzc3VlQWN0aW9uCQAEQgAAAAUFAAAAC2xwQXNzZXROYW1lBQAAAAxscEFzc2V0RGVzY3IAAAAAAAAAAAEAAAAAAAAAAAgGBAAAAAlscEFzc2V0SWQJAAQ4AAAAAQUAAAASbHBBc3NldElzc3VlQWN0aW9uBAAAABFscEFzc2V0SWRBc1N0cmluZwkAAlgAAAABBQAAAAlscEFzc2V0SWQJAAUUAAAAAgkABEwAAAACBQAAABJscEFzc2V0SXNzdWVBY3Rpb24JAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAlscEFzc2V0SWQAAAAAAAAAAAEFAAAAA25pbAUAAAARbHBBc3NldElkQXNTdHJpbmcAAAABaQEAAAAGbWFuYWdlAAAAAQAAAAZzdGF0dXMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5fZgPyA==", "height": 1655236, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C2M94ozKw4FkZ1TAcC64wzzL8x9BR5wFSHb3cdXhmCDr Next: 4b3T4d8hWJ4xkeHh26q4q8vYuV1A4Zjip3FwwoXpiZKj Diff:
Old | New | Differences | |
---|---|---|---|
79 | 79 | let T = getString(z(R, S)) | |
80 | 80 | if (!(isDefined(T))) | |
81 | 81 | then ["", "0", "0", "0"] | |
82 | + | else split(value(T), c) | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | func U (R,S,D) = { | |
87 | + | let T = getString(C(R, S, D)) | |
88 | + | if (!(isDefined(T))) | |
89 | + | then ["", "0", "0", "0", "0"] | |
90 | + | else split(value(T), c) | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | func V (W,X,Y) = makeString(["%d%d%d", toString(W), toString(X), toString(Y)], c) | |
95 | + | ||
96 | + | ||
97 | + | func Z (aa,ab,ac,ad,ae,af,ag) = makeString(["%d%d%d%d%d%d%d", toString(aa), toString(ab), toString(ac), toString(ad), toString(ae), toString(af), toString(ag)], c) | |
98 | + | ||
99 | + | ||
100 | + | func ah (ai,aj,ak,ad,af,ag) = makeString(["%d%d%d%d%d%d", toString(ai), toString(aj), toString(ak), toString(ad), toString(af), toString(ag)], c) | |
101 | + | ||
102 | + | ||
103 | + | func al (W,X,Y,D) = makeString(["%d%d%d", toString(W), toString(X), toString(Y)], c) | |
104 | + | ||
105 | + | ||
106 | + | func am () = toBase64String(value(scriptHash(this))) | |
107 | + | ||
108 | + | ||
109 | + | func an (ao,ap) = { | |
110 | + | let aq = pow(10, 0, (a - ao), 0, 0, DOWN) | |
111 | + | $Tuple2((ap * aq), aq) | |
112 | + | } | |
113 | + | ||
114 | + | ||
115 | + | func ar (as,at,au,av) = { | |
116 | + | let aw = an(as, au)._1 | |
117 | + | let ax = an(at, av)._1 | |
118 | + | fraction(ax, b, aw) | |
119 | + | } | |
120 | + | ||
121 | + | ||
122 | + | func ay () = { | |
123 | + | let az = M() | |
124 | + | let aA = fromBase58String(az[k]) | |
125 | + | let aB = az[l] | |
126 | + | let aC = az[m] | |
127 | + | let R = az[p] | |
128 | + | let S = az[q] | |
129 | + | let as = parseIntValue(az[n]) | |
130 | + | let at = parseIntValue(az[o]) | |
131 | + | let aD = Q(R, S) | |
132 | + | let aE = parseIntValue(aD[s]) | |
133 | + | let aF = parseIntValue(aD[t]) | |
134 | + | let aG = parseIntValue(aD[u]) | |
135 | + | let aw = an(as, aE)._1 | |
136 | + | let ax = an(at, aF)._1 | |
137 | + | let aH = fraction(aw, (1 * b), aG) | |
138 | + | let aI = fraction(ax, (1 * b), aG) | |
139 | + | let aJ = ar(as, at, aE, aF) | |
140 | + | [aE, aF, aG, aJ, aH, aI] | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func aK (aL,aM,D) = { | |
145 | + | let aN = M() | |
146 | + | let aA = aN[k] | |
147 | + | let aB = aN[l] | |
148 | + | let aC = aN[m] | |
149 | + | let R = aN[p] | |
150 | + | let S = aN[q] | |
151 | + | let as = parseIntValue(aN[n]) | |
152 | + | let at = parseIntValue(aN[o]) | |
153 | + | let aO = U(R, S, D) | |
154 | + | let aP = parseIntValue(aO[u]) | |
155 | + | let aQ = parseIntValue(aO[s]) | |
156 | + | let aR = parseIntValue(aO[t]) | |
157 | + | let aS = Q(R, S) | |
158 | + | let aG = parseIntValue(aS[u]) | |
159 | + | let aE = parseIntValue(aS[s]) | |
160 | + | let aF = parseIntValue(aS[t]) | |
161 | + | if ((aA != aL)) | |
162 | + | then throw("Invalid asset passed.") | |
163 | + | else if ((aM > aP)) | |
164 | + | then throw("Invalid amount passed. Amount less than available.") | |
165 | + | else { | |
166 | + | let aw = an(as, aE)._1 | |
167 | + | let ax = an(at, aF)._1 | |
168 | + | let ai = fraction(aw, aM, aG) | |
169 | + | let aj = fraction(ax, aM, aG) | |
170 | + | let aJ = fraction(ax, b, aw) | |
171 | + | $Tuple14(aB, aC, R, S, aQ, ai, aR, aj, ai, aP, aE, aF, aG, aJ) | |
172 | + | } | |
173 | + | } | |
174 | + | ||
175 | + | ||
176 | + | func aT (aU,aa,aV,ab,aW,D) = { | |
177 | + | let az = M() | |
178 | + | let aA = fromBase58String(az[k]) | |
179 | + | let aB = az[l] | |
180 | + | let aC = az[m] | |
181 | + | let R = az[p] | |
182 | + | let S = az[q] | |
183 | + | let as = parseIntValue(az[n]) | |
184 | + | let at = parseIntValue(az[o]) | |
185 | + | let aD = Q(R, S) | |
186 | + | let aE = parseIntValue(aD[s]) | |
187 | + | let aF = parseIntValue(aD[t]) | |
188 | + | let aG = parseIntValue(aD[u]) | |
189 | + | let aX = U(R, S, D) | |
190 | + | let aQ = parseIntValue(aX[s]) | |
191 | + | let aR = parseIntValue(aX[t]) | |
192 | + | let aP = parseIntValue(aX[u]) | |
193 | + | if (if ((aB != aV)) | |
194 | + | then true | |
195 | + | else (aC != aW)) | |
196 | + | then throw("Invalid amount or price asset passed.") | |
82 | 197 | else { | |
83 | - | let U = split(value(T), c) | |
84 | - | U | |
198 | + | let aY = an(as, aa) | |
199 | + | let aZ = an(at, ab) | |
200 | + | let ba = aY._1 | |
201 | + | let bb = aZ._1 | |
202 | + | let bc = fraction(bb, b, ba) | |
203 | + | let aw = (aE * aY._2) | |
204 | + | let ax = (aF * aZ._2) | |
205 | + | let bd = if ((aG == 0)) | |
206 | + | then 0 | |
207 | + | else fraction(ax, b, aw) | |
208 | + | let be = if ((aG == 0)) | |
209 | + | then { | |
210 | + | let bf = pow(ba, 0, 5, 1, 0, DOWN) | |
211 | + | let bg = pow(bb, 0, 5, 1, 0, DOWN) | |
212 | + | (bf * bg) | |
213 | + | } | |
214 | + | else { | |
215 | + | let bh = fraction(bd, 100, bc) | |
216 | + | if ((bh > aU)) | |
217 | + | then throw(((("Price slippage " + toString(bh)) + " exceeded the passed limit of ") + toString(aU))) | |
218 | + | else { | |
219 | + | let bi = fraction(aG, ba, aw) | |
220 | + | let bj = fraction(aG, bb, ax) | |
221 | + | if ((bj > bi)) | |
222 | + | then bi | |
223 | + | else bj | |
224 | + | } | |
225 | + | } | |
226 | + | $Tuple11(be, bd, aQ, aR, aP, aE, aF, aG, R, S, aA) | |
85 | 227 | } | |
86 | 228 | } | |
87 | 229 | ||
88 | 230 | ||
89 | - | func V (R,S,D) = { | |
90 | - | let T = getString(C(R, S, D)) | |
91 | - | if (!(isDefined(T))) | |
92 | - | then ["", "0", "0", "0", "0"] | |
231 | + | @Callable(bk) | |
232 | + | func put (aU) = { | |
233 | + | let bl = value(bk.payments[0]) | |
234 | + | let aa = bl.amount | |
235 | + | let aV = value(bl.assetId) | |
236 | + | let bm = value(bk.payments[1]) | |
237 | + | let ab = bm.amount | |
238 | + | let aW = value(bm.assetId) | |
239 | + | if (true) | |
240 | + | then throw(toBase58String(aV)) | |
93 | 241 | else { | |
94 | - | let U = split(value(T), c) | |
95 | - | U | |
242 | + | let bn = aT(aU, aa, toBase58String(aV), ab, toBase58String(aW), toString(bk.caller)) | |
243 | + | let be = bn._1 | |
244 | + | let bd = bn._2 | |
245 | + | let aQ = bn._3 | |
246 | + | let aR = bn._4 | |
247 | + | let aP = bn._5 | |
248 | + | let aE = bn._6 | |
249 | + | let aF = bn._7 | |
250 | + | let aG = bn._8 | |
251 | + | let R = bn._9 | |
252 | + | let S = bn._10 | |
253 | + | let aA = bn._11 | |
254 | + | [StringEntry(v(), ("%s__" + toString(bd))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(bd))), StringEntry(E(toString(bk.caller), toBase58String(bk.transactionId)), Z(aa, ab, be, bd, aU, height, lastBlock.timestamp)), StringEntry(C(R, S, toString(bk.caller)), V((aQ + aa), (aR + ab), (aP + be))), StringEntry(z(R, S), V((aE + aa), (aF + ab), (aG + be))), Reissue(aA, be, true), ScriptTransfer(bk.caller, be, aA)] | |
96 | 255 | } | |
97 | 256 | } | |
98 | 257 | ||
99 | 258 | ||
100 | - | func W (X,Y,Z) = makeString(["%d%d%d", toString(X), toString(Y), toString(Z)], c) | |
101 | 259 | ||
102 | - | ||
103 | - | func aa (ab,ac,ad,ae,af,ag,ah) = makeString(["%d%d%d%d%d%d%d", toString(ab), toString(ac), toString(ad), toString(ae), toString(af), toString(ag), toString(ah)], c) | |
104 | - | ||
105 | - | ||
106 | - | func ai (aj,ak,al,ae,ag,ah) = makeString(["%d%d%d%d%d%d", toString(aj), toString(ak), toString(al), toString(ae), toString(ag), toString(ah)], c) | |
107 | - | ||
108 | - | ||
109 | - | func am (X,Y,Z,D) = makeString(["%d%d%d", toString(X), toString(Y), toString(Z)], c) | |
110 | - | ||
111 | - | ||
112 | - | func an () = { | |
113 | - | let ao = toBase64String(value(scriptHash(this))) | |
114 | - | ao | |
115 | - | } | |
116 | - | ||
117 | - | ||
118 | - | func ap (aq,ar) = { | |
119 | - | let as = pow(10, 0, (a - aq), 0, 0, DOWN) | |
120 | - | $Tuple2((ar * as), as) | |
121 | - | } | |
122 | - | ||
123 | - | ||
124 | - | func at (au,av,aw,ax) = { | |
125 | - | let ay = ap(au, aw)._1 | |
126 | - | let az = ap(av, ax)._1 | |
127 | - | fraction(az, b, ay) | |
128 | - | } | |
129 | - | ||
130 | - | ||
131 | - | func aA () = { | |
132 | - | let aB = M() | |
133 | - | let aC = fromBase58String(aB[k]) | |
134 | - | let aD = aB[l] | |
135 | - | let aE = aB[m] | |
136 | - | let R = aB[p] | |
137 | - | let S = aB[q] | |
138 | - | let au = parseIntValue(aB[n]) | |
139 | - | let av = parseIntValue(aB[o]) | |
140 | - | let aF = Q(R, S) | |
141 | - | let aG = parseIntValue(aF[s]) | |
142 | - | let aH = parseIntValue(aF[t]) | |
143 | - | let aI = parseIntValue(aF[u]) | |
144 | - | let ay = ap(au, aG)._1 | |
145 | - | let az = ap(av, aH)._1 | |
146 | - | let aJ = fraction(ay, (1 * b), aI) | |
147 | - | let aK = fraction(az, (1 * b), aI) | |
148 | - | let aL = at(au, av, aG, aH) | |
149 | - | [aG, aH, aI, aL, aJ, aK] | |
150 | - | } | |
151 | - | ||
152 | - | ||
153 | - | func aM (aN,aO,D) = { | |
154 | - | let aP = M() | |
155 | - | let aC = aP[k] | |
156 | - | let aD = aP[l] | |
157 | - | let aE = aP[m] | |
158 | - | let R = aP[p] | |
159 | - | let S = aP[q] | |
160 | - | let au = parseIntValue(aP[n]) | |
161 | - | let av = parseIntValue(aP[o]) | |
162 | - | let aQ = V(R, S, D) | |
163 | - | let aR = parseIntValue(aQ[u]) | |
164 | - | let aS = parseIntValue(aQ[s]) | |
165 | - | let aT = parseIntValue(aQ[t]) | |
166 | - | let aU = Q(R, S) | |
167 | - | let aI = parseIntValue(aU[u]) | |
168 | - | let aG = parseIntValue(aU[s]) | |
169 | - | let aH = parseIntValue(aU[t]) | |
170 | - | if ((aC != aN)) | |
171 | - | then throw("Invalid asset passed.") | |
172 | - | else if ((aO > aR)) | |
173 | - | then throw("Invalid amount passed. Amount less than available.") | |
174 | - | else { | |
175 | - | let ay = ap(au, aG)._1 | |
176 | - | let az = ap(av, aH)._1 | |
177 | - | let aj = fraction(ay, aO, aI) | |
178 | - | let ak = fraction(az, aO, aI) | |
179 | - | let aL = fraction(az, b, ay) | |
180 | - | $Tuple14(aD, aE, R, S, aS, aj, aT, ak, aj, aR, aG, aH, aI, aL) | |
181 | - | } | |
182 | - | } | |
183 | - | ||
184 | - | ||
185 | - | func aV (aW,ab,aX,ac,aY,D) = { | |
186 | - | let aB = M() | |
187 | - | let aC = fromBase58String(aB[k]) | |
188 | - | let aD = aB[l] | |
189 | - | let aE = aB[m] | |
190 | - | let R = aB[p] | |
191 | - | let S = aB[q] | |
192 | - | let au = parseIntValue(aB[n]) | |
193 | - | let av = parseIntValue(aB[o]) | |
194 | - | let aF = Q(R, S) | |
195 | - | let aG = parseIntValue(aF[s]) | |
196 | - | let aH = parseIntValue(aF[t]) | |
197 | - | let aI = parseIntValue(aF[u]) | |
198 | - | let aZ = V(R, S, D) | |
199 | - | let aS = parseIntValue(aZ[s]) | |
200 | - | let aT = parseIntValue(aZ[t]) | |
201 | - | let aR = parseIntValue(aZ[u]) | |
202 | - | if (if ((aD != aX)) | |
203 | - | then true | |
204 | - | else (aE != aY)) | |
205 | - | then throw("Invalid amount or price asset passed.") | |
206 | - | else { | |
207 | - | let ba = ap(au, ab) | |
208 | - | let bb = ap(av, ac) | |
209 | - | let bc = ba._1 | |
210 | - | let bd = bb._1 | |
211 | - | let be = fraction(bd, b, bc) | |
212 | - | let ay = (aG * ba._2) | |
213 | - | let az = (aH * bb._2) | |
214 | - | let bf = if ((aI == 0)) | |
215 | - | then 0 | |
216 | - | else fraction(az, b, ay) | |
217 | - | let bg = if ((aI == 0)) | |
218 | - | then { | |
219 | - | let bh = pow(bc, 0, 5, 1, 0, DOWN) | |
220 | - | let bi = pow(bd, 0, 5, 1, 0, DOWN) | |
221 | - | (bh * bi) | |
222 | - | } | |
223 | - | else { | |
224 | - | let bj = fraction(bf, 100, be) | |
225 | - | if ((bj > aW)) | |
226 | - | then throw(((("Price slippage " + toString(bj)) + " exceeded the passed limit of ") + toString(aW))) | |
227 | - | else { | |
228 | - | let bk = fraction(aI, bc, ay) | |
229 | - | let bl = fraction(aI, bd, az) | |
230 | - | if ((bl > bk)) | |
231 | - | then bk | |
232 | - | else bl | |
233 | - | } | |
234 | - | } | |
235 | - | $Tuple11(bg, bf, aS, aT, aR, aG, aH, aI, R, S, aC) | |
236 | - | } | |
237 | - | } | |
238 | - | ||
239 | - | ||
240 | - | @Callable(bm) | |
241 | - | func put (aW) = { | |
242 | - | let bn = value(bm.payments[0]) | |
243 | - | let ab = bn.amount | |
244 | - | let aX = value(bn.assetId) | |
245 | - | let bo = value(bm.payments[1]) | |
246 | - | let ac = bo.amount | |
247 | - | let aY = value(bo.assetId) | |
248 | - | let bp = aV(aW, ab, toBase58String(aX), ac, toBase58String(aY), toString(bm.caller)) | |
249 | - | let bg = bp._1 | |
250 | - | let bf = bp._2 | |
251 | - | let aS = bp._3 | |
252 | - | let aT = bp._4 | |
253 | - | let aR = bp._5 | |
254 | - | let aG = bp._6 | |
255 | - | let aH = bp._7 | |
256 | - | let aI = bp._8 | |
257 | - | let R = bp._9 | |
258 | - | let S = bp._10 | |
259 | - | let aC = bp._11 | |
260 | - | [StringEntry(v(), ("%s__" + toString(bf))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(bf))), StringEntry(E(toString(bm.caller), toBase58String(bm.transactionId)), aa(ab, ac, bg, bf, aW, height, lastBlock.timestamp)), StringEntry(C(R, S, toString(bm.caller)), W((aS + ab), (aT + ac), (aR + bg))), StringEntry(z(R, S), W((aG + ab), (aH + ac), (aI + bg))), Reissue(aC, bg, true), ScriptTransfer(bm.caller, bg, aC)] | |
260 | + | @Callable(bk) | |
261 | + | func get () = { | |
262 | + | let bl = value(bk.payments[0]) | |
263 | + | let bo = value(bl.assetId) | |
264 | + | let bp = bl.amount | |
265 | + | let bq = aK(toBase58String(bo), bp, toString(bk.caller)) | |
266 | + | let aB = bq._1 | |
267 | + | let aC = bq._2 | |
268 | + | let R = bq._3 | |
269 | + | let S = bq._4 | |
270 | + | let aQ = bq._5 | |
271 | + | let ai = bq._6 | |
272 | + | let aR = bq._7 | |
273 | + | let aj = bq._8 | |
274 | + | let aP = bq._9 | |
275 | + | let aE = bq._11 | |
276 | + | let aF = bq._12 | |
277 | + | let aG = bq._13 | |
278 | + | let aJ = bq._14 | |
279 | + | [Burn(bo, bp), ScriptTransfer(bk.caller, ai, fromBase58String(aB)), ScriptTransfer(bk.caller, aj, fromBase58String(aC)), StringEntry(C(R, S, toString(bk.caller)), V((aQ - ai), (aR - aj), (aP - bp))), StringEntry(z(R, S), V((aE - ai), (aF - aj), (aG - bp))), StringEntry(G(toString(bk.caller), toBase58String(bk.transactionId)), ah(ai, aj, bp, aJ, height, lastBlock.timestamp)), StringEntry(v(), ("%s__" + toString(aJ))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(aJ)))] | |
261 | 280 | } | |
262 | 281 | ||
263 | 282 | ||
264 | 283 | ||
265 | - | @Callable(bm) | |
266 | - | func get () = { | |
267 | - | let bn = value(bm.payments[0]) | |
268 | - | let bq = value(bn.assetId) | |
269 | - | let br = bn.amount | |
270 | - | let bs = aM(toBase58String(bq), br, toString(bm.caller)) | |
271 | - | let aD = bs._1 | |
272 | - | let aE = bs._2 | |
273 | - | let R = bs._3 | |
274 | - | let S = bs._4 | |
275 | - | let aS = bs._5 | |
276 | - | let aj = bs._6 | |
277 | - | let aT = bs._7 | |
278 | - | let ak = bs._8 | |
279 | - | let aR = bs._9 | |
280 | - | let aG = bs._11 | |
281 | - | let aH = bs._12 | |
282 | - | let aI = bs._13 | |
283 | - | let aL = bs._14 | |
284 | - | [Burn(bq, br), ScriptTransfer(bm.caller, aj, fromBase58String(aD)), ScriptTransfer(bm.caller, ak, fromBase58String(aE)), StringEntry(C(R, S, toString(bm.caller)), W((aS - aj), (aT - ak), (aR - br))), StringEntry(z(R, S), W((aG - aj), (aH - ak), (aI - br))), StringEntry(G(toString(bm.caller), toBase58String(bm.transactionId)), ai(aj, ak, br, aL, height, lastBlock.timestamp)), StringEntry(v(), ("%s__" + toString(aL))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(aL)))] | |
285 | - | } | |
286 | - | ||
287 | - | ||
288 | - | ||
289 | - | @Callable(bm) | |
290 | - | func activate (bt,bu,bv,bw,bx) = if ((bm.callerPublicKey != h)) | |
284 | + | @Callable(bk) | |
285 | + | func activate (br,bs,bt,bu,bv) = if ((bk.callerPublicKey != h)) | |
291 | 286 | then throw("permissions denied") | |
292 | 287 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | $Tuple2([ | |
288 | + | let aB = fromBase58String(br) | |
289 | + | let bw = value(assetInfo(aB)).decimals | |
290 | + | let aC = fromBase58String(bs) | |
291 | + | let at = value(assetInfo(aC)).decimals | |
292 | + | let bx = Issue(bt, bu, 1, 8, true) | |
293 | + | let aA = calculateAssetId(bx) | |
294 | + | let by = toBase58String(aA) | |
295 | + | $Tuple2([bx, Burn(aA, 1)], by) | |
301 | 296 | } | |
302 | 297 | ||
303 | 298 | ||
304 | 299 | ||
305 | - | @Callable( | |
306 | - | func manage ( | |
300 | + | @Callable(bk) | |
301 | + | func manage (bz) = nil | |
307 | 302 | ||
308 | 303 | ||
309 | - | @Verifier( | |
310 | - | func | |
304 | + | @Verifier(bA) | |
305 | + | func bB () = sigVerify(bA.bodyBytes, bA.proofs[0], bA.senderPublicKey) | |
311 | 306 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = ((100 * 1000) * 1000) | |
7 | 7 | ||
8 | 8 | let c = "__" | |
9 | 9 | ||
10 | 10 | let d = 1 | |
11 | 11 | ||
12 | 12 | let e = 2 | |
13 | 13 | ||
14 | 14 | let f = 3 | |
15 | 15 | ||
16 | 16 | let g = 4 | |
17 | 17 | ||
18 | 18 | let h = fromBase58String("6pJkrwfWyhZjm3LoQWRjjNVaLt5CQzqfggzXyqr7nrwA") | |
19 | 19 | ||
20 | 20 | let i = 1 | |
21 | 21 | ||
22 | 22 | let j = 2 | |
23 | 23 | ||
24 | 24 | let k = 3 | |
25 | 25 | ||
26 | 26 | let l = 4 | |
27 | 27 | ||
28 | 28 | let m = 5 | |
29 | 29 | ||
30 | 30 | let n = 6 | |
31 | 31 | ||
32 | 32 | let o = 7 | |
33 | 33 | ||
34 | 34 | let p = 8 | |
35 | 35 | ||
36 | 36 | let q = 9 | |
37 | 37 | ||
38 | 38 | let r = 10 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = 3 | |
45 | 45 | ||
46 | 46 | func v () = "%s%s__price__last" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (x,y) = makeString(["%s%s%d%d__price__history", toString(x), toString(y)], c) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z (A,B) = (((("%d%d%s__" + A) + "__") + B) + "__locked") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func C (A,B,D) = (((((("%d%d%s%s__" + A) + "__") + B) + "__") + D) + "__locked") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func E (D,F) = ((("%s%s%s__P__" + D) + "__") + F) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func G (D,F) = ((("%s%s%s__G__" + D) + "__") + F) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func H (I) = (("%s%s%s__" + I) + "__mappings__poolContract2LpAsset") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func J (K,L) = (((("%d%d%s__" + K) + "__") + L) + "__config") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func M () = { | |
71 | 71 | let N = addressFromPublicKey(h) | |
72 | 72 | let O = split(valueOrErrorMessage(getString(N, H(toString(this))), "No factory config found for pool address."), c) | |
73 | 73 | let P = split(valueOrErrorMessage(getString(N, J(O[1], O[2])), "No factory config found for pool assets."), c) | |
74 | 74 | P | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func Q (R,S) = { | |
79 | 79 | let T = getString(z(R, S)) | |
80 | 80 | if (!(isDefined(T))) | |
81 | 81 | then ["", "0", "0", "0"] | |
82 | + | else split(value(T), c) | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | func U (R,S,D) = { | |
87 | + | let T = getString(C(R, S, D)) | |
88 | + | if (!(isDefined(T))) | |
89 | + | then ["", "0", "0", "0", "0"] | |
90 | + | else split(value(T), c) | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | func V (W,X,Y) = makeString(["%d%d%d", toString(W), toString(X), toString(Y)], c) | |
95 | + | ||
96 | + | ||
97 | + | func Z (aa,ab,ac,ad,ae,af,ag) = makeString(["%d%d%d%d%d%d%d", toString(aa), toString(ab), toString(ac), toString(ad), toString(ae), toString(af), toString(ag)], c) | |
98 | + | ||
99 | + | ||
100 | + | func ah (ai,aj,ak,ad,af,ag) = makeString(["%d%d%d%d%d%d", toString(ai), toString(aj), toString(ak), toString(ad), toString(af), toString(ag)], c) | |
101 | + | ||
102 | + | ||
103 | + | func al (W,X,Y,D) = makeString(["%d%d%d", toString(W), toString(X), toString(Y)], c) | |
104 | + | ||
105 | + | ||
106 | + | func am () = toBase64String(value(scriptHash(this))) | |
107 | + | ||
108 | + | ||
109 | + | func an (ao,ap) = { | |
110 | + | let aq = pow(10, 0, (a - ao), 0, 0, DOWN) | |
111 | + | $Tuple2((ap * aq), aq) | |
112 | + | } | |
113 | + | ||
114 | + | ||
115 | + | func ar (as,at,au,av) = { | |
116 | + | let aw = an(as, au)._1 | |
117 | + | let ax = an(at, av)._1 | |
118 | + | fraction(ax, b, aw) | |
119 | + | } | |
120 | + | ||
121 | + | ||
122 | + | func ay () = { | |
123 | + | let az = M() | |
124 | + | let aA = fromBase58String(az[k]) | |
125 | + | let aB = az[l] | |
126 | + | let aC = az[m] | |
127 | + | let R = az[p] | |
128 | + | let S = az[q] | |
129 | + | let as = parseIntValue(az[n]) | |
130 | + | let at = parseIntValue(az[o]) | |
131 | + | let aD = Q(R, S) | |
132 | + | let aE = parseIntValue(aD[s]) | |
133 | + | let aF = parseIntValue(aD[t]) | |
134 | + | let aG = parseIntValue(aD[u]) | |
135 | + | let aw = an(as, aE)._1 | |
136 | + | let ax = an(at, aF)._1 | |
137 | + | let aH = fraction(aw, (1 * b), aG) | |
138 | + | let aI = fraction(ax, (1 * b), aG) | |
139 | + | let aJ = ar(as, at, aE, aF) | |
140 | + | [aE, aF, aG, aJ, aH, aI] | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func aK (aL,aM,D) = { | |
145 | + | let aN = M() | |
146 | + | let aA = aN[k] | |
147 | + | let aB = aN[l] | |
148 | + | let aC = aN[m] | |
149 | + | let R = aN[p] | |
150 | + | let S = aN[q] | |
151 | + | let as = parseIntValue(aN[n]) | |
152 | + | let at = parseIntValue(aN[o]) | |
153 | + | let aO = U(R, S, D) | |
154 | + | let aP = parseIntValue(aO[u]) | |
155 | + | let aQ = parseIntValue(aO[s]) | |
156 | + | let aR = parseIntValue(aO[t]) | |
157 | + | let aS = Q(R, S) | |
158 | + | let aG = parseIntValue(aS[u]) | |
159 | + | let aE = parseIntValue(aS[s]) | |
160 | + | let aF = parseIntValue(aS[t]) | |
161 | + | if ((aA != aL)) | |
162 | + | then throw("Invalid asset passed.") | |
163 | + | else if ((aM > aP)) | |
164 | + | then throw("Invalid amount passed. Amount less than available.") | |
165 | + | else { | |
166 | + | let aw = an(as, aE)._1 | |
167 | + | let ax = an(at, aF)._1 | |
168 | + | let ai = fraction(aw, aM, aG) | |
169 | + | let aj = fraction(ax, aM, aG) | |
170 | + | let aJ = fraction(ax, b, aw) | |
171 | + | $Tuple14(aB, aC, R, S, aQ, ai, aR, aj, ai, aP, aE, aF, aG, aJ) | |
172 | + | } | |
173 | + | } | |
174 | + | ||
175 | + | ||
176 | + | func aT (aU,aa,aV,ab,aW,D) = { | |
177 | + | let az = M() | |
178 | + | let aA = fromBase58String(az[k]) | |
179 | + | let aB = az[l] | |
180 | + | let aC = az[m] | |
181 | + | let R = az[p] | |
182 | + | let S = az[q] | |
183 | + | let as = parseIntValue(az[n]) | |
184 | + | let at = parseIntValue(az[o]) | |
185 | + | let aD = Q(R, S) | |
186 | + | let aE = parseIntValue(aD[s]) | |
187 | + | let aF = parseIntValue(aD[t]) | |
188 | + | let aG = parseIntValue(aD[u]) | |
189 | + | let aX = U(R, S, D) | |
190 | + | let aQ = parseIntValue(aX[s]) | |
191 | + | let aR = parseIntValue(aX[t]) | |
192 | + | let aP = parseIntValue(aX[u]) | |
193 | + | if (if ((aB != aV)) | |
194 | + | then true | |
195 | + | else (aC != aW)) | |
196 | + | then throw("Invalid amount or price asset passed.") | |
82 | 197 | else { | |
83 | - | let U = split(value(T), c) | |
84 | - | U | |
198 | + | let aY = an(as, aa) | |
199 | + | let aZ = an(at, ab) | |
200 | + | let ba = aY._1 | |
201 | + | let bb = aZ._1 | |
202 | + | let bc = fraction(bb, b, ba) | |
203 | + | let aw = (aE * aY._2) | |
204 | + | let ax = (aF * aZ._2) | |
205 | + | let bd = if ((aG == 0)) | |
206 | + | then 0 | |
207 | + | else fraction(ax, b, aw) | |
208 | + | let be = if ((aG == 0)) | |
209 | + | then { | |
210 | + | let bf = pow(ba, 0, 5, 1, 0, DOWN) | |
211 | + | let bg = pow(bb, 0, 5, 1, 0, DOWN) | |
212 | + | (bf * bg) | |
213 | + | } | |
214 | + | else { | |
215 | + | let bh = fraction(bd, 100, bc) | |
216 | + | if ((bh > aU)) | |
217 | + | then throw(((("Price slippage " + toString(bh)) + " exceeded the passed limit of ") + toString(aU))) | |
218 | + | else { | |
219 | + | let bi = fraction(aG, ba, aw) | |
220 | + | let bj = fraction(aG, bb, ax) | |
221 | + | if ((bj > bi)) | |
222 | + | then bi | |
223 | + | else bj | |
224 | + | } | |
225 | + | } | |
226 | + | $Tuple11(be, bd, aQ, aR, aP, aE, aF, aG, R, S, aA) | |
85 | 227 | } | |
86 | 228 | } | |
87 | 229 | ||
88 | 230 | ||
89 | - | func V (R,S,D) = { | |
90 | - | let T = getString(C(R, S, D)) | |
91 | - | if (!(isDefined(T))) | |
92 | - | then ["", "0", "0", "0", "0"] | |
231 | + | @Callable(bk) | |
232 | + | func put (aU) = { | |
233 | + | let bl = value(bk.payments[0]) | |
234 | + | let aa = bl.amount | |
235 | + | let aV = value(bl.assetId) | |
236 | + | let bm = value(bk.payments[1]) | |
237 | + | let ab = bm.amount | |
238 | + | let aW = value(bm.assetId) | |
239 | + | if (true) | |
240 | + | then throw(toBase58String(aV)) | |
93 | 241 | else { | |
94 | - | let U = split(value(T), c) | |
95 | - | U | |
242 | + | let bn = aT(aU, aa, toBase58String(aV), ab, toBase58String(aW), toString(bk.caller)) | |
243 | + | let be = bn._1 | |
244 | + | let bd = bn._2 | |
245 | + | let aQ = bn._3 | |
246 | + | let aR = bn._4 | |
247 | + | let aP = bn._5 | |
248 | + | let aE = bn._6 | |
249 | + | let aF = bn._7 | |
250 | + | let aG = bn._8 | |
251 | + | let R = bn._9 | |
252 | + | let S = bn._10 | |
253 | + | let aA = bn._11 | |
254 | + | [StringEntry(v(), ("%s__" + toString(bd))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(bd))), StringEntry(E(toString(bk.caller), toBase58String(bk.transactionId)), Z(aa, ab, be, bd, aU, height, lastBlock.timestamp)), StringEntry(C(R, S, toString(bk.caller)), V((aQ + aa), (aR + ab), (aP + be))), StringEntry(z(R, S), V((aE + aa), (aF + ab), (aG + be))), Reissue(aA, be, true), ScriptTransfer(bk.caller, be, aA)] | |
96 | 255 | } | |
97 | 256 | } | |
98 | 257 | ||
99 | 258 | ||
100 | - | func W (X,Y,Z) = makeString(["%d%d%d", toString(X), toString(Y), toString(Z)], c) | |
101 | 259 | ||
102 | - | ||
103 | - | func aa (ab,ac,ad,ae,af,ag,ah) = makeString(["%d%d%d%d%d%d%d", toString(ab), toString(ac), toString(ad), toString(ae), toString(af), toString(ag), toString(ah)], c) | |
104 | - | ||
105 | - | ||
106 | - | func ai (aj,ak,al,ae,ag,ah) = makeString(["%d%d%d%d%d%d", toString(aj), toString(ak), toString(al), toString(ae), toString(ag), toString(ah)], c) | |
107 | - | ||
108 | - | ||
109 | - | func am (X,Y,Z,D) = makeString(["%d%d%d", toString(X), toString(Y), toString(Z)], c) | |
110 | - | ||
111 | - | ||
112 | - | func an () = { | |
113 | - | let ao = toBase64String(value(scriptHash(this))) | |
114 | - | ao | |
115 | - | } | |
116 | - | ||
117 | - | ||
118 | - | func ap (aq,ar) = { | |
119 | - | let as = pow(10, 0, (a - aq), 0, 0, DOWN) | |
120 | - | $Tuple2((ar * as), as) | |
121 | - | } | |
122 | - | ||
123 | - | ||
124 | - | func at (au,av,aw,ax) = { | |
125 | - | let ay = ap(au, aw)._1 | |
126 | - | let az = ap(av, ax)._1 | |
127 | - | fraction(az, b, ay) | |
128 | - | } | |
129 | - | ||
130 | - | ||
131 | - | func aA () = { | |
132 | - | let aB = M() | |
133 | - | let aC = fromBase58String(aB[k]) | |
134 | - | let aD = aB[l] | |
135 | - | let aE = aB[m] | |
136 | - | let R = aB[p] | |
137 | - | let S = aB[q] | |
138 | - | let au = parseIntValue(aB[n]) | |
139 | - | let av = parseIntValue(aB[o]) | |
140 | - | let aF = Q(R, S) | |
141 | - | let aG = parseIntValue(aF[s]) | |
142 | - | let aH = parseIntValue(aF[t]) | |
143 | - | let aI = parseIntValue(aF[u]) | |
144 | - | let ay = ap(au, aG)._1 | |
145 | - | let az = ap(av, aH)._1 | |
146 | - | let aJ = fraction(ay, (1 * b), aI) | |
147 | - | let aK = fraction(az, (1 * b), aI) | |
148 | - | let aL = at(au, av, aG, aH) | |
149 | - | [aG, aH, aI, aL, aJ, aK] | |
150 | - | } | |
151 | - | ||
152 | - | ||
153 | - | func aM (aN,aO,D) = { | |
154 | - | let aP = M() | |
155 | - | let aC = aP[k] | |
156 | - | let aD = aP[l] | |
157 | - | let aE = aP[m] | |
158 | - | let R = aP[p] | |
159 | - | let S = aP[q] | |
160 | - | let au = parseIntValue(aP[n]) | |
161 | - | let av = parseIntValue(aP[o]) | |
162 | - | let aQ = V(R, S, D) | |
163 | - | let aR = parseIntValue(aQ[u]) | |
164 | - | let aS = parseIntValue(aQ[s]) | |
165 | - | let aT = parseIntValue(aQ[t]) | |
166 | - | let aU = Q(R, S) | |
167 | - | let aI = parseIntValue(aU[u]) | |
168 | - | let aG = parseIntValue(aU[s]) | |
169 | - | let aH = parseIntValue(aU[t]) | |
170 | - | if ((aC != aN)) | |
171 | - | then throw("Invalid asset passed.") | |
172 | - | else if ((aO > aR)) | |
173 | - | then throw("Invalid amount passed. Amount less than available.") | |
174 | - | else { | |
175 | - | let ay = ap(au, aG)._1 | |
176 | - | let az = ap(av, aH)._1 | |
177 | - | let aj = fraction(ay, aO, aI) | |
178 | - | let ak = fraction(az, aO, aI) | |
179 | - | let aL = fraction(az, b, ay) | |
180 | - | $Tuple14(aD, aE, R, S, aS, aj, aT, ak, aj, aR, aG, aH, aI, aL) | |
181 | - | } | |
182 | - | } | |
183 | - | ||
184 | - | ||
185 | - | func aV (aW,ab,aX,ac,aY,D) = { | |
186 | - | let aB = M() | |
187 | - | let aC = fromBase58String(aB[k]) | |
188 | - | let aD = aB[l] | |
189 | - | let aE = aB[m] | |
190 | - | let R = aB[p] | |
191 | - | let S = aB[q] | |
192 | - | let au = parseIntValue(aB[n]) | |
193 | - | let av = parseIntValue(aB[o]) | |
194 | - | let aF = Q(R, S) | |
195 | - | let aG = parseIntValue(aF[s]) | |
196 | - | let aH = parseIntValue(aF[t]) | |
197 | - | let aI = parseIntValue(aF[u]) | |
198 | - | let aZ = V(R, S, D) | |
199 | - | let aS = parseIntValue(aZ[s]) | |
200 | - | let aT = parseIntValue(aZ[t]) | |
201 | - | let aR = parseIntValue(aZ[u]) | |
202 | - | if (if ((aD != aX)) | |
203 | - | then true | |
204 | - | else (aE != aY)) | |
205 | - | then throw("Invalid amount or price asset passed.") | |
206 | - | else { | |
207 | - | let ba = ap(au, ab) | |
208 | - | let bb = ap(av, ac) | |
209 | - | let bc = ba._1 | |
210 | - | let bd = bb._1 | |
211 | - | let be = fraction(bd, b, bc) | |
212 | - | let ay = (aG * ba._2) | |
213 | - | let az = (aH * bb._2) | |
214 | - | let bf = if ((aI == 0)) | |
215 | - | then 0 | |
216 | - | else fraction(az, b, ay) | |
217 | - | let bg = if ((aI == 0)) | |
218 | - | then { | |
219 | - | let bh = pow(bc, 0, 5, 1, 0, DOWN) | |
220 | - | let bi = pow(bd, 0, 5, 1, 0, DOWN) | |
221 | - | (bh * bi) | |
222 | - | } | |
223 | - | else { | |
224 | - | let bj = fraction(bf, 100, be) | |
225 | - | if ((bj > aW)) | |
226 | - | then throw(((("Price slippage " + toString(bj)) + " exceeded the passed limit of ") + toString(aW))) | |
227 | - | else { | |
228 | - | let bk = fraction(aI, bc, ay) | |
229 | - | let bl = fraction(aI, bd, az) | |
230 | - | if ((bl > bk)) | |
231 | - | then bk | |
232 | - | else bl | |
233 | - | } | |
234 | - | } | |
235 | - | $Tuple11(bg, bf, aS, aT, aR, aG, aH, aI, R, S, aC) | |
236 | - | } | |
237 | - | } | |
238 | - | ||
239 | - | ||
240 | - | @Callable(bm) | |
241 | - | func put (aW) = { | |
242 | - | let bn = value(bm.payments[0]) | |
243 | - | let ab = bn.amount | |
244 | - | let aX = value(bn.assetId) | |
245 | - | let bo = value(bm.payments[1]) | |
246 | - | let ac = bo.amount | |
247 | - | let aY = value(bo.assetId) | |
248 | - | let bp = aV(aW, ab, toBase58String(aX), ac, toBase58String(aY), toString(bm.caller)) | |
249 | - | let bg = bp._1 | |
250 | - | let bf = bp._2 | |
251 | - | let aS = bp._3 | |
252 | - | let aT = bp._4 | |
253 | - | let aR = bp._5 | |
254 | - | let aG = bp._6 | |
255 | - | let aH = bp._7 | |
256 | - | let aI = bp._8 | |
257 | - | let R = bp._9 | |
258 | - | let S = bp._10 | |
259 | - | let aC = bp._11 | |
260 | - | [StringEntry(v(), ("%s__" + toString(bf))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(bf))), StringEntry(E(toString(bm.caller), toBase58String(bm.transactionId)), aa(ab, ac, bg, bf, aW, height, lastBlock.timestamp)), StringEntry(C(R, S, toString(bm.caller)), W((aS + ab), (aT + ac), (aR + bg))), StringEntry(z(R, S), W((aG + ab), (aH + ac), (aI + bg))), Reissue(aC, bg, true), ScriptTransfer(bm.caller, bg, aC)] | |
260 | + | @Callable(bk) | |
261 | + | func get () = { | |
262 | + | let bl = value(bk.payments[0]) | |
263 | + | let bo = value(bl.assetId) | |
264 | + | let bp = bl.amount | |
265 | + | let bq = aK(toBase58String(bo), bp, toString(bk.caller)) | |
266 | + | let aB = bq._1 | |
267 | + | let aC = bq._2 | |
268 | + | let R = bq._3 | |
269 | + | let S = bq._4 | |
270 | + | let aQ = bq._5 | |
271 | + | let ai = bq._6 | |
272 | + | let aR = bq._7 | |
273 | + | let aj = bq._8 | |
274 | + | let aP = bq._9 | |
275 | + | let aE = bq._11 | |
276 | + | let aF = bq._12 | |
277 | + | let aG = bq._13 | |
278 | + | let aJ = bq._14 | |
279 | + | [Burn(bo, bp), ScriptTransfer(bk.caller, ai, fromBase58String(aB)), ScriptTransfer(bk.caller, aj, fromBase58String(aC)), StringEntry(C(R, S, toString(bk.caller)), V((aQ - ai), (aR - aj), (aP - bp))), StringEntry(z(R, S), V((aE - ai), (aF - aj), (aG - bp))), StringEntry(G(toString(bk.caller), toBase58String(bk.transactionId)), ah(ai, aj, bp, aJ, height, lastBlock.timestamp)), StringEntry(v(), ("%s__" + toString(aJ))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(aJ)))] | |
261 | 280 | } | |
262 | 281 | ||
263 | 282 | ||
264 | 283 | ||
265 | - | @Callable(bm) | |
266 | - | func get () = { | |
267 | - | let bn = value(bm.payments[0]) | |
268 | - | let bq = value(bn.assetId) | |
269 | - | let br = bn.amount | |
270 | - | let bs = aM(toBase58String(bq), br, toString(bm.caller)) | |
271 | - | let aD = bs._1 | |
272 | - | let aE = bs._2 | |
273 | - | let R = bs._3 | |
274 | - | let S = bs._4 | |
275 | - | let aS = bs._5 | |
276 | - | let aj = bs._6 | |
277 | - | let aT = bs._7 | |
278 | - | let ak = bs._8 | |
279 | - | let aR = bs._9 | |
280 | - | let aG = bs._11 | |
281 | - | let aH = bs._12 | |
282 | - | let aI = bs._13 | |
283 | - | let aL = bs._14 | |
284 | - | [Burn(bq, br), ScriptTransfer(bm.caller, aj, fromBase58String(aD)), ScriptTransfer(bm.caller, ak, fromBase58String(aE)), StringEntry(C(R, S, toString(bm.caller)), W((aS - aj), (aT - ak), (aR - br))), StringEntry(z(R, S), W((aG - aj), (aH - ak), (aI - br))), StringEntry(G(toString(bm.caller), toBase58String(bm.transactionId)), ai(aj, ak, br, aL, height, lastBlock.timestamp)), StringEntry(v(), ("%s__" + toString(aL))), StringEntry(w(height, lastBlock.timestamp), ("%s__" + toString(aL)))] | |
285 | - | } | |
286 | - | ||
287 | - | ||
288 | - | ||
289 | - | @Callable(bm) | |
290 | - | func activate (bt,bu,bv,bw,bx) = if ((bm.callerPublicKey != h)) | |
284 | + | @Callable(bk) | |
285 | + | func activate (br,bs,bt,bu,bv) = if ((bk.callerPublicKey != h)) | |
291 | 286 | then throw("permissions denied") | |
292 | 287 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | $Tuple2([ | |
288 | + | let aB = fromBase58String(br) | |
289 | + | let bw = value(assetInfo(aB)).decimals | |
290 | + | let aC = fromBase58String(bs) | |
291 | + | let at = value(assetInfo(aC)).decimals | |
292 | + | let bx = Issue(bt, bu, 1, 8, true) | |
293 | + | let aA = calculateAssetId(bx) | |
294 | + | let by = toBase58String(aA) | |
295 | + | $Tuple2([bx, Burn(aA, 1)], by) | |
301 | 296 | } | |
302 | 297 | ||
303 | 298 | ||
304 | 299 | ||
305 | - | @Callable( | |
306 | - | func manage ( | |
300 | + | @Callable(bk) | |
301 | + | func manage (bz) = nil | |
307 | 302 | ||
308 | 303 | ||
309 | - | @Verifier( | |
310 | - | func | |
304 | + | @Verifier(bA) | |
305 | + | func bB () = sigVerify(bA.bodyBytes, bA.proofs[0], bA.senderPublicKey) | |
311 | 306 |
github/deemru/w8io/169f3d6 97.69 ms ◑