adjust forceReportPeriod prop in oracle create
This commit is contained in:
parent
714a9d12dd
commit
24a14d1016
|
@ -55,7 +55,7 @@ const CreateSwitchboardOracleModal = ({
|
||||||
const { t } = useTranslation(['governance'])
|
const { t } = useTranslation(['governance'])
|
||||||
const connection = mangoStore((s) => s.connection)
|
const connection = mangoStore((s) => s.connection)
|
||||||
const wallet = useWallet()
|
const wallet = useWallet()
|
||||||
const quoteTokenName = 'USDC'
|
const quoteTokenName = 'USD'
|
||||||
const pythUsdOracle = 'Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD'
|
const pythUsdOracle = 'Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD'
|
||||||
const tierToSwapValue: { [key: string]: string } = {
|
const tierToSwapValue: { [key: string]: string } = {
|
||||||
PREMIUM: '10000',
|
PREMIUM: '10000',
|
||||||
|
@ -122,7 +122,7 @@ const CreateSwitchboardOracleModal = ({
|
||||||
minRequiredOracleResults: 3,
|
minRequiredOracleResults: 3,
|
||||||
minRequiredJobResults: 2,
|
minRequiredJobResults: 2,
|
||||||
minUpdateDelaySeconds: 6,
|
minUpdateDelaySeconds: 6,
|
||||||
forceReportPeriod: 3600,
|
forceReportPeriod: 24 * 60 * 60,
|
||||||
withdrawAuthority: MANGO_DAO_WALLET,
|
withdrawAuthority: MANGO_DAO_WALLET,
|
||||||
authority: payer,
|
authority: payer,
|
||||||
crankDataBuffer: crankAccount.dataBuffer?.publicKey,
|
crankDataBuffer: crankAccount.dataBuffer?.publicKey,
|
||||||
|
@ -330,7 +330,7 @@ const CreateSwitchboardOracleModal = ({
|
||||||
<Modal isOpen={isOpen} onClose={onClose}>
|
<Modal isOpen={isOpen} onClose={onClose}>
|
||||||
<div className="space-y-4 pb-4">
|
<div className="space-y-4 pb-4">
|
||||||
<p>
|
<p>
|
||||||
{t('create-switch-oracle')} {baseTokenName}/USDC
|
{t('create-switch-oracle')} {baseTokenName}/USD
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t('estimated-oracle-cost')} {tierSettings[tier].fundAmount} SOL
|
{t('estimated-oracle-cost')} {tierSettings[tier].fundAmount} SOL
|
||||||
|
|
Loading…
Reference in New Issue