Skip to content

Commit

Permalink
chore: get scripts to report as done
Browse files Browse the repository at this point in the history
  • Loading branch information
DNR500 committed May 30, 2024
1 parent 8130ca2 commit a74ac41
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions examples/node/examples/polynomialDeposit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as lifiDataTypes from '@lifi/data-types'
import { CoinKey, ContractCallsQuoteRequest, StatusResponse } from '@lifi/sdk'
import { ContractCallsQuoteRequest, StatusResponse } from '@lifi/sdk'
import {
ChainId,
createConfig,
Expand All @@ -24,8 +23,6 @@ import { AddressZero } from './constants'
import { checkTokenAllowance } from './utils/checkTokenAllowance'
import { transformTxRequestToSendTxParams } from './utils/transformTxRequestToSendTxParams'

const { findDefaultToken } = (lifiDataTypes as any).default

const run = async () => {
console.info('>> Starting Polynomial Demo: Deposit sETH on Optimism')
console.info('>> Initialize LiFi SDK')
Expand Down Expand Up @@ -68,9 +65,9 @@ const run = async () => {

// config for polynomial deposit run
const config = {
fromChain: ChainId.ARB, // original value was ChainId.ETH,
fromToken: findDefaultToken(CoinKey.USDC, ChainId.ARB).address, // original value was AddressZero,
amount: '100000', // original value was parseEther('0.04').toString(),
fromChain: ChainId.ETH,
fromToken: AddressZero,
amount: parseEther('0.00001').toString(),
polynomialContractAddress: '0x2D46292cbB3C601c6e2c74C32df3A4FCe99b59C7', // Polynomial Ethereum Contract on Optimism
polynomialContractToken: '0xE405de8F52ba7559f9df3C368500B6E6ae6Cee49', // sETH on Optimism
polynomialContractGasLimit: '200000',
Expand Down

0 comments on commit a74ac41

Please sign in to comment.