Skip to content

Commit

Permalink
add setMintingPrice()
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Aug 31, 2022
1 parent 2b90203 commit 4775e94
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/SoulFactory.sol
Expand Up @@ -86,6 +86,13 @@ contract SoulFactory is Pausable, AccessControl {
soulboundIdentity = _soulboundIdentity;
}

/// @notice Sets the price of the minting in stable coin
/// @dev The caller must have the admin role to call this function
/// @param _mintingPrice New price of the minting in stable coin
function setMintingPrice(uint256 _mintingPrice) external onlyRole(DEFAULT_ADMIN_ROLE) {
mintingPrice = _mintingPrice;
}

/// @notice Set the reserve wallet
/// @dev Let change the reserve walled. It can be triggered by an authorized account.
/// @param _reserveWallet New reserve wallet
Expand Down
16 changes: 16 additions & 0 deletions docs/SoulFactory.md
Expand Up @@ -235,6 +235,22 @@ Set the reserve wallet
|---|---|---|
| _reserveWallet | address | New reserve wallet |

### setSoulboundIdentity

```solidity
function setSoulboundIdentity(contract SoulboundIdentity _soulboundIdentity) external nonpayable
```

Sets the SoulboundIdentity contract address linked to this factory

*The caller must have the admin role to call this function*

#### Parameters

| Name | Type | Description |
|---|---|---|
| _soulboundIdentity | contract SoulboundIdentity | New SoulboundIdentity contract address |

### soulboundIdentity

```solidity
Expand Down

0 comments on commit 4775e94

Please sign in to comment.