tx · 4HfTk4tcknpqz2zqNW15VZmTtYEHxvxcuVqrGHGWGwVG

3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE:  -0.04000000 Waves

2022.05.04 08:57 [2036551] smart account 3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE > SELF 0.00000000 Waves

{ "type": 13, "id": "4HfTk4tcknpqz2zqNW15VZmTtYEHxvxcuVqrGHGWGwVG", "fee": 4000000, "feeAssetId": null, "timestamp": 1651643832068, "version": 2, "chainId": 84, "sender": "3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE", "senderPublicKey": "B3JNxLE1zmVDjs6MqSA1d3N7V6dS5Rq2wvxZqqVHo1fK", "proofs": [ "doWN85AiS6ZurUiEnKX7QejXtgd4kDFxc1oPxjNmTYVA7cm6v7ib3r5cBZvJc821RQd4zD7PFmQqsSsjRH5Caq9" ], "script": "base64:AAIFAAAAAAAAACQIAhIDCgEIEggKBggICAgICBIDCgEEEgcKBQgICAgIEgMKAQgAAAALAAAAAARtYWluAgAAAAptYWluX2Fzc2V0AAAAAAFsAgAAAAlscF9hc3NldF8AAAAAAmExAgAAAAxzd2FwX2Fzc2V0MV8AAAAAAnN0AgAAAA9hZGRyZXNzX3N0YWtlcl8AAAAAA3NzdAIAAAANYWRkcmVzc19wb29sXwAAAAADc3dwAgAAAA1hZGRyZXNzX3N3YXBfAAAAAAJhMgIAAAAMc3dhcF9hc3NldDJfAAAAAANhYTECAAAAB3Bvb2xfMV8AAAAAA2FhMgIAAAAHcG9vbF8yXwAAAAADc3QxAgAAAA5zdGFrZXJfYWRkcmVzcwAAAAAEdHlwZQIAAAAFdHlwZV8AAAAFAAAAAWkBAAAADGFkZE1haW5Bc3NldAAAAAEAAAACaWQEAAAABFBNQUEJAAQdAAAAAgUAAAAEdGhpcwUAAAAEbWFpbgMJAAAAAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAABFBNQUEJAAACAAAA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ZUVudHJ5AAAAAQkAASwAAAACBQAAAAFsBQAAAARwcmFpCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAJzdAUAAAAEUE1BQQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAA2FhMQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAA2FhMgUAAAAHYWRkcmVzcwUAAAADbmlsBQAAAAdiYmVudHJ5CQAAAgAAAAECAAAALk9ubHkgdGhlIEFkbWluIGl0c2VsZiBjYW4gaW52b2tlIHRoaXMgZnVuY3Rpb24AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXntvw28", "height": 2036551, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmkDBn7DxE7aDqatThpZp7RBY9oazHAT5aqf8ofLtbp4 Next: 8WTqCoRZA8wuP9ib7s8ygMLWnvcp5zNMmCmxJ1fk15uq Diff:
OldNewDifferences
7272 let n = getStringValue(this, o)
7373 if ((l.caller == this))
7474 then if ((v == "swap"))
75- then [DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))]
75+ then [DeleteEntry((k + o)), DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))]
7676 else {
7777 let w = getStringValue((e + o))
78- let x = [DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))]
78+ let x = [DeleteEntry((k + o)), DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))]
7979 x
8080 }
8181 else throw("Only the Admin itself can invoke this function")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "main_asset"
55
66 let b = "lp_asset_"
77
88 let c = "swap_asset1_"
99
1010 let d = "address_staker_"
1111
1212 let e = "address_pool_"
1313
1414 let f = "address_swap_"
1515
1616 let g = "swap_asset2_"
1717
1818 let h = "pool_1_"
1919
2020 let i = "pool_2_"
2121
2222 let j = "staker_address"
2323
2424 let k = "type_"
2525
2626 @Callable(l)
2727 func addMainAsset (m) = {
2828 let n = getString(this, a)
2929 if ((l.caller == this))
3030 then if (isDefined(n))
3131 then throw("Main asset has been previously added.")
3232 else [StringEntry(a, m)]
3333 else throw("Only the Admin itself can invoke this function")
3434 }
3535
3636
3737
3838 @Callable(l)
3939 func addPool (o,p,q,r,s,t) = {
4040 let n = getString(this, o)
4141 if ((l.caller == this))
4242 then if (isDefined(n))
4343 then throw("The pool has been previously added.")
4444 else [StringEntry((e + o), p), StringEntry((b + p), q), StringEntry(o, r), StringEntry((d + r), o), StringEntry((h + o), s), StringEntry((i + o), t), StringEntry((k + o), "pools")]
4545 else throw("Only the Admin itself can invoke this function")
4646 }
4747
4848
4949
5050 @Callable(l)
5151 func activate (u) = if ((l.caller == this))
5252 then [BooleanEntry("activate", u)]
5353 else throw("Only the Admin itself can invoke this function")
5454
5555
5656
5757 @Callable(l)
5858 func addSwap (o,p,s,t,r) = {
5959 let n = getString(this, o)
6060 if ((l.caller == this))
6161 then if (isDefined(n))
6262 then throw("The address for this swap has been previously added.")
6363 else [StringEntry((c + o), s), StringEntry((g + o), t), StringEntry(o, r), StringEntry((d + r), o), StringEntry((k + o), "swap")]
6464 else throw("Only the Admin itself can invoke this function")
6565 }
6666
6767
6868
6969 @Callable(l)
7070 func removeSwapOrPool (o) = {
7171 let v = getStringValue(this, (k + o))
7272 let n = getStringValue(this, o)
7373 if ((l.caller == this))
7474 then if ((v == "swap"))
75- then [DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))]
75+ then [DeleteEntry((k + o)), DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))]
7676 else {
7777 let w = getStringValue((e + o))
78- let x = [DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))]
78+ let x = [DeleteEntry((k + o)), DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))]
7979 x
8080 }
8181 else throw("Only the Admin itself can invoke this function")
8282 }
8383
8484
8585 @Verifier(y)
8686 func z () = {
8787 let A = y
8888 sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
8989 }
9090

github/deemru/w8io/169f3d6 
43.56 ms