Skip to content

Commit

Permalink
[safe wallet] update safe wallet definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-diamond committed Jan 28, 2025
1 parent fbf9222 commit e0d5520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/methods/boost/transactions/lock/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export const commonLogic = async (values: CommonLogicInput) => {
validateArgs.address({ vaultAddress, userAddress, referrerAddress })

const code = await provider.getCode(userAddress)
const isSafeWallet = code !== '0x'
const isMultiSig = code !== '0x'

let safeWalletData = null

const permitParams = isSafeWallet ? null : values.permitParams
const permitParams = isMultiSig ? null : values.permitParams

if (permitParams) {
validateArgs.object({ permitParams })
Expand Down Expand Up @@ -75,7 +75,7 @@ export const commonLogic = async (values: CommonLogicInput) => {
if (isPermitRequired) {
// It is hard to make permit action for Safe wallet,
// so we need to use approve instead
if (isSafeWallet) {
if (isMultiSig) {
safeWalletData = {
contract: contracts.tokens.mintToken,
approveArgs: [ strategyProxy, MaxUint256 ] as [ string, bigint ],
Expand Down

0 comments on commit e0d5520

Please sign in to comment.