Skip to content

Commit

Permalink
fix: address provider fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmikko committed Aug 20, 2023
1 parent 055dc8a commit 0c1f269
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 12 deletions.
42 changes: 31 additions & 11 deletions contracts/core/AddressProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of ACL contract
/// @param _address Address of ACL contract
function setACL(address _address)
function setACL(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -56,21 +58,25 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of ContractsRegister
/// @param _address Address of ContractsRegister
function setContractsRegister(address _address)
function setContractsRegister(
address _address
)
external
onlyOwner // F:[AP-12]
{
_setAddress(CONTRACTS_REGISTER, _address); // F:[AP-4]
}

/// @return Address of PriceOracleV2
function getPriceOracleV2() external view override returns (address) {
function getPriceOracle() external view override returns (address) {
return _getAddress(PRICE_ORACLE); // F:[AP-5]
}

/// @dev Sets address of PriceOracleV2
/// @param _address Address of PriceOracleV2
function setPriceOracleV2(address _address)
function setPriceOracle(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -84,7 +90,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of AccountFactory
/// @param _address Address of AccountFactory
function setAccountFactory(address _address)
function setAccountFactory(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -98,7 +106,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of AccountFactory
/// @param _address Address of AccountFactory
function setDataCompressor(address _address)
function setDataCompressor(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -112,7 +122,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of Treasury Contract
/// @param _address Address of Treasury Contract
function setTreasuryContract(address _address)
function setTreasuryContract(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -126,7 +138,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of GEAR token
/// @param _address Address of GEAR token
function setGearToken(address _address)
function setGearToken(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -140,7 +154,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of WETH token
/// @param _address Address of WETH token
function setWethToken(address _address)
function setWethToken(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -154,7 +170,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of WETH token
/// @param _address Address of WETH token
function setWETHGateway(address _address)
function setWETHGateway(
address _address
)
external
onlyOwner // F:[AP-12]
{
Expand All @@ -168,7 +186,9 @@ contract AddressProvider is Claimable, IAddressProvider {

/// @dev Sets address of PathFinder
/// @param _address Address of PathFinder
function setLeveragedActions(address _address)
function setLeveragedActions(
address _address
)
external
onlyOwner // T:[AP-15]
{
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IAddressProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface IAddressProvider is IAddressProviderEvents, IVersion {
function getWETHGateway() external view returns (address);

/// @return Address of PriceOracleV2
function getPriceOracleV2() external view returns (address);
function getPriceOracle() external view returns (address);

/// @return Address of DAO Treasury Multisig
function getTreasuryContract() external view returns (address);
Expand Down

0 comments on commit 0c1f269

Please sign in to comment.