Skip to content

Commit

Permalink
Merge pull request #32 from Levana-Protocol/new-contract
Browse files Browse the repository at this point in the history
New contract, missing pluralization
  • Loading branch information
lvn-alduin authored Sep 19, 2024
2 parents 07dde0b + 95084a8 commit 051ff6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions frontend/src/api/queries/Market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ const marketFromResponse = (response: ResponseMarket): Market => {
totalWallets: response.total_wallets,
poolSize: Coins.fromUnits(response.denom, response.pool_size),
lpShares: BigNumber(response.lp_shares),
// Checking for missing data is just for testing with older contracts.
// That code can be removed in the future.
lpWallets: response.lp_wallets || 1,
lpWallets: response.lp_wallets,
}
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/config/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ENV: Environment = match(window.location.host)
export const IS_TESTNET = ENV === "testnet"

export const CONTRACT_ADDRESS = IS_TESTNET
? "neutron1krsypa5jreg8yphywr5aa5djv8hsxmagtttxp2p8v6g438mtx74s69m0w0"
? "neutron1juw8ztnzy37xs9nvcqf4lhshcg7zndwmjvgmzxkp8cgjgw3ahscshn2l82"
: ""
export const QUERIER_ADDRESS = IS_TESTNET
? "https://querier-testnet.levana.finance"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MarketOutcomesContent = (props: { market: Market }) => {
</Typography>
<Typography level="body-md" textColor="text.secondary">
{market.totalWallets}{" "}
{market.totalWallets === 1 ? "participant" : "participant"}
{market.totalWallets === 1 ? "participant" : "participants"}
</Typography>
</Box>
</>
Expand Down

0 comments on commit 051ff6c

Please sign in to comment.