Skip to content

Commit

Permalink
docs: add natspec for decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Dec 14, 2020
1 parent c5d4672 commit d2bdbb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/tokens/CurveTokenV3.vy
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def __init__(_name: String[64], _symbol: String[32]):
@view
@external
def decimals() -> uint256:
"""
@notice Get the number of decimals for this token
@dev Implemented as a view method to reduce gas costs
@return uint256 decimal places
"""
return 18


Expand Down

0 comments on commit d2bdbb0

Please sign in to comment.