Skip to content

Commit

Permalink
Update adventure boss operational address to real
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Jun 27, 2024
1 parent 5875497 commit 11d06cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lib9c/Action/AdventureBoss/ClaimAdventureBossReward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _)
);
}
Expand Down
5 changes: 3 additions & 2 deletions Lib9c/Action/AdventureBoss/UnlockFloor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Lib9c/Data/AdventureBossGameData.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 11d06cc

Please sign in to comment.