-
Notifications
You must be signed in to change notification settings - Fork 336
create_bond_offer_operation
Vikram Rajkumar edited this page Jun 9, 2015
·
1 revision
create_bond_offer_operation
Publish an open offer for a specified bond contract, with the source account picking a specific side (borrowing or lending) of the contract. Publishing offers is required so that users can compare and contrast all available offers in the market. If a user finds an offer that they want to take, they can accept the offer and lock their account into the other side of the contract.
See parent feature.
The operation shall specify at least the following:
- Source account
- Side of contract the source account will take
- Principle asset amount being loaned
- Collateral asset amount that will secure the loan
- Minimum time before which the loan cannot be repaid
- Minimum time before which the collateral cannot be forfeit
- Interest rate
- Source account SHALL be either borrowing or lending
- Principle asset amount SHALL be positive
- Collateral asset amount SHALL be positive
- Principle asset type SHALL be distinct from collateral asset type
- Minimum time before which the loan cannot be repaid SHALL be positive
- Minimum time before which the collateral cannot be forfeit SHALL be no earlier than the minimum time before which the loan cannot be repaid
- Interest rate SHALL be an element of the interval [0, 100]%
- Source account SHALL be an existing account
- Principle asset type SHALL be an existing asset type
- Collateral asset type SHALL be an existing asset type
- IF the source account is borrowing, THEN it SHALL have at least the collateral asset amount available
- IF the source account is lending, THEN it SHALL have at least the principle asset amount available
- An open offer for the specified bond contract SHALL be published
- IF the source account is borrowing, THEN it SHALL be debited the collateral asset amount
- IF the source account is lending, THEN it SHALL be debited the principle asset amount
- Author: Vikram (has not approved)
- Reviewer: Ben (has not approved)