Skip to content

swap router polish #57

@shunjizhan

Description

@shunjizhan

currently when calculating router address, we only fixed supplyAmount and targetToken. I think we should also fix supplyToken and targetAmount, so that each router address represents a unique swap instruction: "swap X amount of token A to Y amount of token B".

for previous routers we can use the same router address for multiple tokens, since we don't need to consider exchange rate, only recipient.

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