What is this factory_ exactly in the following piece of code?

constructor(DSProxyFactory factory_) public {
    factory = factory_;


It should be something like uint/address/bytes etc.

1 Answer 1


It's a DSProxyFactory, which is a contract, which is a subtype of address. So you can pass an address to that constructor, and the address you pass is expected to point to a smart contract that implements the public interface described in DSProxyFactory.

  • So just that particular DSProxyFactory contract needs to be deployed on blockchain (to get the address)? Commented Mar 9, 2019 at 17:37
  • Yes. (Adding more characters to pass the minimum required.)
    – user19510
    Commented Mar 9, 2019 at 20:15

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.