@chevre/domain 25.2.0-alpha.7 → 25.2.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/chevre/service/transaction/placeOrder/confirm/prepareUnitPriceOfferConditions.js
CHANGED
|
@@ -76,6 +76,11 @@ function createAuthorizeOfferResultsExpected(params) {
|
|
|
76
76
|
}
|
|
77
77
|
function prepareUnitPriceOfferConditions(params) {
|
|
78
78
|
return async (repos) => {
|
|
79
|
+
// COAの場合は単価オファーを参照せずにそのまま返す
|
|
80
|
+
const isCOA = params.authorizeEventServiceOfferActions.some((action) => action.instrument.typeOf === factory_1.factory.assetTransactionType.COAReserveTransaction);
|
|
81
|
+
if (isCOA) {
|
|
82
|
+
return params.authorizeEventServiceOfferActions.map(({ id, result }) => ({ id, result }));
|
|
83
|
+
}
|
|
79
84
|
const conditions = [];
|
|
80
85
|
const offerIds = [...new Set(params.acceptedOffers.map((o) => String(o.id)))];
|
|
81
86
|
const unitPriceOffers = await repos.offer.search({
|
package/package.json
CHANGED