tx · CTK9XPWCeFmosRJXTrGMRH3VGzdDSAKhjaUugGYzMc7j

3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9:  -0.01000000 Waves

2023.09.26 00:21 [2771477] smart account 3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9 > SELF 0.00000000 Waves

{ "type": 13, "id": "CTK9XPWCeFmosRJXTrGMRH3VGzdDSAKhjaUugGYzMc7j", "fee": 1000000, "feeAssetId": null, "timestamp": 1695677011127, "version": 2, "chainId": 84, "sender": "3MxiR4vDPzVeaEPgznfS4zi4uLd2nnQuGy9", "senderPublicKey": "4AVkL2DQJ8sngCNyArYueNuPS7cvygnakPJhU65LfPfu", "proofs": [ "4gKdnDTRAjsLZYB3uFimNaNCBh569CARCsRvHBsfq4hiWr5rhv2jnVJ2dCgwsqUF6jrPKFdpMskNYWP1b9f87T8r" ], "script": "base64:BgIMCAISAwoBGBIDCgEYDgAOQVhMWV9NQUlOX0FERFIJAQdBZGRyZXNzAQEaAVRHYdFKTc5/+9vupfS91sItmkjqQtK5YZsAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAKa1NoYXJlUG9vbAIMX3Bvb2xTaGFyZUlkAAVrUG9vbAIFcG9vbF8ACWtBZG1pbjFQSwIVZ3JvdXAxX2FkbWluMV9wdWJfa2V5AAlrQWRtaW4yUEsCFWdyb3VwMV9hZG1pbjJfcHViX2tleQAJa0FkbWluM1BLAhVncm91cDFfYWRtaW4zX3B1Yl9rZXkAD2tPcGVyYXRvckNhbGxQSwISYWRtaW5fY2FsbF9wdWJfa2V5AAhhZG1pbjFQSwkA2QQBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUOQVhMWV9NQUlOX0FERFIFCWtBZG1pbjFQSwISQ2FuJ3QgZ2V0IGFkbWluMVBLAAhhZG1pbjJQSwkA2QQBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUOQVhMWV9NQUlOX0FERFIFCWtBZG1pbjJQSwISQ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UDbmlsCQEPdW5rbm93blBvb2xUeXBlAAMJAAACBQNpbnYFA2ludgkAzQgCBQFhBgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAzQgCBQFhBwUDbmlsAWkBDmV4Y2hhbmdlVG9rZW5zAQVyb3V0ZQUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCGFkbWluMVBLAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUIYWRtaW4yUEsAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQhhZG1pbjNQSwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAmIvdEA=", "height": 2771477, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EuWFzAFhpCfG1ngNofmRejKiAZAkUNFomRGXxg5vKay7 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS')
5+
6+let b = "SF"
7+
8+let c = "WX"
9+
10+let d = "_poolShareId"
11+
12+let e = "pool_"
13+
14+let f = "group1_admin1_pub_key"
15+
16+let g = "group1_admin2_pub_key"
17+
18+let h = "group1_admin3_pub_key"
19+
20+let i = "admin_call_pub_key"
21+
22+let j = fromBase58String(valueOrErrorMessage(getString(a, f), "Can't get admin1PK"))
23+
24+let k = fromBase58String(valueOrErrorMessage(getString(a, g), "Can't get admin2PK"))
25+
26+let l = fromBase58String(valueOrErrorMessage(getString(a, h), "Can't get admin3PK"))
27+
28+let m = fromBase58String(valueOrErrorMessage(getString(a, i), "Can't get operatorPK"))
29+
30+func n () = throw("Wrong pool type")
31+
32+
33+@Callable(o)
34+func exchangeLps (p) = {
35+ func q (r,s) = {
36+ let t = fromBase58String(s)
37+ let u = assetBalance(this, t)
38+ let v = valueOrErrorMessage(getString(a, (s + d)), ("Can't get pool of lp:" + s))
39+ let w = valueOrErrorMessage(getString(this, (e + v)), "Pool is not inited")
40+ let x = valueOrErrorMessage(addressFromString(v), "unknown addr")
41+ if ((u > 0))
42+ then {
43+ let y = if ((w == b))
44+ then invoke(x, "callFunction", ["withdraw", ["0"]], [AttachedPayment(t, u)])
45+ else if ((w == c))
46+ then invoke(x, "get", nil, [AttachedPayment(t, u)])
47+ else n()
48+ if ((y == y))
49+ then (r :+ true)
50+ else throw("Strict value is not equal to itself.")
51+ }
52+ else (r :+ false)
53+ }
54+
55+ nil
56+ }
57+
58+
59+
60+@Callable(o)
61+func exchangeTokens (z) = nil
62+
63+
64+@Verifier(A)
65+func B () = {
66+ 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)
77+ }
78+

github/deemru/w8io/026f985 
30.18 ms