tx · EuWFzAFhpCfG1ngNofmRejKiAZAkUNFomRGXxg5vKay7

3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9:  -0.01000000 Waves

2023.09.26 00:33 [2771487] smart account 3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9 > SELF 0.00000000 Waves

{ "type": 13, "id": "EuWFzAFhpCfG1ngNofmRejKiAZAkUNFomRGXxg5vKay7", "fee": 1000000, "feeAssetId": null, "timestamp": 1695677611192, "version": 2, "chainId": 84, "sender": "3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9", "senderPublicKey": "4AVkL2DQJ8sngCNyArYueNuPS7cvygnakPJhU65LfPfu", "proofs": [ "3vh6sWpCHfKuQevYGgF3Zg6SVruF6kVRQ2keX2APMEnhMVg4Adiox1EVZAg1jUPCJKQT3RJYwasT5TEmYw8HQtVK", "3XFoggokQnKfMJfc1MivAbRaWq65pf5BihFSerYCztSyFwRwKz5Bg4mS1YKHyJDyc38D5s7b3ctbZmM9ryZDs1a2" ], "script": "base64:BgIMCAISAwoBGBIDCgEYDgAOQVhMWV9NQUlOX0FERFIJAQdBZGRyZXNzAQEaAVRHYdFKTc5/+9vupfS91sItmkjqQtK5YZsAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAKa1NoYXJlUG9vbAIMX3Bvb2xTaGFyZUlkAAVrUG9vbAIFcG9vbF8ACWtBZG1pbjFQSwIVZ3JvdXAxX2FkbWluMV9wdWJfa2V5AAlrQWRtaW4yUEsCFWdyb3VwMV9hZG1pbjJfcHViX2tleQAJa0FkbWluM1BLAhVncm91cDFfYWRtaW4zX3B1Yl9rZXkAD2tPcGVyYXRvckNhbGxQSwISYWRtaW5fY2FsbF9wdWJfa2V5AAhhZG1pbjFQSwkA2QQBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUOQVhMWV9NQUlOX0FERFIFCWtBZG1pbjFQSwISQ2FuJ3QgZ2V0IGFkbWluMVBLAAhhZG1pbjJQSw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VkAAEDAwUKaXNSaWdodEZlZQUKaXNFeExwQ2FsbAcFEHNpZ25lZEJ5T25lQWRtaW4HBBJhZG1pblB1YktleTFTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQhhZG1pbjFQSwABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFCGFkbWluMlBLAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUIYWRtaW4zUEsAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAJoU4bS", "height": 2771487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CTK9XPWCeFmosRJXTrGMRH3VGzdDSAKhjaUugGYzMc7j Next: 6E7SeS9KNuHLoQvLSfiCPqtUD2EAVToZBcUiQVMGL2eJ Diff:
OldNewDifferences
6464 @Verifier(A)
6565 func B () = {
6666 let C = A
67- let D = if (sigVerify(A.bodyBytes, A.proofs[0], j))
68- then 1
69- else 0
70- let E = if (sigVerify(A.bodyBytes, A.proofs[1], k))
71- then 1
72- else 0
73- let F = if (sigVerify(A.bodyBytes, A.proofs[2], l))
74- then 1
75- else 0
76- (((D + E) + F) >= 2)
67+ if ($isInstanceOf(C, "InvokeScriptTransaction"))
68+ then {
69+ let y = C
70+ let D = if ((y.fee == 900000))
71+ then (y.feeAssetId == unit)
72+ else false
73+ let E = (y.function == "exchangeLps")
74+ let F = if (sigVerify(A.bodyBytes, A.proofs[0], j))
75+ then 1
76+ else 0
77+ let G = if (sigVerify(A.bodyBytes, A.proofs[0], k))
78+ then 1
79+ else 0
80+ let H = if (sigVerify(A.bodyBytes, A.proofs[0], l))
81+ then 1
82+ else 0
83+ let I = if (sigVerify(A.bodyBytes, A.proofs[0], m))
84+ then 1
85+ else 0
86+ let J = ((((F + G) + H) + I) >= 1)
87+ if (if (D)
88+ then E
89+ else false)
90+ then J
91+ else false
92+ }
93+ else {
94+ let F = if (sigVerify(A.bodyBytes, A.proofs[0], j))
95+ then 1
96+ else 0
97+ let G = if (sigVerify(A.bodyBytes, A.proofs[1], k))
98+ then 1
99+ else 0
100+ let H = if (sigVerify(A.bodyBytes, A.proofs[2], l))
101+ then 1
102+ else 0
103+ (((F + G) + H) >= 2)
104+ }
77105 }
78106
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS')
55
66 let b = "SF"
77
88 let c = "WX"
99
1010 let d = "_poolShareId"
1111
1212 let e = "pool_"
1313
1414 let f = "group1_admin1_pub_key"
1515
1616 let g = "group1_admin2_pub_key"
1717
1818 let h = "group1_admin3_pub_key"
1919
2020 let i = "admin_call_pub_key"
2121
2222 let j = fromBase58String(valueOrErrorMessage(getString(a, f), "Can't get admin1PK"))
2323
2424 let k = fromBase58String(valueOrErrorMessage(getString(a, g), "Can't get admin2PK"))
2525
2626 let l = fromBase58String(valueOrErrorMessage(getString(a, h), "Can't get admin3PK"))
2727
2828 let m = fromBase58String(valueOrErrorMessage(getString(a, i), "Can't get operatorPK"))
2929
3030 func n () = throw("Wrong pool type")
3131
3232
3333 @Callable(o)
3434 func exchangeLps (p) = {
3535 func q (r,s) = {
3636 let t = fromBase58String(s)
3737 let u = assetBalance(this, t)
3838 let v = valueOrErrorMessage(getString(a, (s + d)), ("Can't get pool of lp:" + s))
3939 let w = valueOrErrorMessage(getString(this, (e + v)), "Pool is not inited")
4040 let x = valueOrErrorMessage(addressFromString(v), "unknown addr")
4141 if ((u > 0))
4242 then {
4343 let y = if ((w == b))
4444 then invoke(x, "callFunction", ["withdraw", ["0"]], [AttachedPayment(t, u)])
4545 else if ((w == c))
4646 then invoke(x, "get", nil, [AttachedPayment(t, u)])
4747 else n()
4848 if ((y == y))
4949 then (r :+ true)
5050 else throw("Strict value is not equal to itself.")
5151 }
5252 else (r :+ false)
5353 }
5454
5555 nil
5656 }
5757
5858
5959
6060 @Callable(o)
6161 func exchangeTokens (z) = nil
6262
6363
6464 @Verifier(A)
6565 func B () = {
6666 let C = A
67- let D = if (sigVerify(A.bodyBytes, A.proofs[0], j))
68- then 1
69- else 0
70- let E = if (sigVerify(A.bodyBytes, A.proofs[1], k))
71- then 1
72- else 0
73- let F = if (sigVerify(A.bodyBytes, A.proofs[2], l))
74- then 1
75- else 0
76- (((D + E) + F) >= 2)
67+ if ($isInstanceOf(C, "InvokeScriptTransaction"))
68+ then {
69+ let y = C
70+ let D = if ((y.fee == 900000))
71+ then (y.feeAssetId == unit)
72+ else false
73+ let E = (y.function == "exchangeLps")
74+ let F = if (sigVerify(A.bodyBytes, A.proofs[0], j))
75+ then 1
76+ else 0
77+ let G = if (sigVerify(A.bodyBytes, A.proofs[0], k))
78+ then 1
79+ else 0
80+ let H = if (sigVerify(A.bodyBytes, A.proofs[0], l))
81+ then 1
82+ else 0
83+ let I = if (sigVerify(A.bodyBytes, A.proofs[0], m))
84+ then 1
85+ else 0
86+ let J = ((((F + G) + H) + I) >= 1)
87+ if (if (D)
88+ then E
89+ else false)
90+ then J
91+ else false
92+ }
93+ else {
94+ let F = if (sigVerify(A.bodyBytes, A.proofs[0], j))
95+ then 1
96+ else 0
97+ let G = if (sigVerify(A.bodyBytes, A.proofs[1], k))
98+ then 1
99+ else 0
100+ let H = if (sigVerify(A.bodyBytes, A.proofs[2], l))
101+ then 1
102+ else 0
103+ (((F + G) + H) >= 2)
104+ }
77105 }
78106

github/deemru/w8io/026f985 
35.69 ms