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!
Add a comment
|
2 Answers
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?
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
)