Skip to content

Commit

Permalink
v7.4.12
Browse files Browse the repository at this point in the history
v7.4.12
  • Loading branch information
platschi authored Jul 27, 2023
2 parents 0cadaac + 5dd0477 commit 2f59902
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kwenta",
"version": "7.4.11",
"version": "7.4.12",
"description": "Kwenta",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kwenta/app",
"version": "7.4.11",
"version": "7.4.12",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
Binary file not shown.
Binary file added packages/app/src/assets/png/currencies/sCOMP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app/src/assets/png/currencies/sETC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app/src/assets/png/currencies/sMAV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app/src/assets/png/currencies/sMKR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app/src/assets/png/currencies/sRPL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app/src/assets/png/currencies/sYFI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions packages/sdk/src/services/kwentaToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { awsClient, fleekClient } from '../utils/files'
import { weiFromWei } from '../utils/number'
import { getFuturesAggregateStats, getFuturesTrades } from '../utils/subgraph'
import { calculateFeesForAccount, calculateTotalFees } from '../utils'
import { ADDRESSES } from '../constants'

export default class KwentaTokenService {
private sdk: KwentaSDK
Expand Down Expand Up @@ -142,7 +143,7 @@ export default class KwentaTokenService {
throw new Error(sdkErrors.UNSUPPORTED_NETWORK)
}

const { walletAddress } = this.sdk.context
const { walletAddress, networkId } = this.sdk.context

const [
rewardEscrowBalance,
Expand All @@ -166,10 +167,10 @@ export default class KwentaTokenService {
SupplySchedule.weekCounter(),
KwentaStakingRewards.totalSupply(),
vKwentaToken.balanceOf(walletAddress),
vKwentaToken.allowance(walletAddress, vKwentaRedeemer.address),
KwentaToken.allowance(walletAddress, KwentaStakingRewards.address),
vKwentaToken.allowance(walletAddress, ADDRESSES.vKwentaRedeemer[networkId]),
KwentaToken.allowance(walletAddress, ADDRESSES.KwentaStakingRewards[networkId]),
veKwentaToken.balanceOf(walletAddress),
veKwentaToken.allowance(walletAddress, veKwentaRedeemer.address),
veKwentaToken.allowance(walletAddress, ADDRESSES.veKwentaRedeemer[networkId]),
])

return {
Expand Down Expand Up @@ -197,7 +198,7 @@ export default class KwentaTokenService {
throw new Error(sdkErrors.UNSUPPORTED_NETWORK)
}

const { walletAddress } = this.sdk.context
const { walletAddress, networkId } = this.sdk.context

const [
rewardEscrowBalance,
Expand All @@ -216,7 +217,7 @@ export default class KwentaTokenService {
KwentaStakingRewardsV2.totalSupply(),
KwentaStakingRewardsV2.userLastStakeTime(walletAddress),
KwentaStakingRewardsV2.cooldownPeriod(),
KwentaToken.allowance(walletAddress, KwentaStakingRewardsV2.address),
KwentaToken.allowance(walletAddress, ADDRESSES.KwentaStakingRewardsV2[networkId]),
])

return {
Expand Down

1 comment on commit 2f59902

@vercel
Copy link

@vercel vercel bot commented on 2f59902 Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./packages/app

kwenta.io
kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app

Please sign in to comment.