tx · 9L3rCJmYcSMDtKZTFjvnmbHPWKmDtGuxV58xcVVGW8KZ

3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG:  -0.01100000 Waves

2024.09.26 09:11 [3300202] smart account 3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG > SELF 0.00000000 Waves

{ "type": 13, "id": "9L3rCJmYcSMDtKZTFjvnmbHPWKmDtGuxV58xcVVGW8KZ", "fee": 1100000, "feeAssetId": null, "timestamp": 1727331133879, "version": 2, "chainId": 84, "sender": "3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG", "senderPublicKey": "4JNWrRNexiT3ApCKPgynPrc9Z7JiEfeMgZHQHsAAdo3F", "proofs": [ "GJuVd3VtwzjY8439E7rGYwqPqvn3KPfP8NXDxMWLkEJTgLEbrtgAhpep4dS8WFsUgMjwoFYiDFPhTQkAd5urnB6" ], "script": "base64:AAIFAAAAAAAAACkIAhIFCgMICAESBAoCBAgSBAoCCAgSBQoDCAQIEgYKBAEICAgSAwoBCAAAABEBAAAACWdldFN0ckJ5SwAAAAEAAAADa2V5CQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAJZ2V0SW50QnlLAAAAAQAAAANrZXkJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAtiYWlfYXNzZXRpZAEAAAAgk+FyOHEEm2rommMfBCS3ZFOXLD68ZguDdK9ouySN4kIAAAAACmFkbWluX2FkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRMt+97USOtxJNludqur6uEerVW/OLJLEAAAAAAD25vbl9jaXJjdWxhdGluZwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVOxqMNqLPdIMxcP9+gH3uQ9Up6mTAoNHuwAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAAA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AAAJubwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5wDGaKw==", "height": 3300202, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BQXKmicCeThroyxquwgUZK5gKm4mSN3s9Rdo5GypeT7K Next: none Diff:
OldNewDifferences
8989 then throw("Cannot bridge non positive amount!")
9090 else if (!(containsElement(n, G)))
9191 then throw("Recipient network not supported")
92- else [StringEntry(((((((((("DEPOSIT_" + D) + "_") + z) + "_") + F) + "_") + G) + "_") + k), ((((((((z + "_") + toString((t - p))) + "_") + F) + "_") + G) + "_") + toString(height)))]
92+ else [StringEntry(((((((((("DEPOSIT_" + D) + "_") + z) + "_") + F) + "_") + G) + "_") + k), ((((((((((z + "_") + toString((t - p))) + "_") + F) + "_") + G) + "_") + toString(height)) + "_") + toString(p)))]
9393 }
9494 }
9595
110110 let t = valueOrElse(parseInt(split(N, "_")[1]), 0)
111111 if ((0 > t))
112112 then throw("Cannot transfer non positive amount")
113- else if (K)
114- then [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + m), ((N + "_") + L)), ScriptTransfer(Address(fromBase58String(split(N, "_")[0])), t, d)]
115- else [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + l), N), ScriptTransfer(f, t, d)]
113+ else {
114+ let O = valueOrElse(parseInt(split(N, "_")[5]), 25000000)
115+ if (K)
116+ then [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + m), ((N + "_") + L)), ScriptTransfer(e, O, d), ScriptTransfer(Address(fromBase58String(split(N, "_")[0])), t, d)]
117+ else [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + l), N), ScriptTransfer(e, O, d), ScriptTransfer(f, t, d)]
118+ }
116119 }
117120 }
118121 else throw("You are not allowed to change this")
121124
122125
123126 @Callable(r)
124-func withdraw (t,F,O,P) = if ((valueOrElse(c(((((("WITHDRAW_" + P) + "_") + F) + "_") + O)), 0) != 0))
127+func withdraw (t,F,P,Q) = if ((valueOrElse(c(((((("WITHDRAW_" + Q) + "_") + F) + "_") + P)), 0) != 0))
125128 then throw("Withdraw already processed.")
126129 else {
127- let Q = v(r)
128- let D = Q._1
129- let z = Q._2
130- let E = Q._3
130+ let R = v(r)
131+ let D = R._1
132+ let z = R._2
133+ let E = R._3
131134 if (containsElement([toString(e), toString(this)], z))
132135 then {
133- let R = valueOrElse(assetBalance(this, d), 0)
134- if ((R == R))
136+ let S = valueOrElse(assetBalance(this, d), 0)
137+ if ((S == S))
135138 then {
136- let S = invoke(f, "withdraw", [t], nil)
137- if ((S == S))
139+ let T = invoke(f, "withdraw", [t], nil)
140+ if ((T == T))
138141 then {
139- let T = valueOrElse(assetBalance(this, d), 0)
140- if ((T == T))
141- then if (((T - R) == t))
142- then [ScriptTransfer(Address(fromBase58String(F)), t, d), IntegerEntry(((((("WITHDRAW_" + P) + "_") + F) + "_") + O), t)]
142+ let U = valueOrElse(assetBalance(this, d), 0)
143+ if ((U == U))
144+ then if (((U - S) == t))
145+ then [ScriptTransfer(Address(fromBase58String(F)), t, d), IntegerEntry(((((("WITHDRAW_" + Q) + "_") + F) + "_") + P), t)]
143146 else throw("Something went wrong during non circulating amount withdraw.")
144147 else throw("Strict value is not equal to itself.")
145148 }
153156
154157
155158 @Callable(r)
156-func deleteEntry (U) = {
157- let V = v(r)
158- let D = V._1
159- let z = V._2
160- let E = V._3
159+func deleteEntry (V) = {
160+ let W = v(r)
161+ let D = W._1
162+ let z = W._2
163+ let E = W._3
161164 if ((z == toString(e)))
162- then [DeleteEntry(U)]
165+ then [DeleteEntry(V)]
163166 else throw("no")
164167 }
165168
166169
167-@Verifier(W)
168-func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
170+@Verifier(X)
171+func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey)
169172
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = getString(this, b)
55
66
77 func c (b) = getInteger(this, b)
88
99
1010 let d = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1'
1111
1212 let e = Address(base58'3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm')
1313
1414 let f = Address(base58'3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx')
1515
1616 let g = "conf_dapp_is_running"
1717
1818 let h = "conf_maintenance_msg"
1919
2020 let i = valueOrElse(getBoolean(this, g), true)
2121
2222 let j = valueOrElse(getString(this, h), "")
2323
2424 let k = "PENDING"
2525
2626 let l = "PROCESSED"
2727
2828 let m = "REJECTED"
2929
3030 let n = split(valueOrElse(a("supported_recipients_network"), "bnb_base"), "_")
3131
3232 let o = valueOrElse(c("confirmations_required"), 5)
3333
3434 let p = valueOrElse(c("service_fee"), 25000000)
3535
3636 func q (r) = if ((size(r.payments) == 0))
3737 then throw("No payment attached")
3838 else {
3939 let s = value(r.payments[0])
4040 let t = value(s.amount)
4141 let u = value(s.assetId)
4242 $Tuple2(t, u)
4343 }
4444
4545
4646 func v (r) = if (!(i))
4747 then throw(j)
4848 else $Tuple3(toBase58String(r.transactionId), toBase58String(r.caller.bytes), lastBlock.timestamp)
4949
5050
5151 @Callable(w)
5252 func setConf (b,x,y) = {
5353 let z = toString(w.caller)
5454 if (containsElement([toString(e), toString(this)], z))
5555 then if ((size(x) > 0))
5656 then [StringEntry(b, x)]
5757 else [IntegerEntry(b, y)]
5858 else throw("You are not allowed to change this")
5959 }
6060
6161
6262
6363 @Callable(r)
6464 func appRunning (A,B) = {
6565 let C = v(r)
6666 let D = C._1
6767 let z = C._2
6868 let E = C._3
6969 if (containsElement([toString(e), toString(this)], z))
7070 then [BooleanEntry(g, A), StringEntry(h, B)]
7171 else throw("You are not allowed to change this")
7272 }
7373
7474
7575
7676 @Callable(r)
7777 func deposit (F,G) = {
7878 let H = q(r)
7979 let t = H._1
8080 let u = H._2
8181 if ((u != d))
8282 then throw("Only BAI token accepted")
8383 else {
8484 let I = v(r)
8585 let D = I._1
8686 let z = I._2
8787 let E = I._3
8888 if ((0 >= (t - p)))
8989 then throw("Cannot bridge non positive amount!")
9090 else if (!(containsElement(n, G)))
9191 then throw("Recipient network not supported")
92- else [StringEntry(((((((((("DEPOSIT_" + D) + "_") + z) + "_") + F) + "_") + G) + "_") + k), ((((((((z + "_") + toString((t - p))) + "_") + F) + "_") + G) + "_") + toString(height)))]
92+ else [StringEntry(((((((((("DEPOSIT_" + D) + "_") + z) + "_") + F) + "_") + G) + "_") + k), ((((((((((z + "_") + toString((t - p))) + "_") + F) + "_") + G) + "_") + toString(height)) + "_") + toString(p)))]
9393 }
9494 }
9595
9696
9797
9898 @Callable(r)
9999 func finalize (J,K,L) = {
100100 let M = v(r)
101101 let D = M._1
102102 let z = M._2
103103 let E = M._3
104104 if (containsElement([toString(e), toString(this)], z))
105105 then {
106106 let N = valueOrElse(a(((J + "_") + k)), "")
107107 if ((N == ""))
108108 then throw("Request not found")
109109 else {
110110 let t = valueOrElse(parseInt(split(N, "_")[1]), 0)
111111 if ((0 > t))
112112 then throw("Cannot transfer non positive amount")
113- else if (K)
114- then [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + m), ((N + "_") + L)), ScriptTransfer(Address(fromBase58String(split(N, "_")[0])), t, d)]
115- else [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + l), N), ScriptTransfer(f, t, d)]
113+ else {
114+ let O = valueOrElse(parseInt(split(N, "_")[5]), 25000000)
115+ if (K)
116+ then [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + m), ((N + "_") + L)), ScriptTransfer(e, O, d), ScriptTransfer(Address(fromBase58String(split(N, "_")[0])), t, d)]
117+ else [DeleteEntry(((J + "_") + k)), StringEntry(((J + "_") + l), N), ScriptTransfer(e, O, d), ScriptTransfer(f, t, d)]
118+ }
116119 }
117120 }
118121 else throw("You are not allowed to change this")
119122 }
120123
121124
122125
123126 @Callable(r)
124-func withdraw (t,F,O,P) = if ((valueOrElse(c(((((("WITHDRAW_" + P) + "_") + F) + "_") + O)), 0) != 0))
127+func withdraw (t,F,P,Q) = if ((valueOrElse(c(((((("WITHDRAW_" + Q) + "_") + F) + "_") + P)), 0) != 0))
125128 then throw("Withdraw already processed.")
126129 else {
127- let Q = v(r)
128- let D = Q._1
129- let z = Q._2
130- let E = Q._3
130+ let R = v(r)
131+ let D = R._1
132+ let z = R._2
133+ let E = R._3
131134 if (containsElement([toString(e), toString(this)], z))
132135 then {
133- let R = valueOrElse(assetBalance(this, d), 0)
134- if ((R == R))
136+ let S = valueOrElse(assetBalance(this, d), 0)
137+ if ((S == S))
135138 then {
136- let S = invoke(f, "withdraw", [t], nil)
137- if ((S == S))
139+ let T = invoke(f, "withdraw", [t], nil)
140+ if ((T == T))
138141 then {
139- let T = valueOrElse(assetBalance(this, d), 0)
140- if ((T == T))
141- then if (((T - R) == t))
142- then [ScriptTransfer(Address(fromBase58String(F)), t, d), IntegerEntry(((((("WITHDRAW_" + P) + "_") + F) + "_") + O), t)]
142+ let U = valueOrElse(assetBalance(this, d), 0)
143+ if ((U == U))
144+ then if (((U - S) == t))
145+ then [ScriptTransfer(Address(fromBase58String(F)), t, d), IntegerEntry(((((("WITHDRAW_" + Q) + "_") + F) + "_") + P), t)]
143146 else throw("Something went wrong during non circulating amount withdraw.")
144147 else throw("Strict value is not equal to itself.")
145148 }
146149 else throw("Strict value is not equal to itself.")
147150 }
148151 else throw("Strict value is not equal to itself.")
149152 }
150153 else throw("You are not allowed to change this")
151154 }
152155
153156
154157
155158 @Callable(r)
156-func deleteEntry (U) = {
157- let V = v(r)
158- let D = V._1
159- let z = V._2
160- let E = V._3
159+func deleteEntry (V) = {
160+ let W = v(r)
161+ let D = W._1
162+ let z = W._2
163+ let E = W._3
161164 if ((z == toString(e)))
162- then [DeleteEntry(U)]
165+ then [DeleteEntry(V)]
163166 else throw("no")
164167 }
165168
166169
167-@Verifier(W)
168-func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
170+@Verifier(X)
171+func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey)
169172

github/deemru/w8io/026f985 
37.49 ms