Skip to content

Bancor Wrapper Update (Seeking Detailed Specs to Solve This LP Problem) #4

@stimuluspackage

Description

@stimuluspackage

Bancor Wrapper Update (Seeking Detailed Specs to Solve This LP Problem)

We currently have a Bancor ETH to LP converter available here: https://github.com/plexus-money/contracts/blob/master/contracts/wrapperBancor.sol

We are soon to add it to this site: https://lp.plexus.money/

We are currently building an LP to LP converter: https://github.com/plexus-money/contracts/blob/master/contracts/LP2LP.sol, however, this won't work well with Bancor LP tokens.

There is a small issue. Bancor's LP tokens live in the Bancor smart contract and are not issued as ERC-20 tokens to users, like with SushiSwap or Uniswap when a user provides liquidity.

Therefore, our contract needs to be the recipient of the tokens (currently the tx.origin user is assigned the tokens, which is not good long-term for DeFi Lego building). We want to save a mapping on the BancorWrapping contract that links to the end-user (msg.sender or onBahalfOf if the request goes through the LP-to-LP converter), while the contract itself would be the holders of all user Bancor LPs (which we think is the only way to do this like we have done with Uniswap and SushiSwap).

We are seeking detailed specifications on how this can be accomplished. Specs should include some code where a critical element is outlined.

We have a similar way of achieving this with Harvest.Finance, which you can find here: https://github.com/plexus-money/contracts/blob/master/contracts/tier2Farm.sol

Looking forward to hearing from you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions