From 25178fd9e5c3b81744618ce9704dc534d05e4828 Mon Sep 17 00:00:00 2001 From: eibakatsu Date: Wed, 1 Nov 2023 15:11:41 +0900 Subject: [PATCH] =?UTF-8?q?acumulationRatioRank=E3=82=92=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=A7=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contract/contracts/localNouns/LocalNounsProvider.sol | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/contract/contracts/localNouns/LocalNounsProvider.sol b/contract/contracts/localNouns/LocalNounsProvider.sol index d1575a06..0c9cf8ba 100644 --- a/contract/contracts/localNouns/LocalNounsProvider.sol +++ b/contract/contracts/localNouns/LocalNounsProvider.sol @@ -37,8 +37,8 @@ contract LocalNounsProvider is IAssetProviderExMint, IERC165, Ownable { uint256 totalPrefectureRatio; uint256[5] ratioRank = [5, 4, 3, 3, 2]; - uint256[5] acumulationRatioRank; - uint256 acumulationRatioRankTotal; + uint256[5] acumulationRatioRank = [5, 9, 12, 15, 17]; + uint256 acumulationRatioRankTotal = 17; mapping(uint256 => uint256[]) public prefectureRatio; constructor( @@ -107,11 +107,6 @@ contract LocalNounsProvider is IAssetProviderExMint, IERC165, Ownable { prefectureRatio[2] = [9, 33, 7, 24, 43, 46, 47, 25, 35]; prefectureRatio[3] = [29, 38, 42, 2, 3, 17, 44, 45, 6, 16]; prefectureRatio[4] = [37, 5, 30, 19, 41, 18, 36, 39, 32, 31]; - - for (uint256 i = 0; i < ratioRank.length; i++) { - acumulationRatioRankTotal += ratioRank[i]; - acumulationRatioRank[i] = acumulationRatioRankTotal; - } } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {