From 11c989c75d82c044cc007de31df3cd56ad555dbc Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 8 Sep 2022 13:16:01 -0400 Subject: [PATCH] fix: addd fee to make offer --- src/datalayer/persistance.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/datalayer/persistance.js b/src/datalayer/persistance.js index 87042d1f..9f323d1e 100644 --- a/src/datalayer/persistance.js +++ b/src/datalayer/persistance.js @@ -493,7 +493,10 @@ const getMirrors = async (storeId) => { const makeOffer = async (offer) => { const options = { url: `${CONFIG.DATALAYER_URL}/make_offer`, - body: JSON.stringify(offer), + body: JSON.stringify({ + ...offer, + fee: _.get(CONFIG, 'DEFAULT_FEE', 1000000000 /* 1 billion mojos */), + }), }; try {