From 11d06cc695ce6c0fafa2d8223149d89f5fb2ccf1 Mon Sep 17 00:00:00 2001 From: hyeon Date: Thu, 27 Jun 2024 17:47:57 +0900 Subject: [PATCH] Update adventure boss operational address to real --- Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs | 2 +- Lib9c/Action/AdventureBoss/UnlockFloor.cs | 5 +++-- Lib9c/Data/AdventureBossGameData.cs | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs b/Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs index 70154dd7b6..cda2d9999a 100644 --- a/Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs +++ b/Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs @@ -112,7 +112,7 @@ public override IWorld Execute(IActionContext context) { states = states.TransferAsset(context, seasonBountyBoardAddress, // FIXME: Set operational account address - new Address(), + AdventureBossGameData.AdventureBossOperationalAddress, (bountyBoard.totalBounty() * 80).DivRem(100, out _) ); } diff --git a/Lib9c/Action/AdventureBoss/UnlockFloor.cs b/Lib9c/Action/AdventureBoss/UnlockFloor.cs index 96f8212aa7..4f2d27296c 100644 --- a/Lib9c/Action/AdventureBoss/UnlockFloor.cs +++ b/Lib9c/Action/AdventureBoss/UnlockFloor.cs @@ -7,6 +7,7 @@ using Libplanet.Action.State; using Libplanet.Crypto; using Nekoyume.Action.Exceptions.AdventureBoss; +using Nekoyume.Data; using Nekoyume.Exceptions; using Nekoyume.Extensions; using Nekoyume.Model.State; @@ -137,8 +138,8 @@ public override IWorld Execute(IActionContext context) explorer.UsedNcg += price.NcgPrice; exploreBoard.UsedNcg += price.NcgPrice; - // FIXME: Send unlock NCG to operational address - states = states.TransferAsset(context, agentAddress, new Address(), + states = states.TransferAsset(context, agentAddress, + AdventureBossGameData.AdventureBossOperationalAddress, price.NcgPrice * currency); } else // Use GoldenDust diff --git a/Lib9c/Data/AdventureBossGameData.cs b/Lib9c/Data/AdventureBossGameData.cs index e96d9a27e1..d5ca8b22c9 100644 --- a/Lib9c/Data/AdventureBossGameData.cs +++ b/Lib9c/Data/AdventureBossGameData.cs @@ -1,10 +1,14 @@ using System.Collections.Generic; +using Libplanet.Crypto; using Libplanet.Types.Assets; namespace Nekoyume.Data { public static class AdventureBossGameData { + public static readonly Address AdventureBossOperationalAddress = + new ("0x6923bb64139d23C677D858CcA7e1e2a31457bB8D"); + public struct ClaimableReward { public FungibleAssetValue? NcgReward;