Skip to content

Commit

Permalink
gas optimisation (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom authored Dec 5, 2024
1 parent 296f5f4 commit 74bd138
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/contracts/token/OUSD.sol
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ contract OUSD is Governable {
view
returns (uint256)
{
if (alternativeCreditsPerToken[_account] != 0) {
return alternativeCreditsPerToken[_account];
uint256 alternativeCreditsPerTokenMem = alternativeCreditsPerToken[_account];
if (alternativeCreditsPerTokenMem != 0) {
return alternativeCreditsPerTokenMem;
} else {
return rebasingCreditsPerToken_;
}
Expand Down

0 comments on commit 74bd138

Please sign in to comment.