tx · EMtK1S8XUS4H9wVLNYcpSNMMe9EpMemYeJJjAWiXXNcD

3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh:  -0.01000000 Waves

2023.03.13 02:00 [2487442] smart account 3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh > SELF 0.00000000 Waves

{ "type": 13, "id": "EMtK1S8XUS4H9wVLNYcpSNMMe9EpMemYeJJjAWiXXNcD", "fee": 1000000, "feeAssetId": null, "timestamp": 1678662057982, "version": 2, "chainId": 84, "sender": "3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh", "senderPublicKey": "6Q6JdfeHgdjpVbDxjoVAbQhxeGaQXS7B4WYGzk2tYsGT", "proofs": [ "MEDHsrQtzbgmGisHMUp6d1QeYZNdBWc391pQsV2rZAEaGGUkoNVR28e1kQyVraLf9CDnQMVGUhJ3K7ykeVvCY9F" ], "script": "base64:BgI2CAISAwoBBBIHCgUEBAQEBBIECgIBARIDCgEEEgMKAQQSAwoBCBIDCgEBEgQKAggBEgQKAggBEwACYW8CCGFkZHJlc3NfAAJhYwIIYWN0aXZhdGUABnBvb2xBYwIOYWN0aXZhdGVfcG9vbHMABnN3YXBBYwINYWN0aXZhdGVfc3dhcAAGbmZldEFjAgxhY3RpdmF0ZV9uZnQAC2xpcXVpZGl0eUFjAhJhY3RpdmF0ZV9saXF1aWRpdHkAA2JjRAITYmxvY2tfZGlzdHJpYnVpdGlvbgAJYnJpZGdlc0FjAhBhY3RpdmF0ZV9icmlkZ2VzAANhQUQCBWFkbWluAAJvQwIHb3JhY2xlXwACb1QCDHRvdGFsX29yYWNsZQAFd2F2ZXMCBVdBVkVTAAZhV2F2ZXMCDGFjY2VwdF93YXZlcwAFV0FWRVMFBHVuaXQBEWFkbWluVmVyaWZpY2F0aW9uAQFpBAckbWF0Y2gwCQCdCAIFBHRoaXMCBWFkbWluAwkAAQIFByRtYXRjaDACBlN0cmluZwQBdAUHJG1hdGNoMAkAAAIJAQdBZGRyZXNzAQkA2Q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taW4Av5WpUA==", "height": 2487442, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8eUvo2sFT22UkxvQaP4LsHUY9oVfLV4kSFPfoyAkJGqD Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ao = "address_"
55
66 let ac = "activate"
77
88 let poolAc = "activate_pools"
99
1010 let swapAc = "activate_swap"
1111
1212 let nfetAc = "activate_nft"
1313
1414 let liquidityAc = "activate_liquidity"
1515
1616 let bcD = "block_distribuition"
1717
1818 let bridgesAc = "activate_bridges"
1919
2020 let aAD = "admin"
2121
2222 let oC = "oracle_"
2323
2424 let oT = "total_oracle"
2525
2626 let waves = "WAVES"
2727
2828 let aWaves = "accept_waves"
2929
3030 let WAVES = unit
3131
3232 func adminVerification (i) = match getString(this, "admin") {
3333 case t: String =>
3434 (Address(fromBase58String(t)) == i.caller)
3535 case _ =>
3636 (this == i.caller)
3737 }
3838
3939
4040 let rateFee = "percentage_rate_fee_swap"
4141
4242 let rateFeeLimit = "rate_fee_limit"
4343
4444 let rateFeeHeight = "rate_fee_height"
4545
4646 let errorAdmin = "Only the Admin itself can invoke this function"
4747
4848 @Callable(i)
4949 func activate (v) = if (adminVerification(i))
5050 then [BooleanEntry(ac, v)]
5151 else throw(errorAdmin)
5252
5353
5454
5555 @Callable(i)
5656 func maintenance (pools,swap,stake,bridges,nft) = if (adminVerification(i))
5757 then [BooleanEntry(poolAc, pools), BooleanEntry(swapAc, swap), BooleanEntry(liquidityAc, stake), BooleanEntry(bridgesAc, bridges), BooleanEntry(nfetAc, nft)]
5858 else throw(errorAdmin)
5959
6060
6161
6262 @Callable(i)
6363 func RateFee (rateSwap,limitHeight) = if (adminVerification(i))
6464 then [IntegerEntry(rateFee, rateSwap), IntegerEntry(rateFeeHeight, limitHeight), IntegerEntry(rateFeeLimit, 100000000000000000)]
6565 else throw(errorAdmin)
6666
6767
6868
6969 @Callable(i)
7070 func recommendation (activate) = if (adminVerification(i))
7171 then [BooleanEntry("RECOMMENDATION", activate)]
7272 else throw(errorAdmin)
7373
7474
7575
7676 @Callable(i)
7777 func acceptWaves (activate) = if (adminVerification(i))
7878 then [BooleanEntry(aWaves, activate)]
7979 else throw(errorAdmin)
8080
8181
8282
8383 @Callable(i)
8484 func addAdmin (address) = if (adminVerification(i))
8585 then [StringEntry(aAD, address)]
8686 else throw(errorAdmin)
8787
8888
8989
9090 @Callable(i)
9191 func BlockDistribution (amount) = if (adminVerification(i))
9292 then [IntegerEntry(bcD, amount)]
9393 else throw(errorAdmin)
9494
9595
9696
9797 @Callable(i)
9898 func SetOracle (address,number) = if (adminVerification(i))
9999 then [StringEntry((oC + toString(number)), address), IntegerEntry(oT, number)]
100100 else throw(errorAdmin)
101101
102102
103103
104104 @Callable(i)
105105 func Set (address,T) = {
106106 let ki = if ((T == 1))
107107 then (ao + "IDO")
108108 else if ((T == 2))
109109 then (ao + "BRIDGES")
110110 else if ((T == 3))
111111 then (ao + "FARMS")
112112 else if ((T == 4))
113113 then (ao + "POOLS")
114114 else (ao + "NFT")
115115 if (adminVerification(i))
116116 then [StringEntry(ki, address)]
117117 else throw(errorAdmin)
118118 }
119119
120120

github/deemru/w8io/169f3d6 
26.25 ms