diff --git a/dex/farm/src/lib.rs b/dex/farm/src/lib.rs index b29d7c8a5..48cf893f1 100644 --- a/dex/farm/src/lib.rs +++ b/dex/farm/src/lib.rs @@ -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)]