☑️Manage Approvals

By default the Bebop API assumes that users will make regular ERC20 approvals to the Bebop smart contract(0xbbbbbBB520d69a9775E85b458C58c648259FAD5F).

There are also Permit2 and Permit options when providing allowances to Bebop.

Standard ERC20 Approvals

Specify approval_type=Standard when retrieving a quote.

You will need to make ERC20.approve allowances to the Bebop smart contract(0xbbbbbBB520d69a9775E85b458C58c648259FAD5F) before submitting an order.

Permit2

Specify approval_type=Permit2 when retrieving a quote. The quote endpoint will return a requiredSignatures field with token addresses that you must provide permit signatures for.

You will need to make ERC20.approve allowances to the Permit2 contract(0x000000000022D473030F116dDEE9F6B43aC78BA3) before submitting an order.

You will need to create a permit2 signature for the tokens indicated in quote.requiredSignatures and submit this signature when calling POST /order

Permit

Some tokens support Permit natively.

Specify approval_type=Permit when retrieving a quote.

You will need to create a permit signature for the tokens indicated in quote.requiredSignatures and submit this signature when calling POST /order

Last updated