Skip to content

Commit

Permalink
implementation: rename dev address to treasury
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeinum committed Apr 14, 2023
1 parent 758f6a2 commit 3365402
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions contracts/Artgene721Base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contract Artgene721Base is
0x1E0049783F008A0085193E00003D00cd54003c71;

uint256 public PLATFORM_FEE; // of 10,000
address payable PLATFORM_ADDRESS;
address payable PLATFORM_TREASURY;

uint256 public startTimestamp = SALE_STARTS_AT_INFINITY;

Expand Down Expand Up @@ -167,7 +167,7 @@ contract Artgene721Base is
maxPerMint = MAX_PER_MINT_LIMIT;
isOpenSeaProxyActive = true;

(PLATFORM_FEE, PLATFORM_ADDRESS) = IArtgenePlatform(ARTGENE_PLATFORM_ADDRESS).getPlatformInfo();
(PLATFORM_FEE, PLATFORM_TREASURY) = IArtgenePlatform(ARTGENE_PLATFORM_ADDRESS).getPlatformInfo();

_configure(
_config.publicPrice,
Expand Down Expand Up @@ -575,7 +575,7 @@ contract Artgene721Base is

modifier onlyDeveloper() {
require(
payable(msg.sender) == PLATFORM_ADDRESS,
payable(msg.sender) == PLATFORM_TREASURY,
"Caller is not developer"
);
_;
Expand All @@ -586,7 +586,7 @@ contract Artgene721Base is
uint256 amount = (balance * (10000 - PLATFORM_FEE)) / 10000;

address payable receiver = getPayoutReceiver();
address payable dev = PLATFORM_ADDRESS;
address payable dev = PLATFORM_TREASURY;

Address.sendValue(receiver, amount);
Address.sendValue(dev, balance - amount);
Expand All @@ -606,7 +606,7 @@ contract Artgene721Base is
uint256 amount = (balance * (10000 - PLATFORM_FEE)) / 10000;

address payable receiver = getPayoutReceiver();
address payable dev = PLATFORM_ADDRESS;
address payable dev = PLATFORM_TREASURY;

token.safeTransfer(receiver, amount);
token.safeTransfer(dev, balance - amount);
Expand Down
10 changes: 5 additions & 5 deletions contracts/Artgene721Implementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ contract Artgene721Implementation is
uint256 public startTimestamp;

uint256 public PLATFORM_FEE; // of 10,000
address payable PLATFORM_ADDRESS;
address payable PLATFORM_TREASURY;

uint256 public reserved;
uint256 public maxSupply;
Expand Down Expand Up @@ -168,7 +168,7 @@ contract Artgene721Implementation is
isOpenSeaProxyActive = true;
isOpenSeaTransferFilterEnabled = true;

(PLATFORM_FEE, PLATFORM_ADDRESS) = IArtgenePlatform(ARTGENE_PLATFORM_ADDRESS).getPlatformInfo();
(PLATFORM_FEE, PLATFORM_TREASURY) = IArtgenePlatform(ARTGENE_PLATFORM_ADDRESS).getPlatformInfo();

__ERC721A_init(_name, _symbol);
__ReentrancyGuard_init();
Expand Down Expand Up @@ -596,7 +596,7 @@ contract Artgene721Implementation is

modifier onlyDeveloper() {
require(
payable(msg.sender) == PLATFORM_ADDRESS,
payable(msg.sender) == PLATFORM_TREASURY,
"Caller is not developer"
);
_;
Expand All @@ -607,7 +607,7 @@ contract Artgene721Implementation is
uint256 amount = (balance * (10000 - PLATFORM_FEE)) / 10000;

address payable receiver = getPayoutReceiver();
address payable platform = PLATFORM_ADDRESS;
address payable platform = PLATFORM_TREASURY;

Address.sendValue(receiver, amount);
Address.sendValue(platform, balance - amount);
Expand All @@ -627,7 +627,7 @@ contract Artgene721Implementation is
uint256 amount = (balance * (10000 - PLATFORM_FEE)) / 10000;

address payable receiver = getPayoutReceiver();
address payable platform = PLATFORM_ADDRESS;
address payable platform = PLATFORM_TREASURY;

token.safeTransfer(receiver, amount);
token.safeTransfer(platform, balance - amount);
Expand Down
1 change: 1 addition & 0 deletions scripts/deploy-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export async function main() {

// skip waiting if running on hardhat network
if (hre.network.name == "hardhat") {
console.log("Skipping verification on hardhat network");
return;
}

Expand Down

0 comments on commit 3365402

Please sign in to comment.