Skip to content

Commit

Permalink
Merge pull request #131 from bajpai244/Version-1.1
Browse files Browse the repository at this point in the history
use the `gonsForBalance` function in `transfer` function of sOlympusE…
  • Loading branch information
olyzeus authored Dec 24, 2021
2 parents 946ce45 + c720444 commit f614d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/sOlympusERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ contract sOlympus is ERC20Permit, Ownable {
}

function transfer( address to, uint256 value ) public override returns (bool) {
uint256 gonValue = value.mul( _gonsPerFragment );
uint256 gonValue = gonsForBalance(value);
_gonBalances[ msg.sender ] = _gonBalances[ msg.sender ].sub( gonValue );
_gonBalances[ to ] = _gonBalances[ to ].add( gonValue );
emit Transfer( msg.sender, to, value );
Expand Down

0 comments on commit f614d9e

Please sign in to comment.