File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const miningRewardsDune = async (): Promise<{ data: CliffAdapterResult[]; lastTi
2121 type : "cliff" ,
2222 start : Number ( row . timestamp ) ,
2323 amount : Number ( row . btc_mined ) ,
24+ isUnlock : false ,
2425 } ) ) ;
2526 const lastTimestamp = Math . max ( ...duneData . map ( ( row : any ) => Number ( row . timestamp ) ) ) ;
2627 return { data : filtered , lastTimestamp } ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const stakingRewardsDune = async (): Promise<{ data: CliffAdapterResult[]; lastT
1919 type : "cliff" ,
2020 start : Number ( row . timestamp ) ,
2121 amount : Number ( row . sol_reward ) ,
22+ isUnlock : false ,
2223 } ) ) ;
2324 const lastTimestamp = Math . max ( ...duneData . map ( ( row : any ) => Number ( row . timestamp ) ) ) ;
2425 return { data : filtered , lastTimestamp } ;
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ export function addResultToEvents(
3030 cliffs . map ( ( c : CliffAdapterResult ) => {
3131 if ( ! metadata . events ) metadata . events = [ ] ;
3232 if ( c . amount . toFixed ( 2 ) == "0.00" ) return ;
33+ // Skip cliff events that are explicitly marked as not unlocks
34+ if ( c . isUnlock === false ) return ;
3335 metadata . events . push ( {
3436 description : `A cliff of {tokens[0]} tokens ${
3537 isFuture ( c . start ) ? "will" : "was"
@@ -104,6 +106,8 @@ export function addResultToEvents(
104106
105107 cliffs . forEach ( ( c : CliffAdapterResult ) => {
106108 if ( c . amount . toFixed ( 2 ) == "0.00" ) return ;
109+ // Skip cliff events that are explicitly marked as not unlocks
110+ if ( c . isUnlock === false ) return ;
107111 cliffAllocations . push ( {
108112 recipient : section ,
109113 category : sectionToCategory [ section ] || 'Uncategorized' ,
You can’t perform that action at this time.
0 commit comments