chore: add more markets
This commit is contained in:
parent
edb8a8e611
commit
83e63c0de2
38
markets.json
38
markets.json
|
@ -16,7 +16,43 @@
|
|||
"address" : "Hs97TCZeuYiJxooo3U73qEHXg3dKpRL4uYKYRryEK9CF"
|
||||
},
|
||||
{
|
||||
"name" : "BTC/USDC",
|
||||
"name" : "WBTC/USDC",
|
||||
"address" : "3BAKsQd3RuhZKES2DGysMhjBdwjZYKYmxRqnSMtZ4KSN"
|
||||
},
|
||||
{
|
||||
"name": "mSOL/USDC",
|
||||
"address": "9Lyhks5bQQxb9EyyX55NtgKQzpM4WK7JCmeaWuQ5MoXD"
|
||||
},
|
||||
{
|
||||
"name": "stSOL/USDC",
|
||||
"address": "JCKa72xFYGWBEVJZ7AKZ2ofugWPBfrrouQviaGaohi3R"
|
||||
},
|
||||
{
|
||||
"name": "SOL/USDT",
|
||||
"address": "2AdaV97p6SfkuMQJdu8DHhBhmJe7oWdvbm52MJfYQmfA"
|
||||
},
|
||||
{
|
||||
"name": "USDT/USDC",
|
||||
"address": "B2na8Awyd7cpC59iEU43FagJAPLigr3AP3s38KM982bu"
|
||||
},
|
||||
{
|
||||
"name": "USDT/USDC",
|
||||
"address": "B2na8Awyd7cpC59iEU43FagJAPLigr3AP3s38KM982bu"
|
||||
},
|
||||
{
|
||||
"name": "ETH/USDC",
|
||||
"address": "BbJgE7HZMaDp5NTYvRh5jZSkQPVDTU8ubPFtpogUkEj4"
|
||||
},
|
||||
{
|
||||
"name": "RAY/USDC",
|
||||
"address": "DZjbn4XC8qoHKikZqzmhemykVzmossoayV9ffbsUqxVj"
|
||||
},
|
||||
{
|
||||
"name": "RAY/USDT",
|
||||
"address": "GpHbiJJ9VHiuHVXeoet121Utrbm1CSNNzYrBKB8Xz2oz"
|
||||
},
|
||||
{
|
||||
"name": "SLND/USDC",
|
||||
"address": "HTHMfoxePjcXFhrV74pfCUNoWGe374ecFwiDjPGTkzHr"
|
||||
}
|
||||
]
|
|
@ -65,7 +65,7 @@ pub async fn backfill(
|
|||
|
||||
while now_time > end_time {
|
||||
let rpc_client = RpcClient::new_with_commitment(rpc_url.clone(), CommitmentConfig::confirmed());
|
||||
let maybe_r = get_signatures(&rpc_client, before_sig, None).await;
|
||||
let maybe_r = get_signatures(&rpc_client, before_sig).await;
|
||||
|
||||
match maybe_r {
|
||||
Some((last, time, sigs)) => {
|
||||
|
@ -98,12 +98,11 @@ pub async fn backfill(
|
|||
|
||||
|
||||
pub async fn get_signatures(rpc_client: &RpcClient,
|
||||
before_sig: Option<Signature>,
|
||||
limit: Option<usize>) -> Option<(Signature, i64, Vec<RpcConfirmedTransactionStatusWithSignature>)> {
|
||||
before_sig: Option<Signature>) -> Option<(Signature, i64, Vec<RpcConfirmedTransactionStatusWithSignature>)> {
|
||||
let rpc_config = GetConfirmedSignaturesForAddress2Config {
|
||||
before: before_sig,
|
||||
until: None,
|
||||
limit,
|
||||
limit: None,
|
||||
commitment: Some(CommitmentConfig::confirmed()),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue