add fee plateform calculator
This commit is contained in:
@@ -1,15 +1,12 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Managing.Common;
|
using Managing.Common;
|
||||||
using Managing.Domain.Trades;
|
using Managing.Domain.Trades;
|
||||||
using Managing.Infrastructure.Evm;
|
|
||||||
using Managing.Infrastructure.Evm.Models.Gmx.v1;
|
using Managing.Infrastructure.Evm.Models.Gmx.v1;
|
||||||
using Managing.Infrastructure.Evm.Models.Privy;
|
|
||||||
using Managing.Infrastructure.Evm.Referentials;
|
using Managing.Infrastructure.Evm.Referentials;
|
||||||
using Managing.Infrastructure.Evm.Services;
|
using Managing.Infrastructure.Evm.Services;
|
||||||
using Managing.Infrastructure.Evm.Services.Gmx;
|
using Managing.Infrastructure.Evm.Services.Gmx;
|
||||||
using Nethereum.Web3;
|
using Nethereum.Web3;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Microsoft.Extensions.Options;
|
|
||||||
|
|
||||||
namespace Managing.Infrastructure.Tests;
|
namespace Managing.Infrastructure.Tests;
|
||||||
|
|
||||||
@@ -102,7 +99,7 @@ public class GmxServiceTests : EvmManagerTests
|
|||||||
public async void Should_return_quantity_in_position()
|
public async void Should_return_quantity_in_position()
|
||||||
{
|
{
|
||||||
var account = PrivateKeys.GetAccount();
|
var account = PrivateKeys.GetAccount();
|
||||||
var quantity = await _manager.QuantityInPosition(Constants.Chains.Arbitrum, account.Key, Enums.Ticker.BTC);
|
var quantity = await _manager.QuantityInPosition(Constants.Chains.Arbitrum, account, Enums.Ticker.BTC);
|
||||||
|
|
||||||
Assert.NotNull(quantity);
|
Assert.NotNull(quantity);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,10 @@ export async function getClientForAddress(
|
|||||||
oracleUrl: "https://arbitrum-api.gmxinfra.io",
|
oracleUrl: "https://arbitrum-api.gmxinfra.io",
|
||||||
rpcUrl: "https://arb1.arbitrum.io/rpc",
|
rpcUrl: "https://arb1.arbitrum.io/rpc",
|
||||||
subsquidUrl: "https://gmx.squids.live/gmx-synthetics-arbitrum:live/api/graphql",
|
subsquidUrl: "https://gmx.squids.live/gmx-synthetics-arbitrum:live/api/graphql",
|
||||||
subgraphUrl: "https://subgraph.satsuma-prod.com/3b2ced13c8d9/gmx/synthetics-arbitrum-stats/api"
|
subgraphUrl: "https://subgraph.satsuma-prod.com/3b2ced13c8d9/gmx/synthetics-arbitrum-stats/api",
|
||||||
|
settings: {
|
||||||
|
uiFeeReceiverAccount: "0xF9f04a745Db54B25bB8B345a1da74D4E3c38c8aB"
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const sdk = new GmxSdk(arbitrumSdkConfig)
|
const sdk = new GmxSdk(arbitrumSdkConfig)
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import {useEffect, useState} from 'react'
|
||||||
|
|
||||||
import { Tabs } from '../../components/mollecules'
|
import {Tabs} from '../../components/mollecules'
|
||||||
import type { ITabsType } from '../../global/type'
|
import type {ITabsType} from '../../global/type'
|
||||||
|
|
||||||
import RektFees from './rektFees'
|
import RektFees from './rektFees'
|
||||||
import SpotlightView from './spotlight/spotlight'
|
import SpotlightView from './spotlight/spotlight'
|
||||||
|
import FeeCalculator from './feeCalculator'
|
||||||
|
|
||||||
const tabs: ITabsType = [
|
const tabs: ITabsType = [
|
||||||
{
|
{
|
||||||
@@ -17,6 +18,11 @@ const tabs: ITabsType = [
|
|||||||
index: 2,
|
index: 2,
|
||||||
label: 'RektFees',
|
label: 'RektFees',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Component: FeeCalculator,
|
||||||
|
index: 3,
|
||||||
|
label: 'Fee Calculator',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const Tools: React.FC = () => {
|
const Tools: React.FC = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user