Blockwell

Legends

ERC20

This contract is an ERC20 token.

Name Legends
Symbol LGD
Decimals 8
Total Supply 30,000,000 LGD

About link

MORE aims to offer the latest innovation in nightlife, live entertainment, and membership. MORE members can reportedly benefit from special rates at hotels, private parties, personal training, sporting events, and access to a fleet of exotic cars. MORE membership requires the purchase of 6000 MORE coins. MORE coins trade on various cryptocurrency exchanges. Coins (and membership) may be sold at any time without restriction. MORE members have access to reciprocal clubs around the country in addition to home clubs. MORE members may also spend cryptocurrency on various club services.

Stats

Public Functions 23
Event Types 4
Code Size 10,392 bytes

Approval Event

Parameters help
address help
address help
uint help

Dilution Event

Parameters help
address help
uint help

LedgerUpdated Event

Parameters help
address help
address help

Transfer Event

Parameters help
address help
address help
uint help

Functions Expand All Collapse All

changeOwner keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function changeOwner(address _addr) onlyOwner {
        if (_addr == 0x0) throw;
        owner = _addr;
    }

unMutex keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function unMutex() onlyOwner {
        locked = false;
    }

changeClub keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function changeClub(address _addr) onlyOwner {
        if (_addr == 0x0) throw;

        club = _addr;
    }

changePrice keyboard_arrow_up

Parameters help

Name Type
_num
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function changePrice(uint _num) onlyOwner {
        price = _num;
    }

safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function safeAdd(uint a, uint b) returns (uint) {
        if ((a + b) < a) throw;
        return (a + b);
    }

changeLedger keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function changeLedger(address _addr) onlyOwner {
        if (_addr == 0x0) throw;

        LedgerUpdated(msg.sender, _addr);
        ledger = Ledger(_addr);
    }

changeRental keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function changeRental(address _addr) onlyOwner {
        if (_addr == 0x0) throw;
        rentalContract = Rental(_addr);
    }

changeTimes keyboard_arrow_up

Parameters help

Name Type
_rollOver
uint8 help
_start
uint8 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function changeTimes(uint8 _rollOver, uint8 _start) onlyOwner {
        rollOverTime = _rollOver;
        startTime = _start;
    }

lock keyboard_arrow_up

Parameters help

Name Type
_seizeAddr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function lock(address _seizeAddr) onlyOwner mutexed {
        uint myBalance = ledger.balanceOf(_seizeAddr);

        lockedSupply += myBalance;
        ledger.setBalance(_seizeAddr, 0);
    }

dilute keyboard_arrow_up

Parameters help

Name Type
_destAddr
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function dilute(address _destAddr, uint amount) onlyOwner {
        if (amount > lockedSupply) throw;

        Dilution(_destAddr, amount);

        lockedSupply -= amount;

        uint curBalance = ledger.balanceOf(_destAddr);
        curBalance = safeAdd(amount, curBalance);
        ledger.setBalance(_destAddr, curBalance);
    }

completeCrowdsale keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function completeCrowdsale() onlyOwner {
        // Lock unsold tokens
        // allow transfers for arbitrary owners
        transfersOn = true;
        lock(owner);
    }

pauseTransfers keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function pauseTransfers() onlyOwner {
        transfersOn = false;
    }

resumeTransfers keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function resumeTransfers() onlyOwner {
        transfersOn = true;
    }

rentOut keyboard_arrow_up

Parameters help

Name Type
num
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function rentOut(uint num) {
        if (ledger.balanceOf(msg.sender) < num) throw;
        rentalContract.offer(msg.sender, num);
        ledger.tokenTransfer(msg.sender, rentalContract, num);
    }

claimUnrented keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function claimUnrented() {  
        uint amount = rentalContract.claimBalance(msg.sender); // this should reduce sender's claimableBalance to 0

        ledger.tokenTransfer(rentalContract, msg.sender, amount);
    }

burn keyboard_arrow_up

Parameters help

Name Type
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burn(uint _amount) {
        uint balance = ledger.balanceOf(msg.sender);
        if (_amount > balance) throw;

        ledger.setBalance(msg.sender, balance - _amount);
    }

checkIn keyboard_arrow_up

Parameters help

Name Type
_numCheckins
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function checkIn(uint _numCheckins) returns(bool) {
        int needed = int(price * ONE* _numCheckins);
        if (int(ledger.balanceOf(msg.sender)) > needed) {
            ledger.changeUsed(msg.sender, needed);
            return true;
        }
        return false;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
    function totalSupply() constant returns(uint) {
        return ledger.totalSupply();
    }

transfer keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address _to, uint _amount) returns(bool) {
        if (!transfersOn && msg.sender != owner) return false;
        if (! ledger.tokenTransfer(msg.sender, _to, _amount)) { return false; }

        Transfer(msg.sender, _to, _amount);
        return true;
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferFrom(address _from, address _to, uint _amount) returns (bool) {
        if (!transfersOn && msg.sender != owner) return false;
        if (! ledger.tokenTransferFrom(msg.sender, _from, _to, _amount) ) { return false;}

        Transfer(msg.sender, _to, _amount);
        return true;
    }

allowance keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function allowance(address _from, address _to) constant returns(uint) {
        return ledger.allowance(_from, _to); 
    }

approve keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address _spender, uint _value) returns (bool) {
        if ( ledger.tokenApprove(msg.sender, _spender, _value) ) {
            Approval(msg.sender, _spender, _value);
            return true;
        }
        return false;
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function balanceOf(address _addr) constant returns(uint) {
        return ledger.balanceOf(_addr);
    }