From ce5af0c7ad3f529e5d5e3af222ffc29156a38a60 Mon Sep 17 00:00:00 2001 From: Edward Amor Date: Sat, 22 May 2021 16:32:34 -0400 Subject: [PATCH] fix: gaugeV3 withdraw from rewards contract --- contracts/gauges/LiquidityGaugeV3.vy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/gauges/LiquidityGaugeV3.vy b/contracts/gauges/LiquidityGaugeV3.vy index 74640920..f15ae546 100644 --- a/contracts/gauges/LiquidityGaugeV3.vy +++ b/contracts/gauges/LiquidityGaugeV3.vy @@ -558,11 +558,11 @@ def withdraw(_value: uint256, _claim_rewards: bool = False): if is_rewards: reward_data: uint256 = self.reward_data if reward_data > 0: - deposit_sig: Bytes[4] = slice(self.reward_sigs, 0, 4) - if convert(deposit_sig, uint256) != 0: + withdraw_sig: Bytes[4] = slice(self.reward_sigs, 4, 4) + if convert(withdraw_sig, uint256) != 0: raw_call( convert(reward_data % 2**160, address), - concat(deposit_sig, convert(_value, bytes32)) + concat(withdraw_sig, convert(_value, bytes32)) ) ERC20(self.lp_token).transfer(msg.sender, _value)