Gmx v2 - Funding rates (#6)

* Setup GMX v2

* Add get markets

* Map token with service

* Add get market info data

* Add get markets

* Add get market token prices

* Get markets infos multicall

* Try call datastore

* Add some tests to figure out why datastore call dont work

* Update funding rates

* clean
This commit is contained in:
Oda
2024-08-17 06:50:18 +07:00
committed by GitHub
parent b4087753c7
commit 68aa7fff5d
75 changed files with 8979 additions and 608 deletions

View File

@@ -37,7 +37,8 @@ public static class ChainService
return new Chain()
{
Name = Constants.Chains.Arbitrum,
RpcUrl = RPC_ARBITRUM
RpcUrl = RPC_ARBITRUM,
ChainId = 42161
};
}
@@ -46,7 +47,8 @@ public static class ChainService
return new Chain()
{
Name = Constants.Chains.Ethereum,
RpcUrl = RPC_ETHEREUM
RpcUrl = RPC_ETHEREUM,
ChainId = 1
};
}
@@ -67,4 +69,4 @@ public static class ChainService
RpcUrl = RPC_ETHEREUM_GOERLI
};
}
}
}