Skip to content

[BUG] When i swap cake -> bnb, i got error. #11869

@weixuefeng

Description

@weixuefeng

Is there an existing issue for this?

  • I have searched the existing issues

Product

Trade

Current Behavior

i'm a crypto wallet developer. i'm working for integration bsc dapp.
when i swap cake -> bnb.
i signedTypedMessageV4 first.
and i got error above:

flutter: Console message: Gas estimate failed, trying to extract error [object Object] EstimateGasExecutionError: Execution reverted with reason: 0x2c4029e90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048baa579f00000000000000000000000000000000000000000000000000000000.
flutter:
flutter: Estimate Gas Arguments:
flutter:   from:   0x22eb4Cc79C1Dc337B472Aa86527D5d895c0E8971
flutter:   to:     0xd9C500DfF816a1Da21A48A732d3498Bf09dc9AEB
flutter:   value:  0 BNB
flutter:   data:   0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000685faf3f00000000000000000000000000000000000000000000000000000000000000030a000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000e09fabb73bd3ade0a17ecc321fd13a19e81ce82000000000000000000000000ffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000688737950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d9c500dff816a1da21a48a732d3498bf09dc9aeb00000000000000000000<…>
flutter:
flutter: Details: execution reverted: 0x2c4029e90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048baa579f00000000000000000000000000000000000000000000000000000000
flutter: Version: [email protected]
flutter: Console message: swap error Unknown error: "0x2c4029e90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048baa579f00000000000000000000000000000000000000000000000000000000". Try increasing your slippage tolerance.

what's wrong?

Expected Behavior

.

Steps To Reproduce

i only want to know. what's wrong? my signature is wrong? i had check it on metamask-test-dapp

Environment

- Device:
- OS:
- Browser:
- Wallet:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingTriageAwaiting team acknowledgement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions