tx · BSLZHBkG8bMkvTYjFYYgrin4VU8AWVeP3QuSBJsT3wtq

3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS:  -0.01000000 Waves

2023.08.26 11:16 [2727377] smart account 3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS > SELF 0.00000000 Waves

{ "type": 13, "id": "BSLZHBkG8bMkvTYjFYYgrin4VU8AWVeP3QuSBJsT3wtq", "fee": 1000000, "feeAssetId": null, "timestamp": 1693037832329, "version": 2, "chainId": 84, "sender": "3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS", "senderPublicKey": "HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL", "proofs": [ "32t89XBhhcgfe2vf3VL8nKEjPk4Z3KjYXzSr2tnpaXZGBkR1qQjj8Dp2AzhTSu4HWVoea9oChb85kaMFwdWsstHm" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAQQWRkUG9vbExpcXVpZGl0eQAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAASU5vIHBheW1lbnQgYXR0YWNoZWQsIFBsZWFzZSBBdHRhY2ggb25seSBXaGl0ZWxpc3RlZCBUb2tlbnMgaW4gcGF5bWVudFsxXS4EAAAAIVByZXZpb3VzRnVuZHNBZGRlZFRvUG9vbGJ5Q29tcGFueQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAA5Ub3RhbF9MUF9BZGRlZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAACNUb3Rhb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AAAAICAAAADlRvdGFsX0xQX0FkZGVkBQAAACNUb3RhbEZ1bmRzRnVuZHNBZGRlZFRvUG9vbGJ5Q29tcGFueQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledMwjPU=", "height": 2727377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: FzMW8RBaeRjCPu83mJspDApgzkqLKMNzZbs8DxzudBFf Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(a)
7+func AddPoolLiquidity () = {
8+ let b = toBase58String(a.caller.bytes)
9+ let c = if ((size(a.payments) == 1))
10+ then a.payments[0]
11+ else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
12+ let d = {
13+ let e = getInteger(this, "Total_LP_Added")
14+ if ($isInstanceOf(e, "Int"))
15+ then {
16+ let f = e
17+ f
18+ }
19+ else 0
20+ }
21+ let g = (d + c.amount)
22+ let h = {
23+ let e = getInteger(this, "Total_Pool_Liquidity")
24+ if ($isInstanceOf(e, "Int"))
25+ then {
26+ let f = e
27+ f
28+ }
29+ else 0
30+ }
31+ let i = (h + c.amount)
32+ let j = {
33+ let e = getInteger(this, "LP_Deposit_Counter")
34+ if ($isInstanceOf(e, "Int"))
35+ then {
36+ let f = e
37+ f
38+ }
39+ else 0
40+ }
41+ let k = (j + 1)
42+ if (isDefined(c.assetId))
43+ then throw("Only WAVES is allowed to deposit at the moment")
44+ else [IntegerEntry("Total_Pool_Liquidity", i), IntegerEntry("LP_Deposit_Counter", k), IntegerEntry("Total_LP_Added", g)]
45+ }
46+
47+
48+@Verifier(l)
49+func m () = {
50+ let e = l
51+ if (if ($isInstanceOf(e, "Order"))
52+ then true
53+ else if ($isInstanceOf(e, "ExchangeTransaction"))
54+ then true
55+ else $isInstanceOf(e, "TransferTransaction"))
56+ then {
57+ let n = e
58+ false
59+ }
60+ else sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
61+ }
62+

github/deemru/w8io/026f985 
13.59 ms