Changing Your Pool's Owner
CONTROLLER
Who Is the Current Owner?
const getBytes32 = (key) => {
return ethers.utils.formatBytes32String(key);
};
const owner = Portal.readAddressForId(id, getBytes32("CONTROLLER"))Set a New Owner
1. Which address is the new owner?
2. Double check the address of your new Controller.
3. Call changeIdCONTROLLER() in Portal with the ID of your Pool, and the address of your new Controller.
changeIdCONTROLLER() in Portal with the ID of your Pool, and the address of your new Controller. Portal.changeIdCONTROLLER(uint256 id, address newCONTROLLER)4. Change the Owner of Your Withdrawal Contract
Changing your Controller is easy, however it will override the ability of the previous Controller immediately.
Last updated