Skip to content

Add withRewards and withTrailingApy flags to /operators route#442

Merged
uditdc merged 2 commits intodevfrom
440-feat---add-withrewards-flag-to-operators-route
Jul 29, 2025
Merged

Add withRewards and withTrailingApy flags to /operators route#442
uditdc merged 2 commits intodevfrom
440-feat---add-withrewards-flag-to-operators-route

Conversation

@surbhit14
Copy link
Copy Markdown
Collaborator

@surbhit14 surbhit14 commented Jul 28, 2025

a) withRewards = true

Response

 "rewards": [
                {
                    "avsAddress": "0x870679e138bcdf293b7ff14dd44b70fc97e12fc0",
                    "maxApy": ,
                    "strategyApys": [
                        {
                            "strategyAddress": "0x93c4b944d05dfe6df7645a86cd2206016c51564d",
                            "apy": ,
                            "baseApy": ,
                            "tokens": [
                                {
                                    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                                    "apy": 
                                }
                            ]
                        },
                        {
                            "strategyAddress": "0xacb55c530acdb2849e6d4f36992cd8c9d50ed8f7",
                            "apy": ,
                            "baseApy": ,
                            "tokens": [
                                {
                                    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                                    "apy": 
                                }
                            ]
                        }
                    ]
                }
           ]

b) withTrailingApy = true

Response

"rewards": [
                {
                    "avsAddress": "0x870679e138bcdf293b7ff14dd44b70fc97e12fc0",
                    "maxApy": 
                    "strategyApys": [
                        {
                            "strategyAddress": "0x93c4b944d05dfe6df7645a86cd2206016c51564d",
                            "apy": ,
                            "baseApy": ,
                            "trailingApy7d": ,
                            "trailingApy30d": ,
                            "trailingApy3m": ,
                            "trailingApy6m": ,
                            "trailingApy1y": ,
                            "tokens": [
                                {
                                    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                                    "apy": 
                                }
                            ]
                        },
                        {
                            "strategyAddress": "0xacb55c530acdb2849e6d4f36992cd8c9d50ed8f7",
                            "apy": ,
                            "baseApy": ,
                            "trailingApy7d": ,
                            "trailingApy30d": ,
                            "trailingApy3m": ,
                            "trailingApy6m": ,
                            "trailingApy1y": ,
                            "tokens": [
                                {
                                    "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                                    "apy": 
                                }
                            ]
                        }
                    ]
                }
            ]

@surbhit14 surbhit14 linked an issue Jul 28, 2025 that may be closed by this pull request
@uditdc uditdc merged commit b254aae into dev Jul 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] - Add withRewards flag to /operators route

2 participants