Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers EIP7092, a proposed ERC standard intended to simplify bond tokenization while retaining the characteristics of traditional bonds. The standard aims to streamline operations such as issuance, transfers, and redemption, reducing operational costs. Its optional cross-chain functionality also supports transferring and managing bonds across different blockchains.
This explanation translates, summarizes, and expands on the following specification.
I have also written about other EIPs.
Overview
This proposal concerns fixed-income financial bonds. It defines the following principal features.
- Features that facilitate bond issuance in the primary market, simplifying the issuance of new bonds.
- Features that enable secondary-market trading of existing bonds, supporting their liquidity.
- Cross-chain functionality for bond operations and management across multiple blockchains, enabling transfers and management between chains.
The proposal introduces a fixed-income bond standard designed to improve convenience and flexibility throughout issuance, circulation, and management. Supporting multiple blockchains may contribute to the development and efficiency of bond markets.
Motivation
The proposal addresses the following concerns.
Fixed-income financial instruments are an asset class widely used by companies and other organizations to raise capital. However, transitioning to tokenized bonds presents challenges.
The proposal argues that the existing ERC3475 standard introduces unfamiliar concepts and may lead to unnecessary gas consumption. These factors can create barriers to tokenization.
For more about ERC3475, see the following article.
[ERC3475] Tokenizing Bonds for Issuance and Redemption
ERC3475 does not prescribe dedicated named variables for parameters such as coupon, maturity date, and principal. Developers therefore need to track which metadata fields correspond to which parameters, complicating implementation.
The authors identify conceptual complexity and implementation difficulty as challenges associated with bond tokenization. They argue that these factors hinder the tokenization of fixed-income products.
This proposal seeks to address those challenges and promote bond tokenization by introducing a simpler, more readily implementable standard.
Specification
Code
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
/**
* @title ERC-7092 Financial Bonds Standard
*/
interface IERC7092 /** is ERC165 */ {
// events
/**
* @notice MUST be emitted when bond tokens are transferred, issued or redeemed, except during contract creation
* @param _from the account that owns bonds
* @param _to the account that receives the bond
* @param _amount amount of bond tokens to be transferred
*/
event Transfer(address indexed _from, address indexed _to, uint256 _amount);
/**
* @notice MUST be emitted when an account is approved or when the allowance is decreased
* @param _owner bond token's owner
* @param _spender the account to be allowed to spend bonds
* @param _amount amount of bond tokens allowed by _owner to be spent by `_spender`
* Or amount of bond tokens to decrease allowance from `_spender`
*/
event Approval(address indexed _owner, address indexed _spender, uint256 _amount);
/**
* @notice MUST be emitted when multiple bond tokens are transferred, issued or redeemed, with the exception being during contract creation
* @param _from array of bondholders accounts
* @param _to array of accounts to transfer bonds to
* @param _amount array of amounts of bond tokens to be transferred
*
** OPTIONAL - interfaces and other contracts MUST NOT expect this function to be present. MUST be emitted in `batchTransfer` and `batchTransferFrom` functions
*/
event TransferBatch(address[] _from, address[] _to, uint256[] _amount);
/**
* @notice MUST be emitted when multiple accounts are approved or when the allowance is decreased from multiple accounts
* @param _owner bondholder account
* @param _spender array of accounts to be allowed to spend bonds, or to decrase the allowance from
* @param _amount array of amounts of bond tokens allowed by `_owner` to be spent by multiple accounts in `_spender`.
*
** OPTIONAL - interfaces and other contracts MUST NOT expect this function to be present. MUST be emitted in `batchApprove` and `batchDecreaseAllowance` functions
*/
event ApprovalBatch(address indexed _owner, address[] _spender, uint256[] _amount);
// getter functions
/**
* @notice Returns the bond isin
*/
function isin() external view returns(string memory);
/**
* @notice Returns the bond name
*/
function name() external view returns(string memory);
/**
* @notice Returns the bond symbol
* It is RECOMMENDED to represent the symbol as a combination of the issuer Issuer'shorter name and the maturity date
* Ex: If a company named Green Energy issues bonds that will mature on october 25, 2030, the bond symbol could be `GE30` or `GE2030` or `GE102530`
*/
function symbol() external view returns(string memory);
/**
* @notice Returns the bond currency. This is the contract address of the token used to pay and return the bond principal
*/
function currency() external view returns(address);
/**
* @notice Returns the bond denominiation. This is the minimum amount in which the Bonds may be issued. It must be expressend in unit of the principal currency
* ex: If the denomination is equal to 1,000 and the currency is USDC, then the bond denomination is equal to 1,000 USDC
*/
function denomination() external view returns(uint256);
/**
* @notice Returns the issue volume (total debt amount). It is RECOMMENDED to express the issue volume in denomination unit.
*/
function issueVolume() external view returns(uint256);
/**
* @notice Returns the bond interest rate. It is RECOMMENDED to express the interest rate in basis point unit.
* 1 basis point = 0.01% = 0.0001
* ex: if interest rate = 5%, then coupon() => 500 basis points
*/
function couponRate() external view returns(uint256);
/**
* @notice Returns the date when bonds were issued to investors. This is a Unix Timestamp like the one returned by block.timestamp
*/
function issueDate() external view returns(uint256);
/**
* @notice Returns the bond maturity date, i.e, the date when the pricipal is repaid. This is a Unix Timestamp like the one returned by block.timestamp
* The maturity date MUST be greater than the issue date
*/
function maturityDate() external view returns(uint256);
/**
* @notice Returns the principal of an account. It is RECOMMENDED to express the principal in the bond currency unit (USDC, DAI, etc...)
* @param _account account address
*/
function principalOf(address _account) external view returns(uint256);
/**
* @notice Returns the amount of tokens the `_spender` account has been authorized by the `_owner``
* acount to manage their bonds
* @param _owner the bondholder address
* @param _spender the address that has been authorized by the bondholder
*/
function allowance(address _owner, address _spender) external view returns(uint256);
// setter functions
/**
* @notice Authorizes `_spender` account to manage `_amount`of their bond tokens
* @param _spender the address to be authorized by the bondholder
* @param _amount amount of bond tokens to approve
*/
function approve(address _spender, uint256 _amount) external returns(bool);
/**
* @notice Lowers the allowance of `_spender` by `_amount`
* @param _spender the address to be authorized by the bondholder
* @param _amount amount of bond tokens to remove from allowance
*/
function decreaseAllowance(address _spender, uint256 _amount) external returns(bool);
/**
* @notice Moves `_amount` bonds to address `_to`. This methods also allows to attach data to the token that is being transferred
* @param _to the address to send the bonds to
* @param _amount amount of bond tokens to transfer
* @param _data additional information provided by the token holder
*/
function transfer(address _to, uint256 _amount, bytes calldata _data) external returns(bool);
/**
* @notice Moves `_amount` bonds from an account that has authorized the caller through the approve function
* This methods also allows to attach data to the token that is being transferred
* @param _from the bondholder address
* @param _to the address to transfer bonds to
* @param _amount amount of bond tokens to transfer.
* @param _data additional information provided by the token holder
*/
function transferFrom(address _from, address _to, uint256 _amount, bytes calldata _data) external returns(bool);
// batch functions
/**
* @notice Authorizes multiple spender accounts to manage a specified `_amount` of the bondholder tokens
* @param _spender array of accounts to be authorized by the bondholder
* @param _amount array of amounts of bond tokens to approve
*
* OPTIONAL - interfaces and other contracts MUST NOT expect these values to be present. The method is used to improve usability.
*/
function batchApprove(address[] calldata _spender, uint256[] calldata _amount) external returns(bool);
/**
* @notice Decreases the allowance of multiple spenders by corresponding amounts in `_amount`
* @param _spender array of accounts to be authorized by the bondholder
* @param _amount array of amounts of bond tokens to decrease the allowance from
*
* OPTIONAL - interfaces and other contracts MUST NOT expect this function to be present. The method is used to decrease token allowance.
*/
function batchDecreaseAllowance(address[] calldata _spender, uint256[] calldata _amount) external returns(bool);
/**
* @notice Transfers multiple bonds with amounts specified in the array `_amount` to the corresponding accounts in the array `_to`, with the option to attach additional data
* @param _to array of accounts to send the bonds to
* @param _amount array of amounts of bond tokens to transfer
* @param _data array of additional information provided by the token holder
*
* OPTIONAL - interfaces and other contracts MUST NOT expect this function to be present.
*/
function batchTransfer(address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data) external returns(bool);
/**
* @notice Transfers multiple bonds with amounts specified in the array `_amount` to the corresponding accounts in the array `_to` from an account that have been authorized by the `_from` account
* This method also allows to attach data to tokens that are being transferred
* @param _from array of bondholder accounts
* @param _to array of accounts to transfer bond tokens to
* @param _amount array of amounts of bond tokens to transfer.
* @param _data array of additional information provided by the token holder
*
** OPTIONAL - interfaces and other contracts MUST NOT expect this function to be present.
*/
function batchTransferFrom(address[] calldata _from, address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data) external returns(bool);
}Transfer
event Transfer(address indexed _from, address indexed _to, uint256 _amount);Overview Event emitted when bond tokens are transferred, issued, or redeemed.
Details The event must be emitted when bond tokens are transferred, issued, or redeemed, except during contract creation.
Parameters
_from- Address of the account holding the bonds.
_to- Address of the account receiving the bonds.
_amount- Amount of bond tokens transferred.
Approval
event Approval(address indexed _owner, address indexed _spender, uint256 _amount);Overview Event emitted when an account is granted an allowance or its allowance is reduced.
Details
The event must be emitted when an account is approved or the allowance granted to _spender is reduced.
Parameters
_owner- Address of the bond token owner.
_spender- Address of the account authorized to manage the bonds.
_amount- Amount of bond tokens that
_ownerauthorizes_spenderto manage, or the amount associated with the allowance reduction as described by the specification.
- Amount of bond tokens that
TransferBatch
event TransferBatch(address[] _from, address[] _to, uint256[] _amount);Overview Event emitted when multiple bond tokens are transferred, issued, or redeemed.
Details
The event must be emitted when multiple bond tokens are transferred, issued, or redeemed, except during contract creation.
The batchTransfer and batchTransferFrom functions must emit this event.
Parameters
_from- Array of bond holder account addresses.
_to- Array of recipient account addresses.
_amount- Array of bond token amounts transferred.
ApprovalBatch
event ApprovalBatch(address indexed _owner, address[] _spender, uint256[] _amount);Overview Event emitted when multiple accounts are approved or their allowances are reduced.
Details
The event must be emitted when multiple accounts are approved or their allowances are reduced.
The batchApprove and batchDecreaseAllowance functions must emit this event.
Parameters
_owner- Bond holder account address.
_spender- Array of account addresses receiving approvals or allowance reductions.
_amount- Array of bond token amounts that
_ownerauthorizes the corresponding accounts in_spenderto manage.
- Array of bond token amounts that
isin
function isin() external view returns(string memory);Overview Returns the bond's ISIN code.
Details Returns the bond's International Securities Identification Number (ISIN). An ISIN is an internationally standardized securities identifier.
Return value
string memory- Bond ISIN.
name
function name() external view returns(string memory);Overview Returns the bond name.
Details This function returns the name of the bond.
Return value
string memory- Bond name.
symbol
function symbol() external view returns(string memory);Overview Returns the bond symbol.
Details
This function returns the symbol of the bond.
The specification recommends combining an abbreviated issuer name with the maturity date.
For example, if Green Energy issues a bond maturing on October 25, 2030, its symbol could be GE30, GE2030, or GE102530.
Return value
string memory- Bond symbol.
currency
function currency() external view returns(address);Overview Returns the bond's principal currency.
Details Returns the contract address of the token used for principal payments and repayments.
Return value
address- Contract address of the bond's principal currency token.
denomination
function denomination() external view returns(uint256);Overview Returns the bond denomination.
Details This function returns the minimum denomination of the bond. The denomination must be expressed in the units of the principal currency. For example, if the denomination is 1,000 and the currency is USDC, the bond's denomination is 1,000 USDC.
Return value
uint256- Bond denomination.
issueVolume
function issueVolume() external view returns(uint256);Overview Returns the bond issue volume (total amount of debt).
Details This function returns the bond issue volume (total amount of debt). The specification recommends expressing the issue volume in terms of the denomination.
Return value
uint256- Bond issue volume.
couponRate
function couponRate() external view returns(uint256);Overview Returns the bond coupon rate.
Details
This function returns the coupon rate of the bond.
Expressing the rate in basis points is recommended.
One basis point equals 0.01%, or 0.0001.
For example, for a 5% coupon rate, couponRate returns 500 basis points.
Return value
uint256- Bond coupon rate in basis points.
issueDate
function issueDate() external view returns(uint256);Overview Returns the date on which the bond was issued to investors.
Details
This function returns the bond's issue date.
The date is expressed as a Unix timestamp, like the value returned by block.timestamp.
Return value
uint256- Bond issue date (Unix timestamp).
maturityDate
function maturityDate() external view returns(uint256);Overview Returns the bond maturity date.
Details
Returns the bond's maturity date, when principal is due for repayment.
The date is expressed as a Unix timestamp, like the value returned by block.timestamp.
The maturity date must be later than the issue date.
Return value
uint256- Bond maturity date (Unix timestamp).
principalOf
function principalOf(address _account) external view returns(uint256);Overview Returns the principal associated with an account.
Details Returns the principal amount associated with the specified account. Expressing principal in the bond's currency units, such as USDC or DAI, is recommended.
Parameters
_account- Account address.
Return value
uint256- Account principal.
allowance
function allowance(address _owner, address _spender) external view returns(uint256);Overview
Returns the bond amount that _owner has authorized _spender to manage.
Details
This function returns the amount of bonds that _owner has approved _spender to manage.
Parameters
_owner- Bond holder address.
_spender- Address authorized by the bond holder.
Return value
uint256- Bond amount authorized by
_ownerfor_spender.
- Bond amount authorized by
approve
function approve(address _spender, uint256 _amount) external returns(bool);Overview
Authorizes _spender to manage _amount of bond tokens.
Details
Allows a bond holder to grant _spender authority over the specified _amount of bond tokens.
Parameters
_spender- Address to authorize.
_amount- Bond token amount to approve.
Return value
booltrueif approval succeeds; otherwise,false.
decreaseAllowance
function decreaseAllowance(address _spender, uint256 _amount) external returns(bool);Overview
Decreases the allowance granted to _spender by _amount.
Details
Allows a bond holder to reduce the allowance of _spender by the specified _amount.
Parameters
_spender- Address to authorize.
_amount- Bond token amount to subtract from the allowance.
Return value
booltrueif the allowance reduction succeeds; otherwise,false.
transfer
function transfer(address _to, uint256 _amount, bytes calldata _data) external returns(bool);Overview
Transfers _amount of bonds to _to.
Details
This function transfers the specified _amount of bonds to _to.
It also allows additional data to be attached to the token transfer.
Parameters
_to- Bond recipient address.
_amount- Bond token amount to transfer.
_data- Additional information supplied by the token holder.
Return value
booltrueif the transfer succeeds; otherwise,false.
transferFrom
function transferFrom(address _from, address _to, uint256 _amount, bytes calldata _data) external returns(bool);Overview
Transfers _amount of bonds from an account that has authorized the caller through approve.
Details The function moves the specified bond amount from an account that has granted the caller approval. It also allows additional data to be attached to the token transfer.
Parameters
_from- Bond holder address.
_to- Bond recipient address.
_amount- Bond token amount to transfer.
_data- Additional information supplied by the token holder.
Return value
booltrueif the transfer succeeds; otherwise,false.
batchApprove
function batchApprove(address[] calldata _spender, uint256[] calldata _amount) external returns(bool);Overview
Authorizes multiple accounts in _spender to manage the corresponding _amount values of a bond holder's tokens.
Details Allows the bond holder to grant multiple spenders authority over the corresponding amounts of bond tokens. This batch operation improves usability.
Parameters
_spender- Array of account addresses to authorize.
_amount- Array of bond token amounts to approve.
Return value
booltrueif approval succeeds; otherwise,false.
batchDecreaseAllowance
function batchDecreaseAllowance(address[] calldata _spender, uint256[] calldata _amount) external returns(bool);Overview
Decreases the allowances of multiple accounts in _spender by the corresponding _amount values.
Details Reduces the allowances granted to multiple spenders by the corresponding amounts. This function is used to decrease token allowances in a batch.
Parameters
_spender- Array of account addresses to authorize.
_amount- Array of bond token amounts to subtract from the allowances.
Return value
booltrueif the allowance reduction succeeds; otherwise,false.
batchTransfer
function batchTransfer(address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data) external returns(bool);Overview
Transfers multiple bond amounts specified in _amount to the corresponding accounts in _to, with optional additional data.
Details
This function transfers the bond amounts in _amount to the corresponding accounts in _to.
It also allows the token holder to attach additional data.
Parameters
_to- Array of recipient account addresses.
_amount- Array of bond token amounts to transfer.
_data- Array of additional information supplied by the token holder.
Return value
booltrueif the transfer succeeds; otherwise,false.
batchTransferFrom
function batchTransferFrom(address[] calldata _from, address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data) external returns(bool);Overview
Transfers the specified bond amounts from the accounts in _from to the corresponding accounts in _to, using the caller's granted authority.
Details
The function transfers the corresponding bond amounts from accounts in _from that have authorized the caller to accounts in _to.
Additional data can also be attached to the transferred tokens.
Parameters
_from- Array of bond holder accounts.
_to- Array of bond recipient accounts.
_amount- Array of bond token amounts to transfer.
_data- Array of additional information supplied by the token holder.
Return value
booltrueif the transfer succeeds; otherwise,false.
Additional bond parameters interface
The proposal defines additional bond parameters through the IERC7092ESG interface in the quoted version.
This interface is optional and can improve usability, but is not mandatory for a contract implementing the proposal.
The additional parameters are described below.
currencyOfCoupon
Identifies the currency used to pay coupons (interest payments). This currency may differ from the currency used to repay principal.
couponType
Specifies the type of interest rate that the issuer agrees to pay investors. Possible types include zero coupon, fixed rate, and floating rate.
couponFrequency
Specifies how frequently the bond pays interest to bondholders. Typical frequencies include annual, semiannual, quarterly, and monthly payments.
dayCountBasis
Used to calculate accrued interest between two coupon payment dates or over another specified interval. Day-count conventions include Actual/Actual, 30/360, Actual/360, Actual/365, and 30/365.
A day-count convention determines how days are counted when calculating interest on a bond.
Actual/Actual
Calculations use the actual number of elapsed days and the applicable actual year length (366 days for a leap year and 365 for a common year, depending on the Actual/Actual variant). This reflects actual calendar intervals, but the calculation can be more complex.
30/360
Calculations assume 30 days per month and 360 days per year. Although this differs from actual calendar days, the convention is widely used because it is relatively simple and consistent. It is commonly used for US corporate and agency bonds.
Actual/360
The actual number of elapsed days is divided by 360. Using a 360-day denominator produces slightly higher accrued interest than a 365-day denominator for the same annual rate and elapsed day count. It is commonly used for short-term debt and money market instruments in the United States.
Actual/365
The actual number of elapsed days is divided by 365. The fixed denominator remains 365 even in leap years. It is used in markets including the United Kingdom and parts of Europe.
30/365
Calculations assume 30 days per month and 365 days per year. As with 30/360, this differs from actual calendar days but simplifies calculations and promotes consistency. It is less common but is used for some bonds.
Day-count conventions vary by bond market and issuer. Investors need to understand how interest is calculated when comparing yields across bonds.
These additional parameters allow the characteristics of a bond to be described in greater detail and provide clearer information to investors. Standardizing them is also intended to make comparisons across issuers and bonds easier and improve market efficiency.
Code
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
interface IERC7092ESG /** is ERC165 */ {
/**
* @notice Returns the number of decimals used by the bond. For example, if it returns `10`, it means that the token amount MUST be multiplied by 10000000000 to get the standard representation.
*/
function decimals() external view returns(uint8);
/**
* @notice Rreturns the coupon currency, which is represented by the contract address of the token used to pay coupons. It can be the same as the one used for the principal
*/
function currencyOfCoupon() external view returns(address);
/**
* @notice Returns the coupon type
* For example, 0 can denote Zero coupon, 1 can denote Fixed Rate, 2 can denote Floating Rate, and so on
*/
function couponType() external view returns(uint8);
/**
* @notice Returns the coupon frequency, i.e. the number of times coupons are paid in a year.
*/
function couponFrequency() external view returns(uint256);
/**
* @notice Returns the day count basis
* For example, 0 can denote actual/actual, 1 can denote actual/360, and so on
*/
function dayCountBasis() external view returns(uint8);
}decimals
function decimals() external view returns(uint8);Overview Returns the number of decimal places used by the bond.
Details
This function returns the bond's decimal precision.
For example, a return value of 10 means that the token amount is multiplied by 10000000000 to obtain its scaled integer representation.
Return value
uint8- Number of decimal places used by the bond.
currencyOfCoupon
function currencyOfCoupon() external view returns(address);Overview Returns the contract address of the token used for coupon payments.
Details This function returns the contract address of the token used to pay interest. It may be the same token used for principal.
Return value
address- Contract address of the coupon payment token.
couponType
function couponType() external view returns(uint8);Overview Returns the coupon type.
Details
This function returns the type of coupon.
For example, 0 may represent zero coupon, 1 fixed rate, and 2 floating rate.
Return value
uint8- Numeric coupon type identifier.
couponFrequency
function couponFrequency() external view returns(uint256);Overview Returns the coupon payment frequency.
Details Returns the number of coupon payments made per year.
Return value
uint256- Number of coupon payments per year.
dayCountBasis
function dayCountBasis() external view returns(uint8);Overview Returns the day-count convention.
Details
This function returns the day-count convention used by the bond.
For example, 0 may represent Actual/Actual and 1 Actual/360.
Return value
uint8- Numeric day-count convention identifier.
Cross-chain interface
The standard allows the optional IERC7092CrossChain interface to be implemented for cross-chain bond token management.
Applications can use this optional interface to initiate cross-chain transactions.
A function initiating a cross-chain transaction must explicitly specify the following two parameters.
-
destinationChainID- Specifies the destination chain identifier.
- Identifies the blockchain to which the transaction is directed.
-
destinationContract- Specifies the target smart contract.
- Identifies the smart contract on the destination chain that is intended to process the operation.
Explicitly defining these parameters improves the clarity of cross-chain transaction routing. The destination chain and target contract are explicitly identified, although secure execution still depends on the underlying cross-chain implementation.
The IERC7092CrossChain interface aims to improve interoperability and liquidity in bond markets by supporting transfers and management across blockchains.
This may broaden the available options for investors and financing opportunities for issuers.
However, implementing the interface is optional and is not required for every bond contract. The need for cross-chain functionality depends on the individual use case.
Code
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
interface IERC7092CrossChain /** is ERC165 */ {
// events
/**
* @notice MUST be emitted when bond tokens are transferred or redeemed in a cross-chain transaction
* @param _from bondholder account
* @param _to account the transfer bond tokens to
* @param _amount amount of bond tokens to be transferred
* @param _destinationChainID The unique ID that identifies the destination Chain
*/
event CrossChainTransfer(address indexed _from, address indexed _to, uint256 _amount, bytes32 _destinationChainID);
/**
* @notice MUST be emitted when several bond tokens are transferred or redeemed in a cross-chain transaction
* @param _from array of bondholders accounts
* @param _to array of accounts that receive the bond
* @param _amount array of amount of bond tokens to be transferred
* @param _destinationChainID array of unique IDs that identify the destination Chain
*/
event CrossChainTransferBatch(address[] _from, address[] _to, uint256[] _amount, bytes32[] _destinationChainID);
/**
* @notice MUST be emitted when an account is approved to spend the bondholder's tokens in a different chain than the current chain
* @param _owner the bondholder account
* @param _spender the account to be allowed to spend bonds
* @param _amount amount of bond tokens allowed by `_owner` to be spent by `_spender`
* @param _destinationChainID The unique ID that identifies the destination Chain
*/
event CrossChainApproval(address indexed _owner, address indexed _spender, uint256 _amount, bytes32 _destinationChainID);
/**
* @notice MUST be emitted when multiple accounts in the array `_spender` are approved or when the allowances of multiple accounts in the array `_spender` are reduced on the destination chain which MUST be different than the current chain
* @param _owner bond token's owner
* @param _spender array of accounts to be allowed to spend bonds
* @param _amount array of amount of bond tokens allowed by _owner to be spent by _spender
* @param _destinationChainID array of unique IDs that identify the destination Chain
*/
event CrossChainApprovalBatch(address indexed _owner, address[] _spender, uint256[] _amount, bytes32[] _destinationChainID);
// functions
/**
* @notice Authorizes the `_spender` account to manage a specified `_amount`of the bondholder bond tokens on the destination Chain
* @param _spender account to be authorized by the bondholder
* @param _amount amount of bond tokens to approve
* @param _destinationChainID The unique ID that identifies the destination Chain.
* @param _destinationContract The smart contract to interact with in the destination Chain
*/
function crossChainApprove(address _spender, uint256 _amount, bytes32 _destinationChainID, address _destinationContract) external returns(bool);
/**
* @notice Authorizes multiple spender accounts in `_spender` to manage specified amounts in `_amount` of the bondholder tokens on the destination chain
* @param _spender array of accounts to be authorized by the bondholder
* @param _amount array of amounts of bond tokens to approve
* @param _destinationChainID array of unique IDs that identifies the destination Chain.
* @param _destinationContract array of smart contracts to interact with in the destination Chain in order to Deposit or Mint tokens that are transferred.
*/
function crossChainBatchApprove(address[] calldata _spender, uint256[] calldata _amount, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);
/**
* @notice Decreases the allowance of `_spender` by a specified `_amount` on the destination Chain
* @param _spender the address to be authorized by the bondholder
* @param _amount amount of bond tokens to remove from allowance
* @param _destinationChainID The unique ID that identifies the destination Chain.
* @param _destinationContract The smart contract to interact with in the destination Chain in order to Deposit or Mint tokens that are transferred.
*/
function crossChainDecreaseAllowance(address _spender, uint256 _amount, bytes32 _destinationChainID, address _destinationContract) external returns(bool);
/**
* @notice Decreases the allowance of multiple spenders in `_spender` by corresponding amounts specified in the array `_amount` on the destination chain
* @param _spender array of accounts to be authorized by the bondholder
* @param _amount array of amounts of bond tokens to decrease the allowance from
* @param _destinationChainID array of unique IDs that identifies the destination Chain.
* @param _destinationContract array of smart contracts to interact with in the destination Chain in order to Deposit or Mint tokens that are transferred.
*/
function crossChainBatchDecreaseAllowance(address[] calldata _spender, uint256[] calldata _amount, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);
/**
* @notice Moves `_amount` bond tokens to the address `_to` from the current chain to another chain (e.g., moving tokens from Ethereum to Polygon).
* This methods also allows to attach data to the token that is being transferred
* @param _to account to send bond tokens to
* @param _amount amount of bond tokens to transfer
* @param _data additional information provided by the bondholder
* @param _destinationChainID The unique ID that identifies the destination Chain.
* @param _destinationContract The smart contract to interact with in the destination Chain in order to Deposit or Mint bond tokens that are transferred.
*/
function crossChainTransfer(address _to, uint256 _amount, bytes calldata _data, bytes32 _destinationChainID, address _destinationContract) external returns(bool);
/**
* @notice Transfers multiple bond tokens with amounts specified in the array `_amount` to the corresponding accounts in the array `_to` from the current chain to another chain (e.g., moving tokens from Ethereum to Polygon).
* This methods also allows to attach data to the token that is being transferred
* @param _to array of accounts to send the bonds to
* @param _amount array of amounts of bond tokens to transfer
* @param _data array of additional information provided by the bondholder
* @param _destinationChainID array of unique IDs that identify the destination Chains.
* @param _destinationContract array of smart contracts to interact with in the destination Chains in order to Deposit or Mint bond tokens that are transferred.
*/
function crossChainBatchTransfer(address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);
/**
* @notice Transfers `_amount` bond tokens from the `_from`account to the `_to` account from the current chain to another chain. The caller must be approved by the `_from` address.
* This methods also allows to attach data to the token that is being transferred
* @param _from the bondholder address
* @param _to the account to transfer bonds to
* @param _amount amount of bond tokens to transfer
* @param _data additional information provided by the token holder
* @param _destinationChainID The unique ID that identifies the destination Chain.
* @param _destinationContract The smart contract to interact with in the destination Chain in order to Deposit or Mint tokens that are transferred.
*/
function crossChainTransferFrom(address _from, address _to, uint256 _amount, bytes calldata _data, bytes32 _destinationChainID, address _destinationContract) external returns(bool);
/**
* @notice Transfers several bond tokens with amounts specified in the array `_amount` from accounts in the array `_from` to accounts in the array `_to` from the current chain to another chain.
* The caller must be approved by the `_from` accounts to spend the corresponding amounts specified in the array `_amount`
* This methods also allows to attach data to the token that is being transferred
* @param _from array of bondholder addresses
* @param _to array of accounts to transfer bonds to
* @param _amount array of amounts of bond tokens to transfer
* @param _data array of additional information provided by the token holder
* @param _destinationChainID array of unique IDs that identifies the destination Chain.
* @param _destinationContract array of smart contracts to interact with in the destination Chain in order to Deposit or Mint tokens that are transferred.
*/
function crossChainBatchTransferFrom(address[] calldata _from, address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);
}CrossChainTransfer
event CrossChainTransfer(address indexed _from, address indexed _to, uint256 _amount, bytes32 _destinationChainID);Overview Event emitted when bond tokens are transferred or redeemed through a cross-chain transaction.
Details The event must be emitted when bond tokens are transferred or redeemed through a cross-chain transaction.
Parameters
_from- Bond holder account address.
_to- Address of the account receiving the bond tokens.
_amount- Amount of bond tokens transferred.
_destinationChainID- Unique identifier of the destination chain.
CrossChainTransferBatch
event CrossChainTransferBatch(address[] _from, address[] _to, uint256[] _amount, bytes32[] _destinationChainID);Overview Event emitted when multiple bond tokens are transferred or redeemed through a cross-chain transaction.
Details The event must be emitted when multiple bond tokens are transferred or redeemed through a cross-chain transaction.
Parameters
_from- Array of bond holder account addresses.
_to- Array of account addresses receiving the bonds.
_amount- Array of bond token amounts transferred.
_destinationChainID- Array of unique destination chain identifiers.
CrossChainApproval
event CrossChainApproval(address indexed _owner, address indexed _spender, uint256 _amount, bytes32 _destinationChainID);Overview Event emitted when an account is approved to manage a bond holder's tokens on a chain other than the current chain.
Details The event must be emitted when an account receives approval to manage a bond holder's tokens on another chain.
Parameters
_owner- Bond holder account address.
_spender- Address of the account authorized to manage bonds.
_amount- Amount of bond tokens that
_ownerauthorizes_spenderto manage.
- Amount of bond tokens that
_destinationChainID- Unique identifier of the destination chain.
CrossChainApprovalBatch
event CrossChainApprovalBatch(address indexed _owner, address[] _spender, uint256[] _amount, bytes32[] _destinationChainID);Overview
Event emitted when multiple accounts in _spender receive approval or their allowances are reduced on destination chains other than the current chain.
Details
The event must be emitted when multiple accounts in _spender are approved or their allowances are reduced on another chain.
Parameters
_owner- Address of the bond token owner.
_spender- Array of account addresses authorized to manage bonds.
_amount- Array of bond token amounts that
_ownerauthorizes the corresponding accounts in_spenderto manage.
- Array of bond token amounts that
_destinationChainID- Array of unique destination chain identifiers.
crossChainApprove
function crossChainApprove(address _spender, uint256 _amount, bytes32 _destinationChainID, address _destinationContract) external returns(bool);Overview
Grants _spender authority over _amount of a bond holder's bond tokens on the destination chain.
Details This function authorizes the specified spender to manage the specified amount of bond tokens on the destination chain.
Parameters
_spender- Address of the account authorized by the bond holder.
_amount- Bond token amount to approve.
_destinationChainID- Unique identifier of the destination chain.
_destinationContract- Address of the smart contract to interact with on the destination chain.
Return value
booltrueif approval succeeds; otherwise,false.
crossChainBatchApprove
function crossChainBatchApprove(address[] calldata _spender, uint256[] calldata _amount, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);Overview
Grants multiple accounts in _spender authority over the corresponding _amount values of a bond holder's tokens on destination chains.
Details This function authorizes multiple spenders to manage the corresponding bond token amounts on the destination chains.
Parameters
_spender- Array of account addresses authorized by the bond holder.
_amount- Array of bond token amounts to approve.
_destinationChainID- Array of unique destination chain identifiers.
_destinationContract- Array of smart contracts to interact with on destination chains, described in the original source as contracts for depositing or minting transferred tokens.
Return value
booltrueif approval succeeds; otherwise,false.
crossChainDecreaseAllowance
function crossChainDecreaseAllowance(address _spender, uint256 _amount, bytes32 _destinationChainID, address _destinationContract) external returns(bool);Overview
Decreases the allowance of _spender on the destination chain by _amount.
Details This function reduces the spender's allowance on the destination chain by the specified amount.
Parameters
_spender- Address authorized by the bond holder.
_amount- Bond token amount to subtract from the allowance.
_destinationChainID- Unique identifier of the destination chain.
_destinationContract- Smart contract to interact with on the destination chain.
Return value
booltrueif the allowance reduction succeeds; otherwise,false.
crossChainBatchDecreaseAllowance
function crossChainBatchDecreaseAllowance(address[] calldata _spender, uint256[] calldata _amount, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);Overview
Decreases the allowances of multiple accounts in _spender on destination chains by the corresponding _amount values.
Details This function reduces multiple spender allowances on destination chains by the corresponding amounts.
Parameters
_spender- Array of account addresses authorized by the bond holder.
_amount- Array of bond token amounts to subtract from the allowances.
_destinationChainID- Array of unique destination chain identifiers.
_destinationContract- Array of smart contracts to interact with on destination chains, described in the original source as contracts for depositing or minting transferred tokens.
Return value
booltrueif the allowance reduction succeeds; otherwise,false.
crossChainTransfer
function crossChainTransfer(address _to, uint256 _amount, bytes calldata _data, bytes32 _destinationChainID, address _destinationContract) external returns(bool);Overview
Transfers _amount of bond tokens to _to on another chain (for example, from Ethereum to Polygon).
Details This function transfers the specified bond amount to the specified address on another chain. Additional data can also be attached to the transferred tokens.
Parameters
_to- Address of the recipient account.
_amount- Bond token amount to transfer.
_data- Additional information supplied by the bond holder.
_destinationChainID- Unique identifier of the destination chain.
_destinationContract- Smart contract to interact with on the destination chain to deposit or mint the transferred bond tokens.
Return value
booltrueif the transfer succeeds; otherwise,false.
crossChainBatchTransfer
function crossChainBatchTransfer(address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);Overview
Transfers multiple bond token amounts specified in _amount to the corresponding accounts in _to on other chains.
Details This function moves the specified bond amounts to the corresponding accounts on destination chains. Additional data can also be attached to the transferred tokens.
Parameters
_to- Array of bond recipient account addresses.
_amount- Array of bond token amounts to transfer.
_data- Array of additional information supplied by the bond holder.
_destinationChainID- Array of unique destination chain identifiers.
_destinationContract- Array of smart contracts to interact with on destination chains to deposit or mint the transferred bond tokens.
Return value
booltrueif the transfer succeeds; otherwise,false.
crossChainTransferFrom
function crossChainTransferFrom(address _from, address _to, uint256 _amount, bytes calldata _data, bytes32 _destinationChainID, address _destinationContract) external returns(bool);Overview
Transfers _amount of bond tokens from _from to _to on another chain.
The caller must have been authorized by _from.
Details
This function transfers the specified amount of bonds from _from to _to across chains.
The caller must have received authorization from _from.
Additional data can also be attached to the transferred tokens.
Parameters
_from- Bond holder address.
_to- Address of the bond recipient account.
_amount- Bond token amount to transfer.
_data- Additional information supplied by the token holder.
_destinationChainID- Unique identifier of the destination chain.
_destinationContract- Smart contract to interact with on the destination chain.
Return value
booltrueif the transfer succeeds; otherwise,false.
crossChainBatchTransferFrom
function crossChainBatchTransferFrom(address[] calldata _from, address[] calldata _to, uint256[] calldata _amount, bytes[] calldata _data, bytes32[] calldata _destinationChainID, address[] calldata _destinationContract) external returns(bool);Overview
Transfers multiple bond token amounts specified in _amount from accounts in _from to the corresponding accounts in _to on other chains.
The caller must be authorized by each _from account to manage the corresponding _amount.
Details This function transfers multiple specified bond amounts from the source accounts to the corresponding destination accounts across chains. The caller must hold the necessary authorization from the respective source accounts for the corresponding amounts. Additional data can also be attached to the transferred tokens.
Parameters
_from- Array of bond holder addresses.
_to- Array of recipient account addresses.
_amount- Array of bond token amounts to transfer.
_data- Array of additional information supplied by the token holder.
_destinationChainID- Array of unique destination chain identifiers.
_destinationContract- Array of smart contracts to interact with on destination chains, described in the original source as contracts for depositing or minting transferred tokens.
Return value
booltrueif the transfer succeeds; otherwise,false.
Additional considerations
This Ethereum Request for Comments (ERC) is designed to simplify the transition to tokenized bonds while retaining compatibility with traditional bond terminology and characteristics. This approach allows fixed-income instruments to be represented as on-chain tokens, managed through wallets, and integrated into applications such as decentralized exchanges. It also aims to avoid complexity and inefficiencies associated with other approaches. The ERC facilitates the creation of bond tokens with familiar bond characteristics and seeks to improve accessibility, liquidity, and operational efficiency.
Using traditional financial terms such as issueVolume and principalOf maintains consistency with conventional bond terminology and may facilitate adoption by existing financial institutions.
Total supply and account balances
The standard does not define totalSupply and balanceOf, because the corresponding values can be derived from issueVolume, principalOf, and denomination.
Implementations may add these functions while maintaining the appropriate relationships among the underlying values.
function totalSupply() external view returns(uint256) {
return issueVolume() / denomination();
}
function balance0f(account) external view returns(uint256) {
return principal(account) / denomination();
}In the preceding code, totalSupply divides issueVolume by denomination to calculate the total number of bond units.
Similarly, the illustrative balanceOf function divides the account principal by denomination. The source snippet uses balance0f and principal(account); the standard's principal accessor is principalOf.
These functions may be added when required, but are not mandatory. This allows implementers to include only the required functionality and avoid unnecessary complexity.
Compatibility
The ERC does not provide backward compatibility with existing standards such as ERC20 and ERC1155 because it omits certain functions, including the ERC20-style totalSupply and standard-specific balanceOf interfaces.
The proposal recommends implementing this standard directly when issuing tokenized bonds.
Combining it with other standards can introduce mismatched semantics and implementation risks.
For more about ERC20, see the following article.
For more about ERC1155, see the following article.
The principal reasons are as follows.
-
ERC20 and ERC1155 define general-purpose token interfaces for fungible and multi-token assets.
- This ERC instead focuses on fixed-income instruments such as bonds.
-
ERC20 and ERC1155 specify their respective balance interfaces, and ERC20 also requires
totalSupply. This ERC does not explicitly define those functions because the corresponding bond-unit values can be derived fromissueVolume,principalOf, anddenomination. -
The ERC provides bond-specific properties such as coupon, maturity date, and principal, which ERC20 and ERC1155 do not directly standardize.
-
Combining different standards can introduce security concerns or unexpected behavior.
- A direct implementation can help limit these integration risks.
The proposal therefore recommends a direct implementation of the ERC for issuing tokenized bonds. This helps represent the bond's characteristics appropriately and avoid conflicts between token interface semantics.
Where integration with existing systems is necessary, appropriate adapters or wrappers may translate between the interfaces.
Implementation
The reference implementation is available at the following link.
https://eips.ethereum.org/assets/eip-7092/ERC7092.sol
Bonds with the following optional features can be created by extending the ERC7092.sol contract that integrates the proposed interfaces.
https://eips.ethereum.org/assets/eip-7092/ERC7092.sol
CALLABLE BONDS
pragma solidity ^0.8.0;
import 'ERC7092.sol';
contract ERC7092Callable is ERC7092 {
// WRITE THE LOGIC TO ALLOW THE ISSUER TO CALL BONDS
// STATE VARIABLES AND FUNCTIONS NEEDED
/**
* @notice call bonds owned by `_investor`
* MUST be called by the issuer only
*/
function call(address _investor) public {
require(msg.sender == _issuer[bondISIN].issuerAddress, "ERC7092Callable: ONLY_ISSUER");
require(_principals[_investor] > 0, "ERC7092Callable: NO_BONDS");
require(block.timestamp < _bond[bondISIN].maturityDate, "ERC7092Callable: BOND_MATURED");
uint256 principal = _principals[_investor];
_principals[_investor] = 0;
// ADD LOGIC HERE
}
}This example extends ERC7092 with callable bond functionality.
A callable bond gives the issuer the right to redeem the bond before maturity under specified terms.
The contract has the following principal features.
-
ERC7092Callableinherits fromERC7092and retains its functionality. -
Only the issuer may call the
callfunction.- The code checks whether
msg.sendermatches_issuer[bondISIN].issuerAddress.
- The code checks whether
-
The
callfunction calls the bonds held by the specified investor (_investor). -
The function checks the following conditions.
- The investor holds bonds (
_principals[_investor] > 0). - The bond has not reached maturity (
block.timestamp < _bond[bondISIN].maturityDate).
- The investor holds bonds (
-
Read the investor's principal and set
_principals[_investor]to zero, removing the recorded bond holding. -
The
// ADD LOGIC HEREcomment identifies where additional logic must be implemented.- Examples include making the redemption payment and emitting events.
The contract illustrates how allowing the issuer to call a bond can provide more flexible bond management. Callability may introduce additional risks for investors, so the terms must be defined carefully.
The example is incomplete and requires additional implementation before real-world use.
In particular, state variables and supporting functionality such as _issuer and _bond must be defined and implemented appropriately.
PUTTABLE BONDS
pragma solidity ^0.8.0;
import 'ERC7092.sol';
contract ERC7092Puttable is ERC7092 {
// WRITE THE LOGIC TO ALLOW INVESTORS TO PUT BONDS
// STATE VARIABLES AND FUNCTIONS NEEDED
/**
* @notice put bonds
* MUST be called by investors who own bonds
*/
function put() public {
require(_principals[msg.sender] > 0, "ERC7092Puttable: ONLY_INVESTORS");
require(block.timestamp < _bond[bondISIN].maturityDate, "ERC7092Puttable: BOND_MATURED");
uint256 principal = _principals[msg.sender];
_principals[msg.sender] = 0;
// ADD LOGIC
}
}This example extends ERC7092 with puttable bond functionality.
A puttable bond gives an investor the right to sell the bond back to the issuer before maturity under specified terms.
The contract has the following principal features.
-
ERC7092Puttableinherits fromERC7092and retains its functionality. -
Only an investor holding bonds may invoke
put.- The implementation checks
_principals[msg.sender] > 0.
- The implementation checks
-
The function checks the following conditions.
- The caller (
msg.sender) holds bonds (_principals[msg.sender] > 0). - The bond has not reached maturity (
block.timestamp < _bond[bondISIN].maturityDate).
- The caller (
-
Read the caller's principal and set
_principals[msg.sender]to zero, removing the recorded bond holding. -
The placeholder comment
// ADD LOGICindicates where additional logic must be implemented.- Examples include repaying principal to the investor and emitting events.
This example illustrates how a put option can give bondholders more flexibility. This may be useful when an investor needs to recover funds before maturity, subject to the bond's terms.
Puttable bonds can introduce additional risks for issuers, so the terms must be defined carefully. The issuer must also maintain sufficient liquidity to meet applicable put obligations.
Like the ERC7092Callable example, this code is incomplete and requires additional implementation before use.
Supporting state variables and functionality such as _principals and _bond must be implemented appropriately.
CONVERTIBLE BONDS
pragma solidity ^0.8.0;
import 'ERC7092.sol';
contract ERC7092Convertible is ERC7092 {
// WRITE THE LOGIC TO ALLOW INVESTOR OR ISSUER TO CONVERT BONDS TO EQUITY
// STATE VARIABLES AND FUNCTIONS NEEDED
/**
* @notice convert bonds to equity. Here we assumed that the investors must convert their bonds to equity
* Issuer can also convert invetsors bonds to equity.
*/
function convert() public {
require(_principals[msg.sender] > 0, "ERC7092Convertible: ONLY_INVESTORS");
require(block.timestamp < _bond[bondISIN].maturityDate, "ERC7092Convertible: BOND_MATURED");
uint256 principal = _principals[msg.sender];
_principals[msg.sender] = 0;
// ADD LOGIC HERE
}
}This example extends ERC7092 with convertible bond functionality.
A convertible bond gives its holder the right to convert the bond into equity under specified terms.
The contract has the following principal features.
-
ERC7092Convertibleinherits fromERC7092and retains its functionality. -
A convertible bond design can allow conversion by an investor or issuer, but the shown
convertfunction only accepts a caller with positive recorded principal.- The example assumes that investors convert their own bonds into equity.
-
The function checks the following conditions.
- The caller (
msg.sender) holds bonds (_principals[msg.sender] > 0). - The bond has not reached maturity (
block.timestamp < _bond[bondISIN].maturityDate).
- The caller (
-
Read the caller's principal and set
_principals[msg.sender]to zero, removing the recorded bond holding. -
The
// ADD LOGIC HEREcomment identifies where additional logic must be implemented.- Examples include implementing the equity conversion mechanism and emitting events.
Adding bond-to-equity conversion can provide issuers and investors with additional financing and investment structures. Convertible bonds combine features of debt instruments with potential exposure to equity appreciation; their value and risks depend on the applicable terms.
Implementing convertible bonds requires detailed parameters such as conversion ratios, conversion periods, and eligibility conditions. Interaction with equity tokens also requires additional contract design.
As with the preceding examples, this code illustrates only part of the required functionality and needs additional implementation.
Supporting state variables and functionality such as _principals and _bond must be implemented appropriately.
Functions and interfaces for interacting with equity tokens will also be needed.
Identity registration
This standard is designed specifically for bond tokenization. The standard itself does not manage information identifying bondholders. To support regulatory compliance and oversight, a separate identity registry can be added to record the identities or eligibility of authorized investors.
Maintaining an identity registry allows an issuer to implement controls restricting transfers of ERC7092 bonds to registered and authorized entities. This provides a structured mechanism for managing and verifying bondholder eligibility as part of applicable compliance measures. It may also help prevent unauthorized or noncompliant transfers.
The principal features and benefits of an identity registry are as follows.
-
Regulatory compliance
- Many jurisdictions require know-your-customer (KYC) and anti-money-laundering (AML) procedures for the issuance and trading of financial instruments.
- An identity registry can support those requirements.
-
Investor management
- The issuer can manage investor identity information through a registry.
- This can facilitate investor communications and operations such as coupon and other payments.
-
Prevention of unauthorized transfers
- An identity registry, combined with transfer checks, can restrict bond token transfers to eligible investors.
- This helps prevent unauthorized transfers or transfers to ineligible investors.
-
Improved oversight
- An identity registry provides a structured mechanism for managing bondholder identity information.
- Authorized regulators or auditors can verify relevant information when necessary, subject to appropriate access and privacy controls.
The identity registry can be implemented as a contract or system independent of ERC7092. This adds identity management without increasing the complexity of the core ERC7092 interface.
However, managing identity information introduces privacy and security considerations. Design and implementation of the registry therefore require appropriate care and security measures. It is also important to comply with applicable laws and respect investors' privacy rights.
Security
Implementers should carefully consider the risks associated with functions that authorize operators to manage a holder's bonds and functions that permit bond transfers. These functions need robust validation to ensure that only the bond holder or appropriately authorized accounts can perform the relevant operations.
Operator approval
Functions such as approve and an optional setApprovalForAll mechanism grant other accounts authority to manage bonds.
Only the authorized bond holder should be able to grant permissions over their own bonds.
Otherwise, a malicious actor might obtain unauthorized operator approval and manage another holder's bonds without permission.
Bond transfers
Functions such as transfer and transferFrom authorize the movement of bonds.
transfer must debit the caller's own holdings.
transferFrom must enforce the applicable ownership or delegated authorization requirements.
Without such restrictions, unauthorized parties might transfer bonds.
Input validation
Inputs to these functions must be validated. For example, verify that the amount transferred does not exceed the available balance or the operator's authorized allowance, as applicable. Also verify that the recipient address is valid. Inadequate validation may cause unexpected behavior or introduce security vulnerabilities.
Reentrancy
Functions interacting with external contracts may be vulnerable to reentrancy. A reentrancy attack occurs when an external contract calls back into the original contract during execution, potentially causing unexpected state transitions. Mitigate this risk using the Checks-Effects-Interactions pattern or suitable reentrancy guards.
Access control
Access to privileged bond management operations must be controlled appropriately.
For example, the issue function should be callable only by an authorized issuer.
Inadequate access control can allow unauthorized parties to perform privileged operations.
These security considerations are important in smart contract development. Appropriate validation and access control can reduce vulnerabilities and help maintain the integrity of bond tokens.
The smart contract code should also be thoroughly audited before deployment to identify and address potential vulnerabilities. Ongoing security reviews and appropriately controlled updates can help maintain security over time.
References
Samuel Gwlanold Edoumou (@Edoumou), "ERC-7092: Financial Bonds," Ethereum Improvement Proposals, no. 7092, May 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7092.
Conclusion
This article covered EIP7092, a proposed standard for simplifying bond tokenization while retaining the characteristics of traditional bonds. I hope it helped clarify the mechanism.
If you have questions, feel free to reach out via Twitter DM.
I also publish articles on the following platforms.



