Skip to content

snxjs.Depot.exchangeEtherForSNX actually exchanges for sUSD #37

@oleiba

Description

@oleiba

When doing:

snxjs.Depot.exchangeEtherForSNX({value: snxjs.util.parseEther(etherValue)})

what actually happens is exchanging ether for sUSD.
I assume this is because the actual function in the contract which is called is the fallback function, which calls exchangeEtherForSynths (which exchanges for sUSD):

image

Instead - this function should eventually call the contract's fallback function which is exchangeEtherForSynthetix (which exchange for sUSD):

image

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