Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased (develop)

- added: Show swap KYC/terms modal for NExchange
- changed: Migrate Thorchain Savers and Thorchain Yield endpoints off NineRealms to gateway.liquify.com.

## 4.48.0 (staging)

Expand Down
3 changes: 1 addition & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,7 @@ export default [
'src/plugins/stake-plugins/generic/util/tarotUtils.ts',
'src/plugins/stake-plugins/metadataCache.ts',
'src/plugins/stake-plugins/stakePlugins.ts',
'src/plugins/stake-plugins/thorchainSavers/tcSaversPlugin.tsx',
'src/plugins/stake-plugins/thorchainSavers/tcSaversPluginSegwit.tsx',

'src/plugins/stake-plugins/uniswapV2/Ecosystem.ts',

'src/plugins/stake-plugins/uniswapV2/policies/VelodromeV2StakePolicy.ts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const thorchainYieldPolicyConfig: Array<
ENV.THORCHAIN_INIT !== false
? ENV.THORCHAIN_INIT.ninerealmsClientId
: undefined,
thornodeServers: ['https://thornode.ninerealms.com']
thornodeServers: ['https://gateway.liquify.com/chain/thorchain_api']
},

hideClaimAction: true,
Expand Down
12 changes: 7 additions & 5 deletions src/plugins/stake-plugins/thorchainSavers/tcSaversPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ import { getEvmApprovalData, getEvmDepositWithExpiryData } from './defiUtils'
const EXCHANGE_INFO_UPDATE_FREQ_MS = 10 * 60 * 1000 // 2 min
const INBOUND_ADDRESSES_UPDATE_FREQ_MS = 10 * 60 * 1000 // 2 min
const MIDGARD_SERVERS_DEFAULT = [
'https://midgard.ninerealms.com',
'https://gateway.liquify.com/chain/thorchain_midgard',
'https://midgard.thorchain.info'
]
const THORNODE_SERVERS_DEFAULT = ['https://thornode.ninerealms.com']
const THORNODE_SERVERS_DEFAULT = [
'https://gateway.liquify.com/chain/thorchain_api'
]
const EVM_WITHDRAWAL_MIN_AMOUNT = '1000000000000'

// When withdrawing from a vault, this represents a withdrawal of 100% of the staked amount.
Expand Down Expand Up @@ -598,7 +600,7 @@ async function fetchClaimableTcy(
return json.tcy_claimer[0].amount
}

const updatePolicyApys = (infoServerResponse: InfoServerResponse) => {
const updatePolicyApys = (infoServerResponse: InfoServerResponse): void => {
policies.forEach(policy => {
const apy = infoServerResponse.policies[policy.stakePolicyId]
if (apy != null) {
Expand Down Expand Up @@ -968,8 +970,8 @@ const stakeRequest = async (
asset,
parentToTokenRate,
parentBalance
).catch(e => {
console.error(e.message)
).catch((e: unknown) => {
console.error(e instanceof Error ? e.message : String(e))
})

if (futureUnstakeFee != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ import { getEvmApprovalData, getEvmDepositWithExpiryData } from './defiUtils'
const EXCHANGE_INFO_UPDATE_FREQ_MS = 10 * 60 * 1000 // 2 min
const INBOUND_ADDRESSES_UPDATE_FREQ_MS = 10 * 60 * 1000 // 2 min
const MIDGARD_SERVERS_DEFAULT = [
'https://midgard.ninerealms.com',
'https://gateway.liquify.com/chain/thorchain_midgard',
'https://midgard.thorchain.info'
]
const THORNODE_SERVERS_DEFAULT = ['https://thornode.ninerealms.com']
const THORNODE_SERVERS_DEFAULT = [
'https://gateway.liquify.com/chain/thorchain_api'
]
const EVM_WITHDRAWAL_MIN_AMOUNT = '1000000000000'

// When withdrawing from a vault, this represents a withdrawal of 100% of the staked amount.
Expand Down Expand Up @@ -593,7 +595,7 @@ async function fetchClaimableTcy(
return json.tcy_claimer[0].amount
}

const updatePolicyApys = (infoServerResponse: InfoServerResponse) => {
const updatePolicyApys = (infoServerResponse: InfoServerResponse): void => {
policies.forEach(policy => {
const apy = infoServerResponse.policies[policy.stakePolicyId]
if (apy != null) {
Expand Down Expand Up @@ -963,8 +965,8 @@ const stakeRequest = async (
asset,
parentToTokenRate,
parentBalance
).catch(e => {
console.error(e.message)
).catch((e: unknown) => {
console.error(e instanceof Error ? e.message : String(e))
})

if (futureUnstakeFee != null) {
Expand Down
Loading