Skip to content

Commit

Permalink
separate upgrade endpoint update for farm
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuolteanu committed Dec 13, 2023
1 parent b6049bf commit d35e367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dex/farm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ pub trait Farm:
}

#[endpoint]
fn upgrade(&self) {}
fn upgrade(&self) {
// Farm position migration code
let farm_token_mapper = self.farm_token();
self.try_set_farm_position_migration_nonce(farm_token_mapper);
}

#[payable("*")]
#[endpoint(enterFarm)]
Expand Down

0 comments on commit d35e367

Please sign in to comment.