Skip to content

Commit

Permalink
feat(ampRoar-Roar-pool): added specifications (#408)
Browse files Browse the repository at this point in the history
* feat(ampRoar-Roar-pool): added specifications

* feat(ampRoar-Roar-pool):tagged ampROAR as native
  • Loading branch information
worrex authored Oct 25, 2023
1 parent abec872 commit b8f86b3
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
5 changes: 2 additions & 3 deletions components/Pages/Flashloan/FlashloanForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Stack,
} from '@chakra-ui/react'
import { useChain } from '@cosmos-kit/react-lite'
import { kBg, kBorderRadius } from 'constants/visualComponentConstants'
import { useRecoilValue } from 'recoil'
import { chainState } from 'state/chainState'
import { TxStep } from 'types/index'
Expand All @@ -21,8 +22,6 @@ import 'jsoneditor/dist/jsoneditor.css'
import schema from './schema.json'
import UploadFile from './UploadFile'

import { kBg, kBorderRadius } from 'constants/visualComponentConstants'

const defaultJson = {
flash_loan: {
assets: [],
Expand Down Expand Up @@ -95,7 +94,7 @@ const FlashloanForm = () => {
return 'Flashloan'

// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tx?.buttonLabel, status, error])
}, [tx?.buttonLabel, error])

const handleChange = (event: any) => {
const fileReader = new FileReader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const createDepositMsg = ({ amount }) => ({
deposit: { amount },
})

export const createDepostExecuteMsgs = ({
export const createDepositExecuteMsgs = ({
amount,
vaultAddress,
senderAddress,
Expand Down
4 changes: 2 additions & 2 deletions components/Pages/Flashloan/Vaults/hooks/useDeposit.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo } from 'react'

import { useChain } from '@cosmos-kit/react-lite'
import { createDepostExecuteMsgs, createDepositMsg } from 'components/Pages/Flashloan/Vaults/hooks/createDepositMsgs'
import { createDepositExecuteMsgs, createDepositMsg } from 'components/Pages/Flashloan/Vaults/hooks/createDepositMsgs'
import useTransaction from 'components/Pages/Flashloan/Vaults/hooks/useTransaction'
import { useClients } from 'hooks/useClients'
import { useTokenInfo } from 'hooks/useTokenInfo'
Expand Down Expand Up @@ -32,7 +32,7 @@ const useDeposit = ({ vaultAddress, token, onSuccess }: DepostProps) => {

return {
msgs: createDepositMsg({ amount }),
encodedMsgs: createDepostExecuteMsgs({
encodedMsgs: createDepositExecuteMsgs({
amount,
senderAddress: address,
vaultAddress,
Expand Down
36 changes: 36 additions & 0 deletions public/mainnet/phoenix-1/pools_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,42 @@
"swap_address": "terra1shd0wd8atmevjtryzcqzu6sxsmc4hjek43kxqsz08wxwk4nt0wvsav9004",
"staking_address": "",
"rewards_tokens": []
},
{
"pool_id": "ampROAR-ROAR",
"lpOrder": ["ampROAR", "ROAR"],
"assetOrder": ["ampROAR", "ROAR"],
"displayName": "ampROAR-ROAR",
"displayLogo1": "/logos/lion.png",
"displayLogo2": "/logos/lion.png",
"pool_assets": [
{
"chain_id": "phoenix-1",
"token_address": "factory/terra1vklefn7n6cchn0u962w3gaszr4vf52wjvd4y95t2sydwpmpdtszsqvk9wy/ampROAR",
"symbol": "ampROAR",
"name": "ampRoar",
"decimals": 6,
"logoURI": "/logos/lion.png",
"tags": [],
"native": true,
"denom": "factory/terra1vklefn7n6cchn0u962w3gaszr4vf52wjvd4y95t2sydwpmpdtszsqvk9wy/ampROAR"
},
{
"chain_id": "phoenix-1",
"token_address": "terra1lxx40s29qvkrcj8fsa3yzyehy7w50umdvvnls2r830rys6lu2zns63eelv",
"symbol": "ROAR",
"name": "Roar",
"decimals": 6,
"logoURI": "/logos/lion.png",
"tags": [],
"native": false,
"denom": "terra1lxx40s29qvkrcj8fsa3yzyehy7w50umdvvnls2r830rys6lu2zns63eelv"
}
],
"lp_token": "factory/terra1d8ap3zyd6tfnruuuwvs0t927lr4zwptruhulfwnxjpqzudvyn8usfgl8ze/uLP",
"swap_address": "terra1d8ap3zyd6tfnruuuwvs0t927lr4zwptruhulfwnxjpqzudvyn8usfgl8ze",
"staking_address": "",
"rewards_tokens": []
}
],
"version": {
Expand Down

0 comments on commit b8f86b3

Please sign in to comment.