Skip to content

Commit

Permalink
Fix some docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanmieghem committed Jul 4, 2023
1 parent 3e81d8b commit cc43da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/stellar-evm/stellar/stellar.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ func IntToStroops(x int64) int64 {
return x * Precision
}

// IntToStroops converts units to stroops (1 TFT = 1000000 stroops)
// DecimalToStroops converts units to stroops (1 TFT = 1000000 stroops)
func DecimalToStroops(x decimal.Decimal) int64 {
stroops := x.Mul(decimal.NewFromInt(Precision))
return stroops.IntPart()
}

// IntToStroops converts stroops to units to (1 TFT = 1000000 stroops)
// StroopsToDecimal converts stroops to units (1 TFT = 1000000 stroops)
func StroopsToDecimal(stroops int64) decimal.Decimal {
decimalStroops := decimal.NewFromInt(stroops)
return decimalStroops.Div(decimal.NewFromInt(Precision))
Expand Down

0 comments on commit cc43da5

Please sign in to comment.