changePriceFeedAddress

The changePriceFeedAddress function transfers the price feed power to the new contract address provided by the user.

function changePriceFeedAddress (address _new_address) public onlySecretary {
  • _new_address: The new chain link price feed contract address

Solidity

CEGORAS egoras = CEGORAS(0xd9E373F....);
require(egoras.changePriceFeedAddress(0xd9E373F...), "unable to changePriceFeedAddress");

Web3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.changePriceFeedAddress("0xd9E373F..").send({from: 0xMyAccount});
Contents
Solidity
Web3