Skip to content

Commit

Permalink
Disable a withdraw btn in bonding section
Browse files Browse the repository at this point in the history
Disable withdraw btn for copied delegations from liquid tokens. From
`TokenStaking` contract's perspective, the `StakingPortBacker` is an
owner of the copied delegation, so the "real" owner cannot withdraw
bond.
  • Loading branch information
r-czajkowski committed Sep 9, 2020
1 parent 91e6fdb commit 78469b8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ const fetchOperatorsOf = async (web3Context, yourAddress) => {
web3Utils.toChecksumAddress(copiedOperatorsFromLiquidTokens[i]),
{
managedGrantInfo: {},
isWithdrawableForOperator: true,
// From the `TokenStaking` contract's perspective,
// the `StakingPortBacker` contract is an owner of the copied delegation,
// so the "real" owner cannot withdraw bond.
isWithdrawableForOperator: false,
}
)
}
Expand Down

0 comments on commit 78469b8

Please sign in to comment.