Skip to content

Commit

Permalink
Merge pull request #12 from vonum/protocol-fees-summary
Browse files Browse the repository at this point in the history
Fix protocol fees endpoint
  • Loading branch information
itzmestar authored May 6, 2024
2 parents 6b1a885 + 4bc7e46 commit f818733
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion defillama/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__title__ = 'DeFiLlama'
__description__ = 'Unofficial DeFi Llama API client.'
__url__ = 'https://github.com/itzmestar/DeFiLlama'
__version__ = '2.2.0'
__version__ = '2.2.1'
__build__ = 0x010001
__author__ = 'Tarique Anwer'
__author_email__ = '[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions defillama/defillama.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_protocol_current_tvl(self, protocol):
def get_chains_current_tvl(self):
"""
Returns list of current TVL of all chains.
:return: JSON response
"""
path = f'/v2/chains'
Expand Down Expand Up @@ -334,7 +334,7 @@ def get_fees_protocol(self, protocol, dataType='dailyFees'):
"""
Get summary of protocol fees and revenue with historical data
"""
path = f'/overview/fees/{protocol}'
path = f'/summary/fees/{protocol}'
params = {
'dataType': dataType
}
Expand Down
2 changes: 0 additions & 2 deletions tests/test_defillama.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from unittest import TestCase

import pytest


Expand Down

0 comments on commit f818733

Please sign in to comment.