2

screenshot of Etherscan

I want to deploy UniswapV2Factory on a local network and I found that it needs an address:

constructor(address _feeToSetter) public {
    feeToSetter = _feeToSetter;
}

Then I searched this address on Etherscan but found no source code. does anyone know how to resolve it?

1 Answer 1

1

In your case you need to provided an address to the constructor, so you will be able to change the reciever of the fee and an address that can change the fee reciever in the future:

    function setFeeTo(address _feeTo) external {
        require(msg.sender == feeToSetter, 'UniswapV2: FORBIDDEN');
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) external {
        require(msg.sender == feeToSetter, 'UniswapV2: FORBIDDEN');
        feeToSetter = _feeToSetter;
    }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.