File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,6 @@ impl Default for Rent {
8181}
8282
8383impl Rent {
84- /// Calculate how much rent to burn from the collected rent.
85- ///
86- /// The first value returned is the amount burned. The second is the amount
87- /// to distribute to validators.
8884 pub fn lamports_per_byte_year ( & self ) -> u64 {
8985 u64:: from_le_bytes ( self . lamports_per_byte_year )
9086 }
@@ -105,6 +101,10 @@ impl Rent {
105101 }
106102 }
107103
104+ /// Calculate how much rent to burn from the collected rent.
105+ ///
106+ /// The first value returned is the amount burned. The second is the amount
107+ /// to distribute to validators.
108108 pub fn calculate_burn ( & self , rent_collected : u64 ) -> ( u64 , u64 ) {
109109 let burned_portion = ( rent_collected * u64:: from ( self . burn_percent ) ) / 100 ;
110110 ( burned_portion, rent_collected - burned_portion)
You can’t perform that action at this time.
0 commit comments