cryptom2/currency-precision

Auxiliary module to handle currency precision for crypto currencies

v1.0.0 2022-06-21 05:37 UTC

This package is auto-updated.

Last update: 2024-05-21 09:46:21 UTC


README

Description

Module manages custom currency precisions and add possibility to change default currency precision.

Installation

To install module you need to add repositories to your composer.json:

    "repositories": {
        "crypto-currency-precision": {
            "type": "git",
            "url": "git@github.com:torys877/crypto-currency-precision.git"
        }
    }

Or add repositories in console:

composer config repositories.crypto-currency-precision git git@github.com:torys877/crypto-currency-precision.git

Install module:

composer require cryptom2/currency-precision:v1.0.0

And run

php bin/magento setup:upgrade

Example Of Usage

To set precision it needs to create config.xml in etc module directory and add next config:

<default>
    <system>
        <currency>
            <ETH>
                <precision>5</precision>
            </ETH>
        </currency>
    </system>
</default>`

Author

Ihor Oleksiienko