Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/spoke/interfaces/ITreasurySpoke.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ pragma solidity ^0.8.0;
/// @title ITreasurySpoke
/// @author Aave Labs
/// @notice Interface for the TreasurySpoke.
interface ITreasurySpoke {
interface IOwnable {
/// @notice Returns the current owner.
function owner() external view returns (address);

/// @notice Transfers ownership to a new owner.
function transferOwnership(address newOwner) external;

/// @notice Renounces ownership of the contract.
function renounceOwnership() external;
}
Comment on lines +7 to +16

interface ITreasurySpoke is IOwnable {
/// @notice Supplies a specified amount of the underlying asset to the specified Hub.
/// @dev The Spoke pulls the underlying asset from the caller, so prior approval is required.
/// @param hub The address of the Hub.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ contract TreasurySpokeUpgradeableTest is Base {

assertEq(_getProxyInitializedVersion(address(proxy)), revision);
assertEq(Ownable2Step(address(proxy)).owner(), TREASURY_ADMIN);
assertEq(ITreasurySpoke(address(proxy)).owner(), TREASURY_ADMIN);
}

function test_proxy_reinitialization_fuzz(uint64 initialRevision) public {
Expand Down