coin

Types

pub type Coin {
  Coin(luna: Int)
}

Constructors

  • Coin(luna: Int)

Constants

pub const decimals: Int
pub const lunas_per_coin: Float

Functions

pub fn coins_to_lunas(coins: Float) -> Coin
pub fn lunas_to_coins(lunas: Coin) -> Float
Search Document