@@ -15,14 +15,14 @@ pub enum AirdropCategory {
1515}
1616
1717/// Represents a single entry in a CSV
18- #[ derive( Debug , Clone , Eq , Hash , PartialEq , Serialize , Deserialize ) ]
18+ #[ derive( Debug , Clone , PartialEq , Serialize , Deserialize ) ]
1919pub struct CsvEntry {
2020 /// Pubkey of the claimant; will be responsible for signing the claim
2121 pub pubkey : String ,
2222 /// amount unlocked, (ui amount)
23- pub amount_unlocked : u64 ,
23+ pub amount_unlocked : f64 ,
2424 /// amount locked, (ui amount)
25- pub amount_locked : u64 ,
25+ pub amount_locked : f64 ,
2626 /// Category
2727 pub category : AirdropCategory ,
2828}
@@ -57,8 +57,8 @@ mod tests {
5757 entries[ 0 ] . pubkey,
5858 "4SX6nqv5VRLMoNfYM5phvHgcBNcBEwUEES4qPPjf1EqS"
5959 ) ;
60- assert_eq ! ( entries[ 0 ] . amount_unlocked, 1000 ) ;
61- assert_eq ! ( entries[ 0 ] . amount_locked, 500 ) ;
60+ assert_eq ! ( entries[ 0 ] . amount_unlocked, 1000f64 ) ;
61+ assert_eq ! ( entries[ 0 ] . amount_locked, 500f64 ) ;
6262 assert_eq ! ( entries[ 0 ] . category, AirdropCategory :: Staker ) ;
6363 }
6464}
0 commit comments