0

I'm using 0x Protocol for my project. And I want to use BUSD as asset that taker must pay to maker.
In 0x's document describes we can use native token BNB or WBNB, but not clear about if we can use another ERC-20 token ex: BUSD ... or not ?
Can I do that ?
I tried to use BUSD smart contract as taker's asset data, but it's not working.

Thank you!

2 Answers 2

0

If you are using either ERC721Orders.sol or ERC1155Orders.sol, you should be able to buy or sell a particular NFT for some amount of ERC20 token.

Can you share a code snippet of how you've set up the transfer?

0

Yes you can use. I'm using NftSwapSdk v3. I can do bundle swap. ERC721 + ERC1155 + ERC20 TO ERC721 + ERC1155 + ERC20 I can use weth, ape, usdc.

const oToken: SwappableAsset = {
   tokenAddress: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
   type: 'ERC20',
   amount: ethers.utils.parseEther('0.01').toString()
}
const order = NftSwapSdk.buildOrder(
   makerAssets,
   [oToken],
   makerAddress,
   config
)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.