Skip to content

Latest commit

 

History

History
263 lines (244 loc) · 9.16 KB

LoanTokenLogicStorage.md

File metadata and controls

263 lines (244 loc) · 9.16 KB

LoanTokenLogicStorage.sol

View Source: contracts/connectors/loantoken/LoanTokenLogicStorage.sol

↗ Extends: AdvancedToken ↘ Derived Contracts: LoanTokenLogicStandard, LoanTokenSettingsLowerAdmin

LoanTokenLogicStorage contract

Contract Members

Constants & Variables

//public members
address public sovrynContractAddress;
address public wrbtcTokenAddress;
address public target_;
address public admin;
address public earlyAccessToken;
address public pauser;
address public liquidityMiningAddress;
uint256 public constant VERSION;
uint256 public constant TINY_AMOUNT;

//internal members
address internal constant arbitraryCaller;
bytes32 internal constant iToken_ProfitSoFar;

Functions


stringToBytes32

function stringToBytes32(string source) public pure
returns(result bytes32)

Arguments

Name Type Description
source string
Source Code
function stringToBytes32(string memory source) public pure returns (bytes32 result) {
        bytes memory tempEmptyStringTest = bytes(source);
        if (tempEmptyStringTest.length == 0) {
            return 0x0;
        }

        assembly {
            result := mload(add(source, 32))
        }
    }

Contracts