@@ -196,27 +196,6 @@ pub fn process_claim(env: &Env, claim_id: u64) -> Result<(), Error> {
196196 if claim. status != ClaimStatus :: Approved {
197197 return Err ( Error :: ClaimNotApproved ) ;
198198 }
199- <<<<<<< HEAD
200- if claim. amount <= 0 {
201- return Err ( Error :: ClaimAmountZero ) ;
202- }
203-
204- // Verify the claim's asset is still allowlisted (admin may have removed it).
205- if !is_allowed_asset ( env, & claim. asset ) {
206- return Err ( Error :: InvalidAsset ) ;
207- }
208-
209- // Verify the claim's asset matches the policy's bound asset.
210- if let Some ( policy) = storage:: get_policy ( env, & claim. claimant , claim. policy_id ) {
211- if claim. asset != policy. asset {
212- return Err ( Error :: InvalidAsset ) ;
213- }
214- }
215-
216- let token_client = token:: Client :: new ( env, & claim. asset ) ;
217- let treasury = treasury_address ( env) ;
218- check_treasury_balance ( & token_client, & treasury, claim. amount ) ?;
219- =======
220199
221200 payout ( env, & claim) ?;
222201 claim. status = ClaimStatus :: Paid ;
@@ -234,7 +213,6 @@ fn payout(env: &Env, claim: &Claim) -> Result<(), Error> {
234213 if token_client. balance ( & treasury) < claim. amount {
235214 return Err ( Error :: InsufficientTreasury ) ;
236215 }
237- >>>>>>> f31c36f7aaafe0e6592326e70bf1e4291a0fcd67
238216
239217 token_client. transfer ( & treasury, & claim. claimant , & claim. amount ) ;
240218
@@ -261,3 +239,4 @@ pub fn is_allowed_asset(env: &Env, asset: &Address) -> bool {
261239pub fn set_allowed_asset ( env : & Env , asset : & Address , allowed : bool ) {
262240 storage:: set_allowed_asset ( env, asset, allowed) ;
263241}
242+
0 commit comments