bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 28쪽 중 17쪽
ated Market Makers, the permissioned DEX, Checks, and pseudo-accounts:
Unifies freeze and deep freeze checks for transfers to and from pseudo-accounts in the
VaultDeposit
,
VaultWithdraw
,
AMMDeposit
,
AMMWithdraw
,
LoanBrokerCoverDeposit
, and
LoanBrokerCoverWithdraw
transactions.
Changes
CheckCash
and
CheckCancel
to reject an all-zero
CheckID
with
temMALFORMED
during preflight instead of
tecNO_ENTRY
during processing.
Fixes hybrid offers being removed from the open order book when the account that placed them loses access to the permissioned domain.
Fixes Automated Market Maker liquidity being included in quality estimates for permissioned DEX order books.
Changes
AMMWithdraw
to return
tecAMM_FAILED
instead of dividing by zero for the one
EPrice
value at which the computation's denominator becomes zero. Without this amendment, the division throws and the transaction fails with
tefEXCEPTION
.
Adds a precision loss check to
AMMDeposit
,
AMMWithdraw
, and
AMMClawback
when the
fixAMMv1_3
amendment is also enabled.
Changes the
ValidAMM
invariant to ensure an AMM can only be deleted by an
AMMWithdraw
,
AMMClawback
, or
AMMDelete
transaction.
Adds invariant
ObjectHasPseudoAccount
, which checks that deleting a ledger entry backed by a pseudo-account also deletes that pseudo-account.
Adds further precision and rounding fixes for Single Asset Vaults and the Lending Protocol.
Changes transactions signed by a pseudo-account to fail with
tefBAD_AUTH
. This check also takes effect if the
LendingProtocol
or
BatchV1_1
amendment is enabled.
Changes
CredentialCreate
to reject a pseudo-account in the
Subject
field with
tecPSEUDO_ACCOUNT
.
Changes
DepositPreauth
to reject a pseudo-account in the
Authorize
field with
tecPSEUDO_ACCOUNT
.
fixCleanup3_4_0
Amendment
fixCleanup3_4_0
Amendment ID
98433DD001A5737F773D74F8CA2A25A065089C73B2E611C760BAF369E4FECA76
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment is a collection of fixes for Single Asset Vaults, the Lending Protocol, Automated Market Makers, the permissioned DEX, trust lines, NFTs, MPTs, Escrow, Sponsorship, transaction signing, and permission delegation:
Changes
VaultClawback
to reject a pseudo-account holder with
tecPSEUDO_ACCOUNT
.
Changes
VaultDeposit
,
VaultWithdraw
, and
VaultClawback
to round more precisely, so vault assets can't over- or under-deliver.
Changes
VaultWithdraw
to allow a fixed-share withdrawal to move zero assets from a fully impaired vault rather than failing.
Changes the
ValidVault
invariant so
VaultSet
isn't blocked when accrued interest alone pushes
AssetsTotal
over
AssetsMaximum
.
Adds
CredentialIDs
support to
VaultWithdraw
.
Changes loan lateness, impairment, and default checks to require the due date to have strictly passed.
Exempts a loan default from freeze, deep freeze, and MPT lock on the broker-to-vault transfer.
Skips the issuer's
DefaultRipple
check for
LoanSet
,
LoanBrokerCoverWithdraw
, and
VaultWithdraw
when the recipient already holds the asset.
Prevents
AMMBid
from acquiring the auction slot at a zero or dust price on a zero-fee pool.
Changes
AMMClawback
to fully withdraw when the LP-token amount matches the holder's balance, so the last holder can be clawed back completely.
Changes
AMMClawback
to reject amounts that round to zero, bypass the reserve check, and override freeze and deep freeze on AMM trust lines.
Changes
AMMDeposit
and
AMMWithdraw
to return
tecAMM_FAILED
instead of
tefEXCEPTION
for an out-of-range amount.
Changes
OfferCreate
and
Payment
to verify a specified domain exists and to delete expired credentials during processing.
Rejects an all-zero credential ID with
temMALFORMED
.
Changes the
ValidPermissionedDEX
invariant to ignore deleted domains and require an offer to match its domain book.
Changes authorized trust lines to implicitly authorize a pseudo-account counterparty.
Changes creating a trust line that already exists to return
tecDUPLICATE
as a no-op.
Extends
asfDisallowIncomingTrustline
to also block
OfferCreate
.
Rejects NFT offers that use the currency code
XRP
for a non-XRP amount with
temBAD_CURRENCY
.
Exempts an IOU issuer from their own global freeze on NFT offers in their own currency.
Changes unauthorizing a locked MPToken to always return
tecNO_PERMISSION
.
Changes
EscrowCancel
and
EscrowFinish
to release the escrow's owner reserve before the returned or delivered amount can re-create a holding.
Changes ending a sponsorship to check that the sponsee can carry the reserve on its own afterward.
Adds distinct signing prefixes for
SponsorSignature
and
CounterpartySignature
, so a signature can no longer be moved from one role to another.
Changes
PaymentBurn
-only delegated payments to reject an amount that would cross a zero balance into a mint, unless the delegate also holds
PaymentMint
.
fixDirectoryLimit
Amendment
fixdirectorylimit
Amendment ID
41765F664A8D67FF03DDB1C1A893DE6273690BA340A6C2B07C8D29D0DD013D3A
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment removes the directory page limit. Object reserve requirements provide enough incentive to avoid creating unnecessary objects on the XRP Ledger.
fixDisallowIncomingV1
Amendment
fixDisallowIncomingV1
Amendment ID
15D61F0C6DB6A2F86BCF96F1E2444FEC54E705923339EC175BD3E517C8B3FF91
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
Yes
This amendment fixes an issue with approving trustlines after a user enables the
lsfDisallowIncomingTrustline
flag on their account.
To recreate this issue:
An issuer sets
asfRequireAuth
on their account.
The user sets
asfDisallowIncomingTrustline
on their account.
The user submits a
SetTrust
transaction to the issuer.
The issuer is unable to authorize the trustline.
With this amendment, the issuer can now authorize the trustline.
This amendment has no effect unless the
DisallowIncoming
amendment is enabled.
fixEmptyDID
Amendment
fixEmptyDID
Amendment ID
755C971C29971C9F20C6F080F2ED96F87884E40AD19554A5EBECDCEC8A1F77FE
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment adds an additional check to prevent empty DID ledger entries from being created.
With this amendment, if a transaction would create an empty DID, it returns the new error code
tecEMPTY_DID
instead.
Without this amendment, an empty DID can be created, which takes up space and counts towards the owner reserve but does nothing useful.
This amendment has no effect unless the
DID
amendment is enabled.
fixEnforceNFTokenTrustline
Amendment
fixEnforceNFTokenTrustline
Amendment ID
763C37B352BE8C7A04E810F8E462644C45AFEAD624BF3894A08E5C917CF9FF39
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
Fixes two bugs relating to the handling of NFT transfer fees and trust lines:
Adds a check to
NFTokenAcceptOffer transactions
to ensure that the minter has a trust line to accept the transfer fee. Without this amendment, the check only applies when an NFT trade offer is created, not when the offer is accepted; as a result, if a necessary trust line is removed in between creating and accepting the offer, the trust line is inappropriate re-created when the offer is accepted. With this amendment, the transaction to accept the NFT trade offer fails if the minter no longer has a trust line to accept the transfer fee. (For more detail, see
issue #4925
.)
Adjusts a check for the presence of a trust line when the minter of the NFT is also the issuer of the fungible token that would be paid as a transfer fee. Without this amendment, the
NFTokenCreateOffer transaction
fails with the result code
tecNO_LINE
if the NFT in question has a transfer fee, the offer amount is denominated in fungible tokens issued by the minter, and the account placing the offer does not have a trust line for those tokens. With the amendment, the offer can be created successfully. (For more detail, see
issue #4941
.)
fixEnforceNFTokenTrustlineV2
Amendment
fixEnforceNFTokenTrustlineV2
Amendment ID
B32752F7DCC41FB86534118FC4EEC8F56E7BD0A7DB60FD73F93F257233C08E3A
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
Fix a bug where NFT transfer fees could bypass certain limitations on receiving tokens, specifically:
Prevent an NFT issuer from receiving fungible tokens as transfer fees if the fungible tokens' issuer uses
authorized trust lines
and the NFT issuer's trust line is not authorized.
Prevent an NFT issuer from receiving fungible tokens as transfer fees on a
deep-frozen
trust line.
Without this amendment, NFT transfer fees could be paid to an NFT issuer circumventing these restrictions.
fixFillOrKill
Amendment
fixFillOrKill
Amendment ID
3318EA0CF0755AF15DAC19F2B5C5BCBFF4B78BDD57609ACCAABE2C41309B051A
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment fixes an issue introduced in the
FlowCross
amendment. Offers with the
tfFillOrKill
flag set and
tfSell
not set will fail if the exchange rate on the offer is better than, but doesn't exactly match, the order book rate.
This amendment enables the payment engine to properly handle this scenario and allow offers to cross.
This amendment has no effect unless the
FlowCross
amendment is enabled.
fixFrozenLPTokenTransfer
Amendment
fixFrozenLPTokenTransfer
Amendment ID
83FD6594FF83C1D105BD2B41D7E242D86ECB4A8220BD9AF4DA35CB0F69E39B2A
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment fixes a loophole that enabled blacklisted accounts to transfer frozen LP tokens through alternative mechanisms, such as such as payments, checks, offers, or NFTs.
With this amendment enabled, if an LP token is associated with a liquidity pool that contains at least one frozen asset, the LP token is also frozen. This means:
The holder can't send the frozen LP token to other accounts.
The holder can receive frozen LP tokens, but can't send them out (similar to frozen trust lines).
fixIncludeKeyletFields
Amendment
fixIncludeKeyletFields
Amendment ID
6143A27B71F7DAF9330ECA7C5EC3D54C8083A4FDEF7016737EEC06AB61E82EE0
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment adds fields to ledger entries in cases where those fields are part of the identifying information that forms their ledger entry ID:
Add a
Sequence
field to
Escrow
and
PayChannel
entries.
Add an
Owner
field to
SignerList
entries.
Add an
OracleDocumentID
field to
Oracle
entries.
Without this amendment, some ledger entries do not store all the data that was used to create their ledger entry ID. After this amendment is enabled, ledger entries of those types have those fields added when the ledger entry is created or modified. Ledger entries that were created before the amendment are not changed until a transaction modifies them.
The presence of a
Sequence
field on Escrow ledger entries is especially useful since you need that value to finish or cancel the escrow, and you otherwise might have to look up the sequence number of the transaction that created the escrow.
fixInnerObjTemplate
Amendment
fixInnerObjTemplate
Amendment ID
C393B3AEEBF575E475F0C60D5E4241B2070CC4D0EB6C4846B1A07508FAEFC485
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
Yes
This amendment fixes an issue with accessing the AMM
sfTradingFee
and
sfDiscountedFee
fields in the inner objects of
sfVoteEntry
and
sfAuctionSlot
.
Currently, the inner object template isn't set upon object creation. If the object contains an
soeDEFAULT
field and is initially set to the default value, accessing the field results in a
tefEXCEPTION
error in some circumstances. This amendment adds an
STObject
constructor overload that includes an additional boolean argument to set the inner object template.
fixInnerObjTemplate2
Amendment
fixInnerObjTemplate2
Amendment ID
9196110C23EA879B4229E51C286180C7D02166DA712559F634372F5264D0EC59
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment standardizes the way inner objects (
Object-type fields in the canonical binary format
) have their formats and default values enforced. This is the same type of check that the
fixInnerObjTemplate
applies to AMM-related fields, but this amendment applies to all other types of inner objects, namely:
DisabledValidator
field of the
NegativeUNL entry
.
Members of the
Majorities
array in the
Amendments entry
.
Members of the
Signers
array
of multi-signed transactions.
Members of the
SignerEntries
array of
SignerList ledger entries
.
Several parts of the
XChainBridge
amendment
:
Members of the
XChainClaimAttestations
array in
XChainOwnedClaimID ledger entries
Members of the
XChainCreateAccountAttestations
array in
XChainOwnedCreateAccountClaimID ledger entries
Members of the
XChainClaimAttestationBatch
array in
XChainAddClaimAttestation transactions
Members of the
XChainCreateAccountAttestationBatch
array in
XChainAddClaimAttestation transactions
It is believed that this change does not affect transaction processing, but it is possible that there are edge cases where it could cause an improperly formatted transaction to receive a different error. With this amendment, any such transactions would fail with a different result code such as
temMALFORMED
; without this amendment, those transactions would be expected to fail with the code
tefEXCEPTION
instead.
fixInvalidTxFlags
Amendment
fixInvalidTxFlags
Amendment ID
8EC4304A06AF03BE953EA6EDA494864F6F3F30AA002BABA35869FBB8C6AE5D52
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
Adds flag checks for
CredentialCreate
,
CredentialAccept
,
CredentialDelete
, and
SignerListSet
transactions. With this amendment enabled, these transactions will return a
temINVALID_FLAG
error if they include a flag that doesn't exist, or a contradictory combination of flags.
fixMasterKeyAsRegularKey
Amendment
fixMasterKeyAsRegularKey
Amendment ID
C4483A1896170C66C098DEA5B0E024309C60DC960DE5F01CD7AF986AA3D9AD37
Status
Loading...
Default Vote (Latest stable release)
Yes
Pre-amendment functionality retired?
Yes
Fixes a bug where accounts can set their regular key pair to match their master key pair, but cannot send transactions signed by the key if the master key is disabled.
Without this fix, a user can unintentionally
blackhole
their account by setting the regular key to match the master key, then disabling the master key. The network rejects transactions signed with the both-master-and-regular key pair because the code interprets them as being signed with the disabled master key before it recognizes that they are signed by the currently-enabled regular key.
With this amendment enabled, a SetRegularKey transaction cannot set the regular key to match the master key; such a transaction results in the transaction code
temBAD_REGKEY
. Additionally, this amendment changes the signature verification code so that accounts which
already
have their regular key set to match their master key can send transactions successfully using the key pair.
fixMPTDeliveredAmount
Amendment
fixMPTDeliveredAmount
Amendment ID
AB8D932A5F338903FE5BCBD80B611FFED70839ABA3170E9CE01D947C0EDEDCF2
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment adds missing
DeliveredAmount
and
delivered_amount
metadata fields from direct MPT
Payment
transactions. Without this amendment, direct MPT payments deliver the full amount but do not have the metadata fields to summarize how much was delivered.
fixNFTokenDirV1
Amendment
fixNFTokenDirV1
Amendment ID
0285B7E5E08E1A8E4C15636F0591D87F73CB6A7B6452A932AD72BBC8E5D1CBE3
Status
Loading...
Default Vote (Latest stable release)
N/A
Pre-amendment functionality retired?
N/A
This amendment fixes an off-by-one error that occurred in some corner cases when determining which
NFTokenPage
a
NFToken
object belongs on. It also adjusts the constraints of
NFTokenPage
invariant checks, so that certain error cases fail with a suitable error code such as
tecNO_SUITABLE_TOKEN_PAGE
instead of failing with a
tecINVARIANT_FAILED
error code.
This amendment is obsolete because its effects are included as part of
NonFungibleTokensV1_1
.
fixNFTokenNegOffer
Amendment
fixNFTokenNegOffer
Amendment ID
36799EA497B1369B170805C078AEFE6188345F9B3E324C21E9CA3FF574E3C3D6
Status
Loading...
Default Vote (Latest stable release)
N/A
Pre-amendment functionality retired?
N/A
This amendment fixes a bug in the
NonFungibleTokensV1
amendment code where NFTs could be traded for negative amounts of money. Without this fix, users could place and accept an offer to buy or sell a
NFToken
for a negative amount of money, which resulted in the person "buying" the NFT also receiving money from the "seller". With this amendment, NFT offers for negative amounts are considered invalid.
This amendment is obsolete because its effects are included as part of
NonFungibleTokensV1_1
.
fixNFTokenPageLinks
Amendment
fixNFTokenPageLinks
Amendment ID
C7981B764EC4439123A86CC7CCBA436E9B3FF73B3F10A0AE51882E404522FC41
Status
Loading...
Default Vote (Latest stable release)
No
Pre-amendment functionality retired?
No
This amendment fixes a bug that can cause NFT directories to have missing links in the middle of the directory chain. It also introduces invariant checks that can prevent similar types of corruption from occurring in the future, and introduces a new transaction type:
LedgerStateFix transactions
can be used to repair corruptions in ledger data. With this amendment enabled, you can use a LedgerStateFix transaction to repair a broken link in NFT directories. In the case that future bugs cause new types of ledger corruption, this transaction type can be extended to repair the other types of corruption as well.
Without this amendment, it is possible in specific circumstances to delete the last page of an NFT directory, then later create a new last page that is missing a link to the previous page. For a detailed description of the scenario that can cause this problem, see
PR #4945
. With this amendment, the bug that caused that corruption is fixed; additionally, a new invariant check ensures that other bugs cannot remove the last page inappropriately.
fixNFTokenRemint
Amendment
fixNFTokenRemint
Amendment ID
AE35ABDEFBDE520372B31C957020B34A7A4A9DC3115A69803A44016477C84D6E
Status
Loading...
Default Vote (Latest stable release)
N/A
Pre-amendment functionality retired?
Yes
Amendment
fixNFTokenRemint
would change the way NFT sequence numbers are constructed to prevent a situation where the same NFT could be minted more than once with the same sequence number, creating a possible collision scenario. This amendment would change the construction of NFT sequence numbers to:
Create a new
AccountRoot
field,
FirstNFTSequence
, that stays constant over time. This field is set to the current account sequence when the account issues its first NFT. Otherwise, it is not set.
Compute the sequence of a newly minted NFT as
FirstNFTSequence
+
MintedNFTokens
(after which,
MintedNFTokens
increments by 1).
The amendment also introduces a new account deletion restriction. An account can only be deleted if
FirstNFTSequence
+
MintedNFTokens
+ 256 is less than the current ledger sequence (256 was chosen as a heuristic restriction for account deletion and already exists in the account deletion constraint). Without this restriction, an NFT could still be re-minted under certain conditions.
Warning
This is a
breaking change
for projects프로젝트로 돌아가기