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 PMAA = getStringValue(this, address)
7373 if ((i.caller == this))
7474 then if ((PAA == "swap"))
75- then [DeleteEntry((a1 + address)), DeleteEntry((a2 + address)), DeleteEntry(address), DeleteEntry((st + PMAA))]
75+ then [DeleteEntry((type + address)), DeleteEntry((a1 + address)), DeleteEntry((a2 + address)), DeleteEntry(address), DeleteEntry((st + PMAA))]
7676 else {
7777 let prai = getStringValue((sst + address))
78- let bbentry = [DeleteEntry((sst + address)), DeleteEntry((l + prai)), DeleteEntry(address), DeleteEntry((st + PMAA)), DeleteEntry((aa1 + address)), DeleteEntry((aa2 + address))]
78+ let bbentry = [DeleteEntry((type + address)), DeleteEntry((sst + address)), DeleteEntry((l + prai)), DeleteEntry(address), DeleteEntry((st + PMAA)), DeleteEntry((aa1 + address)), DeleteEntry((aa2 + address))]
7979 bbentry
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 main = "main_asset"
55
66 let l = "lp_asset_"
77
88 let a1 = "swap_asset1_"
99
1010 let st = "address_staker_"
1111
1212 let sst = "address_pool_"
1313
1414 let swp = "address_swap_"
1515
1616 let a2 = "swap_asset2_"
1717
1818 let aa1 = "pool_1_"
1919
2020 let aa2 = "pool_2_"
2121
2222 let st1 = "staker_address"
2323
2424 let type = "type_"
2525
2626 @Callable(i)
2727 func addMainAsset (id) = {
2828 let PMAA = getString(this, main)
2929 if ((i.caller == this))
3030 then if (isDefined(PMAA))
3131 then throw("Main asset has been previously added.")
3232 else [StringEntry(main, id)]
3333 else throw("Only the Admin itself can invoke this function")
3434 }
3535
3636
3737
3838 @Callable(i)
3939 func addPool (address,pair,lp,staker,asset1,asset2) = {
4040 let PMAA = getString(this, address)
4141 if ((i.caller == this))
4242 then if (isDefined(PMAA))
4343 then throw("The pool has been previously added.")
4444 else [StringEntry((sst + address), pair), StringEntry((l + pair), lp), StringEntry(address, staker), StringEntry((st + staker), address), StringEntry((aa1 + address), asset1), StringEntry((aa2 + address), asset2), StringEntry((type + address), "pools")]
4545 else throw("Only the Admin itself can invoke this function")
4646 }
4747
4848
4949
5050 @Callable(i)
5151 func activate (v) = if ((i.caller == this))
5252 then [BooleanEntry("activate", v)]
5353 else throw("Only the Admin itself can invoke this function")
5454
5555
5656
5757 @Callable(i)
5858 func addSwap (address,pair,asset1,asset2,staker) = {
5959 let PMAA = getString(this, address)
6060 if ((i.caller == this))
6161 then if (isDefined(PMAA))
6262 then throw("The address for this swap has been previously added.")
6363 else [StringEntry((a1 + address), asset1), StringEntry((a2 + address), asset2), StringEntry(address, staker), StringEntry((st + staker), address), StringEntry((type + address), "swap")]
6464 else throw("Only the Admin itself can invoke this function")
6565 }
6666
6767
6868
6969 @Callable(i)
7070 func removeSwapOrPool (address) = {
7171 let PAA = getStringValue(this, (type + address))
7272 let PMAA = getStringValue(this, address)
7373 if ((i.caller == this))
7474 then if ((PAA == "swap"))
75- then [DeleteEntry((a1 + address)), DeleteEntry((a2 + address)), DeleteEntry(address), DeleteEntry((st + PMAA))]
75+ then [DeleteEntry((type + address)), DeleteEntry((a1 + address)), DeleteEntry((a2 + address)), DeleteEntry(address), DeleteEntry((st + PMAA))]
7676 else {
7777 let prai = getStringValue((sst + address))
78- let bbentry = [DeleteEntry((sst + address)), DeleteEntry((l + prai)), DeleteEntry(address), DeleteEntry((st + PMAA)), DeleteEntry((aa1 + address)), DeleteEntry((aa2 + address))]
78+ let bbentry = [DeleteEntry((type + address)), DeleteEntry((sst + address)), DeleteEntry((l + prai)), DeleteEntry(address), DeleteEntry((st + PMAA)), DeleteEntry((aa1 + address)), DeleteEntry((aa2 + address))]
7979 bbentry
8080 }
8181 else throw("Only the Admin itself can invoke this function")
8282 }
8383
8484
8585 @Verifier(tx)
8686 func verify () = match tx {
8787 case _ =>
8888 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
8989 }
9090

github/deemru/w8io/169f3d6 
714.27 ms