-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V4 | The buyer cannot select the quantity purchased from the order #95
Comments
Would want this to be integrated |
I agree. Since 0x allows a taker to take fewer than the maker offered, the NftSwap SDK should support this and take an optional quantity in the options when filling a sell order. |
@boulinb Have you tested that your fix works? If it does then I agree this would be amazing to merge. |
Hey @jinsley8 ! Yes I use it in production on my project ;) |
What happens to the original order after a partial buy? Can you still do another order from it or do you just cancel the remaining order? |
In my case, the order is partially filled and waiting to be completely filled: If I put 2 ERC-1155s up for sale, I can buy 1 and then buy the rest back with another transaction |
Hello everyone!
I noticed that the user, when he bought an ERC1155 against an ERC20 could not choose the quantity bought; If the offer is 5 ETH against 5 ERC1155, it is impossible from the SDK to buy 1 ERC1155 for 1 ETH.
I have fork your project and create a fix, not being allowed to make a PR, here is a screen of the patch :
(src/sdk/v4/NftSwapV4.ts): https://prnt.sc/c1G4i5T-Z13m
(src/sdk/v4/types.ts) : https://prnt.sc/B4Fw-ZR2Zd2w
The text was updated successfully, but these errors were encountered: