tx · BEtf54UC6QdjygJ58kkMEhUd5GCUdfY9CvBDyZhyELP7

3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG:  -0.01100000 Waves

2024.09.21 11:56 [3293183] smart account 3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG > SELF 0.00000000 Waves

{ "type": 13, "id": "BEtf54UC6QdjygJ58kkMEhUd5GCUdfY9CvBDyZhyELP7", "fee": 1100000, "feeAssetId": null, "timestamp": 1726909068142, "version": 2, "chainId": 84, "sender": "3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG", "senderPublicKey": "4JNWrRNexiT3ApCKPgynPrc9Z7JiEfeMgZHQHsAAdo3F", "proofs": [ "5v5pzJGVqFpmNHLKcof9ARVvAU5EEYQoC71rj2yaTfFcVfHnL7hJY8zxmiyc758FxU9ccqwmja4h3egkXXMvmbaM" ], "script": "base64:AAIFAAAAAAAAACcIAhIECgIICBIECgIECBIECgIICBIECgIICBIGCgQBCAgIEgMKAQgAAAAQAQAAAAlnZXRTdHJCeUsAAAABAAAAA2tleQkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkBAAAACWdldEludEJ5SwAAAAEAAAADa2V5CQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAALYmFpX2Fzc2V0aWQBAAAAIJPhcjhxBJtq6JpjHwQkt2RTlyw+vGYLg3SvaLskjeJCAAAAAAphZG1pbl9hZGRyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUTLfve1EjrcSTZbnarq+rhHq1VvziySxAAAAAAA9ub25fY2lyY3VsYXRpbmcJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTsajDaiz3SDMXD/foB97kPVKepkwKDR7sAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAAAtkYXBwUnVubmluZwkBAAAAC3ZhbHVlT3JFbHNl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1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACJZb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGNoYW5nZSB0aGlzAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAALJHQwNTM4ODU0MjcJAQAAAAxpZENhbGxlckRhdGUAAAABBQAAAAFpBAAAAAJpZAgFAAAACyR0MDUzODg1NDI3AAAAAl8xBAAAAAZjYWxsZXIIBQAAAAskdDA1Mzg4NTQyNwAAAAJfMgQAAAAEZGF0ZQgFAAAACyR0MDUzODg1NDI3AAAAAl8zAwkAAAAAAAACBQAAAAZjYWxsZXIJAAQlAAAAAQUAAAAKYWRtaW5fYWRkcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnT5a38", "height": 3293183, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DGyZe2vco7V5vUaAA8NiinKcMc5NR845ruUPWRzNkR2k Next: FW4u3pZE7RnzFiwifGkZW6UsoU2EaS1cD9zdSMfk2wUS Diff:
OldNewDifferences
127127 let B = O._1
128128 let x = O._2
129129 let C = O._3
130- if (containsElement([toString(e), toString(this)], x))
131- then {
132- let P = valueOrElse(assetBalance(this, d), 0)
133- if ((P == P))
134- then {
135- let Q = invoke(f, "withdraw", [s], nil)
136- if ((Q == Q))
137- then {
138- let R = valueOrElse(assetBalance(this, d), 0)
139- if ((R == R))
140- then if (((R - P) == s))
141- then [ScriptTransfer(Address(fromBase58String(D)), s, d), IntegerEntry(((((("WITHDRAW_" + N) + "_") + D) + "_") + M), s)]
142- else throw("Something went wrong during non circulating amount withdraw.")
143- else throw("Strict value is not equal to itself.")
144- }
145- else throw("Strict value is not equal to itself.")
146- }
147- else throw("Strict value is not equal to itself.")
148- }
149- else throw("You are not allowed to change this")
130+ if (true)
131+ then throw(((toString(e) + " / ") + x))
132+ else if (containsElement([toString(e), toString(this)], x))
133+ then {
134+ let P = valueOrElse(assetBalance(this, d), 0)
135+ if ((P == P))
136+ then {
137+ let Q = invoke(f, "withdraw", [s], nil)
138+ if ((Q == Q))
139+ then {
140+ let R = valueOrElse(assetBalance(this, d), 0)
141+ if ((R == R))
142+ then if (((R - P) == s))
143+ then [ScriptTransfer(Address(fromBase58String(D)), s, d), IntegerEntry(((((("WITHDRAW_" + N) + "_") + D) + "_") + M), s)]
144+ else throw("Something went wrong during non circulating amount withdraw.")
145+ else throw("Strict value is not equal to itself.")
146+ }
147+ else throw("Strict value is not equal to itself.")
148+ }
149+ else throw("Strict value is not equal to itself.")
150+ }
151+ else throw("You are not allowed to change this")
150152 }
151153
152154
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 = split(valueOrElse(a("supported_recipients_network"), "bnb_base"), "_")
2929
3030 let n = valueOrElse(c("confirmations_required"), 5)
3131
3232 let o = valueOrElse(c("service_fee"), 25000000)
3333
3434 func p (q) = if ((size(q.payments) == 0))
3535 then throw("No payment attached")
3636 else {
3737 let r = value(q.payments[0])
3838 let s = value(r.amount)
3939 let t = value(r.assetId)
4040 $Tuple2(s, t)
4141 }
4242
4343
4444 func u (q) = if (!(i))
4545 then throw(j)
4646 else $Tuple3(toBase58String(q.transactionId), toBase58String(q.caller.bytes), lastBlock.timestamp)
4747
4848
4949 @Callable(v)
5050 func setConf (b,w) = {
5151 let x = toString(v.caller)
5252 if (containsElement([toString(e), toString(this)], x))
5353 then [StringEntry(b, w)]
5454 else throw("You are not allowed to change this")
5555 }
5656
5757
5858
5959 @Callable(q)
6060 func appRunning (y,z) = {
6161 let A = u(q)
6262 let B = A._1
6363 let x = A._2
6464 let C = A._3
6565 if (containsElement([toString(e), toString(this)], x))
6666 then [BooleanEntry(g, y), StringEntry(h, z)]
6767 else throw("You are not allowed to change this")
6868 }
6969
7070
7171
7272 @Callable(q)
7373 func deposit (D,E) = {
7474 let F = p(q)
7575 let s = F._1
7676 let t = F._2
7777 if ((t != d))
7878 then throw("Only BAI token accepted")
7979 else {
8080 let G = u(q)
8181 let B = G._1
8282 let x = G._2
8383 let C = G._3
8484 if ((0 >= (s - o)))
8585 then throw("Cannot bridge non positive amount!")
8686 else if (!(containsElement(m, E)))
8787 then throw("Recipient network not supported")
8888 else [StringEntry(((((((((("DEPOSIT_" + B) + "_") + x) + "_") + D) + "_") + E) + "_") + k), ((((((((x + "_") + toString((s - o))) + "_") + D) + "_") + E) + "_") + toString(height)))]
8989 }
9090 }
9191
9292
9393
9494 @Callable(q)
9595 func finalize (H,I) = {
9696 let J = u(q)
9797 let B = J._1
9898 let x = J._2
9999 let C = J._3
100100 if (containsElement([toString(e), toString(this)], x))
101101 then {
102102 let K = valueOrElse(a(((H + "_") + k)), "")
103103 if ((K == ""))
104104 then throw("Request not found")
105105 else {
106106 let s = valueOrElse(parseInt(split(K, "_")[1]), 0)
107107 if ((0 > s))
108108 then throw("Cannot transfer non positive amount")
109109 else {
110110 let L = valueOrElse(parseInt(split(K, "_")[4]), 0)
111111 if ((n > (height - L)))
112112 then throw("Required confirmation not reached.")
113113 else [DeleteEntry(((H + "_") + k)), StringEntry(((H + "_") + l), ((K + "_") + I)), ScriptTransfer(f, s, d)]
114114 }
115115 }
116116 }
117117 else throw("You are not allowed to change this")
118118 }
119119
120120
121121
122122 @Callable(q)
123123 func withdraw (s,D,M,N) = if ((valueOrElse(c(((((("WITHDRAW_" + N) + "_") + D) + "_") + M)), 0) != 0))
124124 then throw("Withdraw already processed.")
125125 else {
126126 let O = u(q)
127127 let B = O._1
128128 let x = O._2
129129 let C = O._3
130- if (containsElement([toString(e), toString(this)], x))
131- then {
132- let P = valueOrElse(assetBalance(this, d), 0)
133- if ((P == P))
134- then {
135- let Q = invoke(f, "withdraw", [s], nil)
136- if ((Q == Q))
137- then {
138- let R = valueOrElse(assetBalance(this, d), 0)
139- if ((R == R))
140- then if (((R - P) == s))
141- then [ScriptTransfer(Address(fromBase58String(D)), s, d), IntegerEntry(((((("WITHDRAW_" + N) + "_") + D) + "_") + M), s)]
142- else throw("Something went wrong during non circulating amount withdraw.")
143- else throw("Strict value is not equal to itself.")
144- }
145- else throw("Strict value is not equal to itself.")
146- }
147- else throw("Strict value is not equal to itself.")
148- }
149- else throw("You are not allowed to change this")
130+ if (true)
131+ then throw(((toString(e) + " / ") + x))
132+ else if (containsElement([toString(e), toString(this)], x))
133+ then {
134+ let P = valueOrElse(assetBalance(this, d), 0)
135+ if ((P == P))
136+ then {
137+ let Q = invoke(f, "withdraw", [s], nil)
138+ if ((Q == Q))
139+ then {
140+ let R = valueOrElse(assetBalance(this, d), 0)
141+ if ((R == R))
142+ then if (((R - P) == s))
143+ then [ScriptTransfer(Address(fromBase58String(D)), s, d), IntegerEntry(((((("WITHDRAW_" + N) + "_") + D) + "_") + M), s)]
144+ else throw("Something went wrong during non circulating amount withdraw.")
145+ else throw("Strict value is not equal to itself.")
146+ }
147+ else throw("Strict value is not equal to itself.")
148+ }
149+ else throw("Strict value is not equal to itself.")
150+ }
151+ else throw("You are not allowed to change this")
150152 }
151153
152154
153155
154156 @Callable(q)
155157 func deleteEntry (S) = {
156158 let T = u(q)
157159 let B = T._1
158160 let x = T._2
159161 let C = T._3
160162 if ((x == toString(e)))
161163 then [DeleteEntry(S)]
162164 else throw("no")
163165 }
164166
165167
166168 @Verifier(U)
167169 func V () = sigVerify(U.bodyBytes, U.proofs[0], U.senderPublicKey)
168170

github/deemru/w8io/026f985 
33.31 ms