Skip to content

Commit

Permalink
Merge pull request #1148 from oraidex/add-mode-defai
Browse files Browse the repository at this point in the history
add mode defai
  • Loading branch information
haunv3 authored Feb 6, 2025
2 parents 5c17bfa + 14c0312 commit 9c7850a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ if (typeof BigInt === 'undefined') {
}

// polyfill abort timeout for some old browser not support.
if (!('timeout' in AbortSignal)) {
AbortSignal.timeout = function (delay: number) {
if (!AbortSignal?.timeout) {
AbortSignal.timeout = function (delay) {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), delay);
// Allow Node.js processes to exit early if only the timeout is running
Expand Down
2 changes: 2 additions & 0 deletions src/program/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const ORAICHAIN_RELAYER_ADDRESS_DEFAI_MEME = 'orai1rrlmvsaukfeg874fjsuxnt
export const connection = 'https://solana-public.agents.land';

export const getStatusMemeBridge = (fromToken) => {
// FIXME: hardcode merge oraichain sdk => need remove after success merge
if (fromToken.name === 'GUARD') return true;
return ['defai', 'meme'].includes(fromToken.tag) && !['CRISIS', 'MOOBS'].includes(fromToken.name);
};

Expand Down

0 comments on commit 9c7850a

Please sign in to comment.