SetRebaseHandlerManager

Git Source

Inherits: ISetRebaseHandlerManager, Ownable2Step

This contract is meant to be the DefaultAdmin role of the USDN token, and it should only have the ability to set the rebase handler.

State Variables

USDN

Gets the USDN token.

Usdn public immutable USDN;

Functions

constructor

constructor(Usdn usdn, address owner) Ownable(owner);

Parameters

NameTypeDescription
usdnUsdnThe address of the USDN token contract.
owneraddressThe address of the owner.

setRebaseHandler

Sets the rebase handler for the USDN token.

function setRebaseHandler(IRebaseCallback newHandler) external onlyOwner;

Parameters

NameTypeDescription
newHandlerIRebaseCallbackThe address of the new rebase handler.

renounceUsdnOwnership

Revokes the DEFAULT_ADMIN_ROLE on the USDN token.

function renounceUsdnOwnership() external onlyOwner;