tx · ERf5D84A2Pq9n7hg3hC98iMiGyXYNebjHPDqLYMMBQZJ

3MsKbBRn4MNQTvLknJgkwjcDf3eFYCRqCKC:  -0.01300000 Waves

2023.02.21 15:49 [2459431] smart account 3MsKbBRn4MNQTvLknJgkwjcDf3eFYCRqCKC > SELF 0.00000000 Waves

{ "type": 13, "id": "ERf5D84A2Pq9n7hg3hC98iMiGyXYNebjHPDqLYMMBQZJ", "fee": 1300000, "feeAssetId": null, "timestamp": 1676983751811, "version": 1, "sender": "3MsKbBRn4MNQTvLknJgkwjcDf3eFYCRqCKC", "senderPublicKey": "6e6PYNUYUtXRU2QBTGRM5u5pifkCkr1MVU7E5fNHpd6e", "proofs": [ "4eA4p2pFLH8rZY6YMugKgsUWHcyhp9yLWuHsvPsyEa3eTh4dqTtBqtZG4Qm1AxHs8Pub1Lk9RN4saTyc6ctewAQs" ], "script": "base64:BgIsCAISCgoICAgBAQEBAQESAwoBCBIDCgEIEgUKAwgIARIECgIICBIDCgEIEgASAANTRVACAl9fARNrZXlNYW5hZ2VyUHVibGljS2V5AAIUJXNfX21hbmFnZXJQdWJsaWNLZXkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAIbJXNfX3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5ARBrZXlXaXRoZHJhd0RlbGF5AgZhc3NldEEGYXNzZXRCCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICDXdpdGhkcmF3RGVsYXkJAMwIAgUGYXNzZXRBCQDMCAIFBmFzc2V0QgUDbmlsBQNTRVABFWtleURlcG9zaXRGZWVQZXJtaWxsZQIGYXNzZXRBBmFzc2V0QgkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAhJkZXBvc2l0RmVlUGVybWlsbGUJAMwIAgUGYXNzZXRBCQDMCAIFBmFzc2V0QgUDbmlsBQNTRVABFmtleVdpdGhkcmF3RmVlUGVybWlsbGUCBmFzc2V0QQZhc3NldEIJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIT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QV2YWx1ZQEFAnBtCQDMCAIJAQtEZWxldGVFbnRyeQEJARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleXMxdBQ=", "chainId": 84, "height": 2459431, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7viVrrhexziu8QYVUTbsKqc1vTmAbYPhhCQWFQf4eJtD Next: BUkkQfd57VgAG1q7Txp62PNXgPBJsBhnfWM9vqFjgJnb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 func b () = "%s__managerPublicKey"
77
88
99 func c () = "%s__pendingManagerPublicKey"
1010
1111
1212 func d (e,f) = makeString(["%s%s%s", "withdrawDelay", e, f], a)
1313
1414
1515 func g (e,f) = makeString(["%s%s%s", "depositFeePermille", e, f], a)
1616
1717
1818 func h (e,f) = makeString(["%s%s%s", "withdrawFeePermille", e, f], a)
1919
2020
2121 func i (e,f) = makeString(["%s%s%s", "minAmountDeposit", e, f], a)
2222
2323
2424 func j (e,f) = makeString(["%s%s%s", "assetsPairStatus", e, f], a)
2525
2626
2727 func k (e,f) = makeString(["%s%s%s", "minAmountWithdraw", e, f], a)
2828
2929
3030 func l (e,f,m) = makeString(["%s%s%s%s", "balance", e, f, m], a)
3131
3232
3333 func n (e,f) = makeString(["%s%s%s%s", "totalFeeCollected", "deposit", e, f], a)
3434
3535
3636 func o (m,e,f,p) = makeString(["%s%s%s%s%s%d", "withdrawProcess", "inProgress", m, e, f, toString(p)], a)
3737
3838
3939 func q (m,e,f,p) = makeString(["%s%s%s%s%s%d", "withdrawProcess", "done", m, e, f, toString(p)], a)
4040
4141
4242 func r () = {
4343 let s = getString(b())
4444 if ($isInstanceOf(s, "String"))
4545 then {
4646 let t = s
4747 fromBase58String(t)
4848 }
4949 else if ($isInstanceOf(s, "Unit"))
5050 then unit
5151 else throw("Match error")
5252 }
5353
5454
5555 func u () = {
5656 let s = getString(c())
5757 if ($isInstanceOf(s, "String"))
5858 then {
5959 let t = s
6060 fromBase58String(t)
6161 }
6262 else if ($isInstanceOf(s, "Unit"))
6363 then unit
6464 else throw("Match error")
6565 }
6666
6767
6868 func v (w) = {
6969 let x = throw("Permission denied.")
7070 let s = r()
7171 if ($isInstanceOf(s, "ByteVector"))
7272 then {
7373 let y = s
7474 if ((w.callerPublicKey == y))
7575 then true
7676 else x
7777 }
7878 else if ($isInstanceOf(s, "Unit"))
7979 then if ((w.caller == this))
8080 then true
8181 else x
8282 else throw("Match error")
8383 }
8484
8585
8686 func z (A) = makeString(["otc_multiasset.ride:", A], " ")
8787
8888
8989 func B (A) = throw(z(A))
9090
9191
9292 @Callable(w)
9393 func registerAsset (e,f,C,D,E,F,G,H) = {
9494 let I = v(w)
9595 if ((I == I))
9696 then {
9797 let J = d(e, f)
9898 let K = g(e, f)
9999 let L = h(e, f)
100100 let M = i(e, f)
101101 let N = k(e, f)
102102 let O = j(e, f)
103103 [IntegerEntry(J, C), IntegerEntry(K, D), IntegerEntry(L, E), IntegerEntry(M, F), IntegerEntry(N, G), IntegerEntry(O, H)]
104104 }
105105 else throw("Strict value is not equal to itself.")
106106 }
107107
108108
109109
110110 @Callable(w)
111111 func swapAssetsAToB (f) = {
112112 let P = value(w.payments[0])
113113 let e = toBase58String(value(P.assetId))
114114 let Q = fromBase58String(value(f))
115115 let m = toString(w.caller)
116116 let F = valueOrErrorMessage(getInteger(i(e, f)), z("This asset pair does not exist."))
117117 let R = P.amount
118118 let D = valueOrErrorMessage(getInteger(g(e, f)), z("The deposit fee for this pair of assets is not set."))
119119 let S = ((R / 1000) * D)
120120 let T = valueOrElse(getInteger(l(e, f, m)), 0)
121121 let U = valueOrElse(getInteger(n(e, f)), 0)
122122 let H = valueOrErrorMessage(getInteger(j(e, f)), z("The asset pair status for this pair of assets is not set."))
123123 let V = if ((H == 0))
124124 then true
125125 else B("The couple's deposit is blocked.")
126126 if ((V == V))
127127 then {
128128 let W = if ((R >= F))
129129 then true
130130 else B("The deposit amount is less than the minimum.")
131131 if ((W == W))
132132 then {
133133 let X = ((T + R) - S)
134134 let Y = if ((X > 0))
135135 then true
136136 else B("The final balance is less than or equal to 0.")
137137 if ((Y == Y))
138138 then [IntegerEntry(l(e, f, m), X), IntegerEntry(n(e, f), (U + S)), ScriptTransfer(w.caller, (R - S), Q)]
139139 else throw("Strict value is not equal to itself.")
140140 }
141141 else throw("Strict value is not equal to itself.")
142142 }
143143 else throw("Strict value is not equal to itself.")
144144 }
145145
146146
147147
148148 @Callable(w)
149149 func initializationSwapAssetsBToA (e) = {
150150 let P = value(w.payments[0])
151151 let Z = P.amount
152152 let f = toBase58String(value(P.assetId))
153153 let m = toString(w.caller)
154154 let G = valueOrErrorMessage(getInteger(k(e, f)), z("The minimum withdrawal amount for this pair of assets is not set."))
155155 let aa = (height + valueOrErrorMessage(getInteger(d(e, f)), z("Withdrawal delay is not set for the specified pair.")))
156156 let T = valueOrErrorMessage(getInteger(l(e, f, m)), z("This user balance does not exist."))
157157 let U = valueOrElse(getInteger(n(e, f)), 0)
158158 let L = h(e, f)
159159 let E = valueOrErrorMessage(getInteger(L), z("The withdrawal fee for this pair of assets is not set."))
160160 let S = ((Z / 1000) * E)
161161 let X = (T - Z)
162162 let Y = if ((X >= 0))
163163 then true
164164 else B("Swap amount fail, amount is to small.")
165165 if ((Y == Y))
166166 then {
167167 let W = if ((Z >= G))
168168 then true
169169 else B("The withdraw amount is less than the minimum.")
170170 if ((W == W))
171171 then {
172172 let ab = if ((getInteger(o(m, e, f, aa)) == unit))
173173 then true
174174 else B("At this height, there is already an exchange of this pair.")
175175 if ((ab == ab))
176176 then [IntegerEntry(l(e, f, m), X), IntegerEntry(o(m, e, f, aa), (Z - S)), IntegerEntry(n(e, f), (U + S))]
177177 else throw("Strict value is not equal to itself.")
178178 }
179179 else throw("Strict value is not equal to itself.")
180180 }
181181 else throw("Strict value is not equal to itself.")
182182 }
183183
184184
185185
186186 @Callable(w)
187187 func withdrawAsset (e,f,p) = {
188188 let m = toString(w.caller)
189189 let Z = valueOrErrorMessage(getInteger(o(m, e, f, p)), z("At this height, withdraw was not initialized with this pair of assets."))
190190 let Q = fromBase58String(value(e))
191191 let ac = if ((height >= p))
192192 then true
193193 else B((("Withdrawal is possible after " + toString(p)) + " height or you have already withdrawn."))
194194 if ((ac == ac))
195195 then [DeleteEntry(o(m, e, f, p)), IntegerEntry(q(m, e, f, p), Z), ScriptTransfer(w.caller, Z, Q)]
196196 else throw("Strict value is not equal to itself.")
197197 }
198198
199199
200200
201201 @Callable(w)
202202 func withdrawFee (e,f) = {
203203 let I = v(w)
204204 if ((I == I))
205205 then {
206206 let ad = valueOrElse(getInteger(n(e, f)), 0)
207207 let ae = fromBase58String(value(e))
208208 [IntegerEntry(n(e, f), 0), ScriptTransfer(w.caller, ad, ae)]
209209 }
210210 else throw("Strict value is not equal to itself.")
211211 }
212212
213213
214214
215215 @Callable(w)
216216 func setManager (af) = {
217217 let I = v(w)
218218 if ((I == I))
219219 then {
220220 let ag = fromBase58String(af)
221221 if ((ag == ag))
222222 then [StringEntry(c(), af)]
223223 else throw("Strict value is not equal to itself.")
224224 }
225225 else throw("Strict value is not equal to itself.")
226226 }
227227
228228
229229
230230 @Callable(w)
231231 func confirmManager () = {
232232 let ah = u()
233233 let ai = if (isDefined(ah))
234234 then true
235235 else B("No pending manager.")
236236 if ((ai == ai))
237237 then {
238238 let aj = if ((w.callerPublicKey == value(ah)))
239239 then true
240240 else B("You are not pending manager.")
241241 if ((aj == aj))
242242 then [StringEntry(b(), toBase58String(value(ah))), DeleteEntry(c())]
243243 else throw("Strict value is not equal to itself.")
244244 }
245245 else throw("Strict value is not equal to itself.")
246246 }
247247
248248
249249 @Verifier(ak)
250250 func al () = {
251251 let am = {
252252 let s = r()
253253 if ($isInstanceOf(s, "ByteVector"))
254254 then {
255255 let y = s
256256 y
257257 }
258258 else if ($isInstanceOf(s, "Unit"))
259259 then ak.senderPublicKey
260260 else throw("Match error")
261261 }
262262 sigVerify(ak.bodyBytes, ak.proofs[0], am)
263263 }
264264

github/deemru/w8io/026f985 
44.82 ms