Skip to content

Commit 35d7eb5

Browse files
authored
Controller: Claim rewards before gulp (#115)
1 parent 436bff4 commit 35d7eb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/Controller.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ contract Controller is Ownable, ReentrancyGuard {
9797
* @dev only callable by owner(gov)
9898
*/
9999
function rebase() public nonReentrant {
100-
// stake tokens
101-
gulp();
102-
103100
// claim rewards
104101
tenderizer.claimRewards();
105102

103+
// stake tokens
104+
gulp();
105+
106106
// update total pooled tokens
107107
_updateTotalPooledTokens();
108108

0 commit comments

Comments
 (0)