add the RetrievePoolDetails to the testutil and dev account service

This commit is contained in:
2025-06-06 22:42:35 +03:00
parent bf830e92de
commit b5ccaea575
4 changed files with 22 additions and 1 deletions

View File

@@ -833,6 +833,18 @@ func (das *DevAccountService) FetchTopPools(ctx context.Context) ([]dataservicea
return topPools, nil
}
func (das *DevAccountService) RetrievePoolDetails(ctx context.Context, sym string) (*dataserviceapi.PoolDetails, error) {
testPool := &dataserviceapi.PoolDetails{
PoolName: "DevTest",
PoolSymbol: "DEVT",
PoolContractAdrress: "0x145F87d6198dEDD45C614FFD8b70E9a2fCCc5cc9",
LimiterAddress: "",
VoucherRegistry: "",
}
return testPool, nil
}
func (das *DevAccountService) GetPoolSwappableFromVouchers(ctx context.Context, poolAddress, publicKey string) ([]dataserviceapi.TokenHoldings, error) {
var swapFromList []dataserviceapi.TokenHoldings