-
Notifications
You must be signed in to change notification settings - Fork 336
accept_bond_offer_operation
Vikram Rajkumar edited this page Jun 9, 2015
·
1 revision
accept_bond_offer_operation
Fill or partially fill a published open offer for a specified bond contract.
See parent feature.
The operation shall specify at least the following:
- Source account
- Bond contract offer that is to be filled
- Payment asset amount
- Payment asset amount SHALL be positive
- Source account SHALL be an existing account
- Bond contract offer that is to be filled SHALL be an existing bond contract offer
- Payment asset amount type SHALL be an existing asset type
- Source account SHALL have at least the payment asset amount available
- IF the bond contract offer was an offer to borrow, THEN the payment asset amount SHALL be no more than its principle asset amount
- IF the bond contract offer was an offer to lend, THEN the payment asset amount SHALL be no more than its collateral asset amount
- An active bond contract SHALL be initialized as specified by the payment asset amount provided by the source account in accordance with the rules of the bond contract offer being filled
- IF the bond contract offer was an offer to borrow AND the payment asset amount was equal to the full principle asset amount, THEN the bond contract offer shall be closed
- IF the bond contract offer was an offer to lend AND the payment asset amount was equal to the full collateral asset amount, THEN the bond contract offer shall be closed
- The source account SHALL be debited the payment asset amount
- Author: Vikram (has not approved)
- Reviewer: Ben (has not approved)