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
// [AMT] - Withdraw AMT from contract | |
// tracks 'employee' withdrawal time, amount, and contract balance starting at storage[500] | |
if tx.value < 100 * block.basefee: | |
stop | |
if tx.sender == CONTRACT_CREATOR: | |
// if a withdrawal amount is set, attempt withdrawl | |
if tx.data[0] > 0: | |
WITHDRAWAL_LOG_INDEX = contract.storage[499] + 500 | |
LAST_WITHDRAWAL_TIME = contract.storage[WITHDRAWAL_LOG_INDEX] |
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
// convenience nameserver | |
// name -> address | |
// address -> name | |
// [name, newOwnerAddress (optional)] | |
// only one name allowed per address | |
// newOwnerAddress will only be applicable if the name is already claimed | |
// if the name is invalid, stop | |
if tx.data[0] < 100: |
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
// contract 1 | |
// convenience nameserver | |
// name -> address | |
// address -> name | |
// [name, newOwnerAddress (optional)] | |
// only one name allowed per address | |
// newOwnerAddress will only be applicable if the name is already claimed |
NewerOlder