Skip to content

Commit ab6034d

Browse files
committed
feat: log APY skipping
1 parent 4e10639 commit ab6034d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indexer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def calc_factors(self, session, indx, block):
134134
# using the balance factor which accounts for payouts.
135135
if apy > 0.0 and apy < 0.5 and apy < indx.apy * 2:
136136
indx.apy = apy
137+
else:
138+
logger.warning("APY %s is being skipped." % apy)
137139

138140
def index_apy(self, session, indx, block):
139141
"""Index current APY.

0 commit comments

Comments
 (0)