Skip to content

Commit

Permalink
Merge branch 'master' into add_vyper_linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Nov 6, 2020
2 parents e249884 + c089b2e commit 0ec1141
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/Vault.vy
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface DetailedERC20:
view



interface Strategy:
def distributeRewards(_shares: uint256): nonpayable
def estimatedTotalAssets() -> uint256: view
Expand Down Expand Up @@ -207,9 +208,9 @@ def apiVersion() -> String[28]:
@external
def setName(_name: String[42]):
"""
@notice
@notice
Used to change the value of `name`.
This may only be called by governance.
@param _name The new name to use.
"""
Expand All @@ -220,9 +221,9 @@ def setName(_name: String[42]):
@external
def setSymbol(_symbol: String[20]):
"""
@notice
@notice
Used to change the value of `symbol`.
This may only be called by governance.
@param _symbol The new symbol to use.
"""
Expand Down Expand Up @@ -449,6 +450,7 @@ def transferFrom(_from: address, _to: address, _value: uint256) -> bool:
# Unlimited approval (saves an SSTORE)
if (self.allowance[_from][msg.sender] < MAX_UINT256):
self.allowance[_from][msg.sender] -= _value
self._transfer(_from, _to, _value)
return True


Expand Down

0 comments on commit 0ec1141

Please sign in to comment.