I'm getting this error:

TypeError: Member "unbond" not unique after argument-dependent lookup in contract super EthGatedMarket.
    super.unbond(msg.sender, gatewaySpecifier, quantity);


///unbond to obtain eth in exchange for gateway tokens
function gatewayUnbond(uint quantity) public payable {

    require(unbondAllow, "unbond not allowed");
    super.unbond(msg.sender, gatewaySpecifier, quantity);


function unbond(address payable wallet, bytes32 specifier, uint quantity) internal{

    bondage = BondageInterface(coord.getContract("BONDAGE")); 
    uint issued = bondage.getDotsIssued(address(this), specifier);

    currentCost = CurrentCostInterface(coord.getContract("CURRENT_COST")); 
    uint reserveCost = currentCost._costOfNDots(address(this), specifier, issued + 1 - quantity, quantity - 1);
    FactoryTokenInterface tok = FactoryTokenInterface(curves[specifier]);

    //unbond dots
    bondage.unbond(address(this), specifier, quantity);
    //burn dot backed token
    tok.burnFrom(wallet, quantity);
    //send wallet eth
    wallet.transfer(reserveCost * adapterRate);
  • 2
    This isn't enough code to reproduce your issue. Try to make a minimal code snippet that reproduces the issue. (Delete as much code as possible while still getting the error.) Then share that complete, buildable code so we can see the error too. – user19510 Jun 10 '19 at 23:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.