Skip to content

Commit e4107c9

Browse files
committed
remove withdraw stake immediately straw
1 parent b8ba804 commit e4107c9

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pkg/bath/staking.go

-19
Original file line numberDiff line numberDiff line change
@@ -183,25 +183,6 @@ func (ds BubbleWithdrawStake) ToAction() *Action {
183183
}
184184
}
185185

186-
var WithdrawStakeImmediatelyStraw = Straw[BubbleWithdrawStake]{
187-
CheckFuncs: []bubbleCheck{Is(BubbleWithdrawStakeRequest{})},
188-
Builder: func(newAction *BubbleWithdrawStake, bubble *Bubble) error {
189-
req := bubble.Info.(BubbleWithdrawStakeRequest)
190-
newAction.Pool = req.Pool
191-
newAction.Staker = req.Staker
192-
newAction.Amount = -req.attachedAmount
193-
newAction.Implementation = req.Implementation
194-
return nil
195-
},
196-
SingleChild: &Straw[BubbleWithdrawStake]{
197-
CheckFuncs: []bubbleCheck{IsTx, AmountInterval(int64(ton.OneTON), 1<<63-1)},
198-
Builder: func(newAction *BubbleWithdrawStake, bubble *Bubble) error {
199-
newAction.Amount += bubble.Info.(BubbleTx).inputAmount
200-
return nil
201-
},
202-
},
203-
}
204-
205186
var DepositLiquidStakeStraw = Straw[BubbleDepositStake]{
206187
CheckFuncs: []bubbleCheck{IsTx, HasOperation(abi.TonstakePoolDepositMsgOp)}, //todo: check interface HasInterface(abi.TonstakePool),
207188
Builder: func(newAction *BubbleDepositStake, bubble *Bubble) error {

0 commit comments

Comments
 (0)