-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: disable swap minting #1740
Changes from 25 commits
868bbd4
45691cd
fa24720
b789252
05c8874
f3e304d
d9d2c9d
f917f86
a3987ba
b9c67d3
310c0cd
3db7e4d
94cc34d
c34914e
0b784f3
908c41c
cafe0c4
066364a
ec31d32
e89d2a2
a1fd1c7
7e75849
f105d98
e20d268
dee2867
2b2a225
d05b578
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
import { | ||
DebtIssuanceModuleAddress, | ||
DebtIssuanceModuleV2Address, | ||
DebtIssuanceModuleV2PolygonAddress, | ||
IndexDebtIssuanceModuleV2Address, | ||
IndexDebtIssuanceModuleV2Address_v2, | ||
} from '@indexcoop/flash-mint-sdk' | ||
import { getTokenByChainAndSymbol } from '@indexcoop/tokenlists' | ||
|
||
import { LegacyToken } from '@/app/legacy/types' | ||
import { | ||
BedIndex, | ||
Bitcoin2xFlexibleLeverageIndex, | ||
DATA, | ||
Ethereum2xFlexibleLeverageIndex, | ||
GitcoinStakedETHIndex, | ||
GmiIndex, | ||
ic21, | ||
LeveragedRethStakingYield, | ||
} from '@/constants/tokens' | ||
|
||
|
@@ -26,6 +24,13 @@ import { | |
Matic2xFlexibleLeverageIndexPolygon, | ||
} from './polygon' | ||
|
||
const DebtIssuanceModuleAddress = '0x39F024d621367C044BacE2bf0Fb15Fb3612eCB92' | ||
const DebtIssuanceModuleV2PolygonAddress = | ||
'0xf2dC2f456b98Af9A6bEEa072AF152a7b0EaA40C9' | ||
|
||
const GitcoinStakedETHIndex = getTokenByChainAndSymbol(1, 'gtcETH') | ||
const ic21 = getTokenByChainAndSymbol(1, 'ic21') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding directly from tokenlists. Removing lots of obsolete references/assets throughout the app. |
||
|
||
export const Issuance = { | ||
[BedIndex.symbol]: IndexDebtIssuanceModuleV2Address_v2, | ||
[Bitcoin2xFlexibleLeverageIndex.symbol]: DebtIssuanceModuleV2Address, | ||
|
@@ -49,11 +54,11 @@ export const Issuance = { | |
DebtIssuanceModuleV2PolygonAddress, | ||
} | ||
|
||
export const LegacyTokenList = [ | ||
export const LegacyTokenList: LegacyToken[] = [ | ||
Bitcoin2xFlexibleLeverageIndex, | ||
Ethereum2xFlexibleLeverageIndex, | ||
ic21, | ||
GitcoinStakedETHIndex, | ||
{ ...ic21, image: ic21.logoURI }, | ||
{ ...GitcoinStakedETHIndex, image: GitcoinStakedETHIndex.logoURI }, | ||
GmiIndex, | ||
DATA, | ||
LeveragedRethStakingYield, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious- why define these here as opposed to flash mint sdk? if we need to define them in this codebase, thoughts on putting them in some sort of config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are removed in the SDK as we actually don't really use them any longer - expect for deprecated products. So I would say here it's fine? and then we can completely remove once those products are removed from legacy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me , thanks for the context 👍