Skip to content

Commit

Permalink
fix: remove invest section
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien committed Jun 5, 2024
1 parent faa713a commit 65e46f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions src/commands/balances/index/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1319,11 +1319,6 @@ export function getButtons() {
.setEmoji(getEmoji("ANIMATED_TOKEN_ADD", true))
.setCustomId(`deposit`)
.setLabel("Deposit"),
new MessageButton()
.setStyle("SECONDARY")
.setCustomId(`view_invest`)
.setEmoji(getEmoji("BANK"))
.setLabel("Invest"),
]
}

Expand Down
11 changes: 0 additions & 11 deletions src/commands/balances/index/slash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export const machineConfig: (
txns: ctx.txns,
})
},
invest: async (i) => {
const tokens = await getBalanceTokens(i)
return renderInvestHome(i, 0, tokens)
},
earn: (i) => {
return renderEarnHome(i.user, EarnView.Airdrop)
},
Expand Down Expand Up @@ -143,7 +139,6 @@ export const machineConfig: (
balance: {
on: {
TOGGLE_SHOW_FULL_EARN: "balance",
VIEW_INVEST: "invest",
VIEW_EARN: "earn",
UNLINK_WALLET: "walletUnlink",
VIEW_PORTFOLIO: "balance",
Expand All @@ -170,12 +165,6 @@ export const machineConfig: (
VIEW_WALLET: "balance",
},
},
invest: {
on: {
[RouterSpecialAction.BACK]: "balance",
},
...investMachineConfig,
},
earn: {
on: {
[RouterSpecialAction.BACK]: "balance",
Expand Down

0 comments on commit 65e46f5

Please sign in to comment.