0061 XLS-61d: CrossCurrency NFTokenAcceptOffer #183
tequdev
started this conversation in
XLS Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Abstract
XRPL's NFToken functionality, currently implemented as XLS-20, only allows the use of a single currency for transactions.
This proposal allows cross-currency NFToken transactions using multiple currencies.
Creators and marketplaces will be able to sell NFTs without being tied to a currency, and users will be able to buy NFTs without being tied to a currency.
This will increase revenue opportunities for creators and marketplaces and create significant tokenomics.
Specification
NFTokenAcceptOfferTransactionAdd the following field:
AmountobjectorstringAMOUNTAmountFieldWhen accepting an NFTokenOffer with the tfSellOffer flag set, the
Amountfield acts like theSendMaxfield, and when accepting an NFTokenOffer without tfSellOffer set, theDeliverMinfield acts like theAmountfield.It doesn't have to match the
Amountof the Offeror specified inNFTokenSellOfferorNFTokenBuyOffer.In broker mode, the
Amountfield must not be present.NFTokenBrokerFeeFieldThe existing
NFTokenBrokerFeefield can be any currency amount.CrossCurrency Accept
The currency of
Amountcan be different from the currency of the BuyOffer / SellOffer.The currency of
NFTokenBrokerFeecan be different from the currency of the BuyOffer / SellOffer.Buyer must specify a sufficient amount that can be transferred to Seller, nftoken issuer(nftoken transfer fee), broker(broker fee), token issuer(token transfer fee).
NFToken transfer fees are sent in the buyer's currency.
NFToken with the tfOnlyXRP flag set will be paid in XRP.
If there was insufficient amount or liquidity, the transaction will fail.
NFTokenCreateOfferTransactionNo change in fields.
Change to only check if the NFToken issuer has a trustline for the currenfy of
Amountfield when creating a BuyOffer for an NFToken with royalties.The
NFTokenPageObjectNo changes.
The
NFTokenOfferObjectNo changes.
Cases
AmountField not specified inNFTokenAcceptOfferTransactionAccording to XLS-20 specifications. Except for NFTs with royalties, issuer's trust line must be checked.
AmountField specified and equal toAmountinNFTokenOfferDEX liquidity will not be used and existing transfer processing will be used.
If the quantity in the
Amountcannot be sent to the seller, the transaction will fail.AmountField specified and not same asAmountinNFTokenOfferDEX liquidity will be used and other transfer processing (used in Payment/CheckCash) will be used.
If the quantity in
Amountcannot be sent to the seller, the transaction will fail.If the buyer's
Amountcan send more than the specified amount of the seller'sAmount, the amount will be sent up to the maximum amount of the buyer'sAmount.NFTokenBrokerFeeField specifiedConvert and send the amount from the buyer's
Amountto satisfy theNFTokenBrokerFee.Accept NFToken with TransferFee
Paid in the same currency as the buyer's
Amount.If no trustline is set, the transaction will fail.
Accept NFToken with TransferFee,
tfOnlyXRP,AmountField specified,NFTokenBrokerFeeField specifiedUp to 3 times currency will be converted and up to 3 times token transfer fees will be charged.
NFTokenBrokerFeecurrency, Buyer'sAmountcurrency fee)TransferFeecurrency or XRP, Buyer'sAmountcurrency fee)Amountcurrency, Buyer'sAmountcurrency fee)Concern
Transaction load
Processing load is expected to increase due to up to three cross-currency remittance processes (flows) within a single transaction.
However, instead of merely being concerned about the increased load of a single transaction, it should be noted that in the current, similar processing would have to be spread over two or more transactions, NFTokenAccept and CrossCurrency Payment.
Royalty for NFToken with tfOnlyFlag
The royalty is sent by converting a portion of the buyer's Amount (TransferFee %) into XRP, so if there is not enough liquidity, the royalty might be almost zero.
Note
The process used by Payment is used for currency conversion and remittance processing.
Path cannot be specified, and only direct AAA->BBB pairs are used at this time.
If auto-bridge is enabled by default by XLS-60d, the auto-bridge path will also be used for the currency conversion process in this proposal.
Beta Was this translation helpful? Give feedback.
All reactions