Skip to content
Snippets Groups Projects
Select Git revision
  • 429_rm_features
  • main default protected
  • release/0.12 protected
  • pages protected
  • release/0.11 protected
  • 175_gva_migration
  • i18n
  • v0.12.0 protected
  • v0.11.2 protected
  • v0.11.1 protected
  • v0.11.0 protected
  • v0.11.0rc0 protected
  • v0.10.0 protected
  • v0.10.0rc1 protected
  • v0.10.0rc0 protected
  • v0.3.0 protected
  • v0.8.1 protected
  • v0.9.0 protected
  • v0.9.0rc protected
  • v0.8.0 protected
  • v0.7.6 protected
  • v0.7.5 protected
  • v0.7.4 protected
  • v0.7.3 protected
  • v0.7.2 protected
  • v0.7.1 protected
  • v0.7.0 protected
27 results

test_unit_tx.py

  • matograine's avatar
    5181d542
    [enh] #111 : create compute_amounts() function · 5181d542
    matograine authored
    * Uses a list of user amounts and a multiplicator (should be CENT_MULT_TO_UNIT or UD_Value).
    * Multiplies the given amounts(UD) to get usable int() amounts for Duniter.
    * Makes sure that each amountUD is superior to the minimal amount.
        * Absolute amounts are in FloatRange(MINIMAL_AMOUNT), so they have already been checked.
        * This check should be updated when solving issue #306 / DUBP v13.
    * Returns list of amounts.
    5181d542
    History
    [enh] #111 : create compute_amounts() function
    matograine authored
    * Uses a list of user amounts and a multiplicator (should be CENT_MULT_TO_UNIT or UD_Value).
    * Multiplies the given amounts(UD) to get usable int() amounts for Duniter.
    * Makes sure that each amountUD is superior to the minimal amount.
        * Absolute amounts are in FloatRange(MINIMAL_AMOUNT), so they have already been checked.
        * This check should be updated when solving issue #306 / DUBP v13.
    * Returns list of amounts.