From d35e367368cfa30abf938befb6ab0d60fc10e1af Mon Sep 17 00:00:00 2001 From: ovidiuolteanu Date: Wed, 13 Dec 2023 13:25:53 +0200 Subject: [PATCH] separate upgrade endpoint update for farm --- dex/farm/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)]