-
Notifications
You must be signed in to change notification settings - Fork 152
change the type of proxy deployment for USDTieredSTO #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
interface IBoot { | ||
|
||
/** | ||
* @notice This function returns the signature of configure function | ||
* @return bytes4 Configure function signature | ||
*/ | ||
function getInitFunction() external pure returns(bytes4); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
/** | ||
* @title Storage layout for the ISTO contract | ||
*/ | ||
contract ISTOStorage { | ||
|
||
mapping (uint8 => bool) public fundRaiseTypes; | ||
mapping (uint8 => uint256) public fundsRaised; | ||
|
||
// Start time of the STO | ||
uint256 public startTime; | ||
// End time of the STO | ||
uint256 public endTime; | ||
// Time STO was paused | ||
uint256 public pausedTime; | ||
// Number of individual investors | ||
uint256 public investorCount; | ||
// Address where ETH & POLY funds are delivered | ||
address public wallet; | ||
// Final amount of tokens sold | ||
uint256 public totalTokensSold; | ||
|
||
} |
33 changes: 0 additions & 33 deletions
33
contracts/modules/STO/ProxyFactory/USDTieredSTOProxyFactory.sol
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "../../interfaces/IERC20.sol"; | ||
|
||
/** | ||
* @title Contract used to store layout for the USDTieredSTO storage | ||
*/ | ||
contract USDTieredSTOStorage { | ||
|
||
///////////// | ||
// Storage // | ||
///////////// | ||
struct Tier { | ||
// How many token units a buyer gets per USD in this tier (multiplied by 10**18) | ||
uint256 rate; | ||
|
||
// How many token units a buyer gets per USD in this tier (multiplied by 10**18) when investing in POLY up to tokensDiscountPoly | ||
uint256 rateDiscountPoly; | ||
|
||
// How many tokens are available in this tier (relative to totalSupply) | ||
uint256 tokenTotal; | ||
|
||
// How many token units are available in this tier (relative to totalSupply) at the ratePerTierDiscountPoly rate | ||
uint256 tokensDiscountPoly; | ||
|
||
// How many tokens have been minted in this tier (relative to totalSupply) | ||
uint256 mintedTotal; | ||
|
||
// How many tokens have been minted in this tier (relative to totalSupply) for each fund raise type | ||
mapping (uint8 => uint256) minted; | ||
|
||
// How many tokens have been minted in this tier (relative to totalSupply) at discounted POLY rate | ||
uint256 mintedDiscountPoly; | ||
} | ||
|
||
mapping (bytes32 => mapping (bytes32 => string)) oracleKeys; | ||
|
||
IERC20 public usdToken; | ||
|
||
// Determine whether users can invest on behalf of a beneficiary | ||
bool public allowBeneficialInvestments = false; | ||
|
||
// Whether or not the STO has been finalized | ||
bool public isFinalized; | ||
|
||
// Address where ETH, POLY & DAI funds are delivered | ||
address public wallet; | ||
|
||
// Address of issuer reserve wallet for unsold tokens | ||
address public reserveWallet; | ||
|
||
// Current tier | ||
uint256 public currentTier; | ||
|
||
// Amount of USD funds raised | ||
uint256 public fundsRaisedUSD; | ||
|
||
// Amount in USD invested by each address | ||
mapping (address => uint256) public investorInvestedUSD; | ||
|
||
// Amount in fund raise type invested by each investor | ||
mapping (address => mapping (uint8 => uint256)) public investorInvested; | ||
|
||
// List of accredited investors | ||
mapping (address => bool) public accredited; | ||
|
||
// Default limit in USD for non-accredited investors multiplied by 10**18 | ||
uint256 public nonAccreditedLimitUSD; | ||
|
||
// Overrides for default limit in USD for non-accredited investors multiplied by 10**18 | ||
mapping (address => uint256) public nonAccreditedLimitUSDOverride; | ||
|
||
// Minimum investable amount in USD | ||
uint256 public minimumInvestmentUSD; | ||
|
||
// Final amount of tokens returned to issuer | ||
uint256 public finalAmountReturned; | ||
|
||
// Array of Tiers | ||
Tier[] public tiers; | ||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.