public function aroundGetBaseCurrencyCode(
        \Magento\Store\Model\Store $subject,
        \Closure $proceed
    ) {
        /* call parent method to proceed functionality */
        $proceed();
        /* then replace store currency code by warehouse currency code */
        $storeId = $subject->getId();
        $stockId = $this->hlpStock->getStockIdByStoreId($storeId);
        $wrhsDo = $this->daoWrhs->getById($stockId);
        $curCode = $wrhsDo->getCurrency();
        $result = $curCode;
        return $result;
    }
public function aroundGetBaseCurrencyCode(
        \Magento\Store\Model\Store $subject,
        \Closure $proceed
    ) {
        /* call parent method to proceed functionality */
        $proceed();
        /* then replace store currency code by warehouse currency code */
        $storeId = $subject->getId();
        $stockId = $this->hlpStock->getStockIdByStoreId($storeId);
        $wrhsDo = $this->daoWrhs->getById($stockId);
        $curCode = $wrhsDo->getCurrency();
        $result = $curCode;
        return $result;
    }
public function aroundGetBaseCurrencyCode ( \ Magento \ Store \ Model \ Store $ subject , \ Closure $ proceed ) { /* call parent method to proceed functionality */ $ proceed ( ) ; /* then replace store currency code by warehouse currency code */ $ storeId = $ subject -> getId ( ) ; $ stockId = $ this -> hlpStock -> getStockIdByStoreId ( $ storeId ) ; $ wrhsDo = $ this -> daoWrhs -> getById ( $ stockId ) ; $ curCode = $ wrhsDo -> getCurrency ( ) ; $ result = $ curCode ; return $ result ; }
Replace Magento's base currency code by warehouse currency code.

@param \Magento\Store\Model\Store $subject
@param \Closure $proceed
@return string
Replace Magento s base currency code by warehouse currency code .