Carregando o restante desta comparação.

Donkey Update Diff

Criado O diff nunca expira
58 remoções
520 linhas
77 adições
540 linhas
# Palkeoramix decompiler.
# Palkeoramix decompiler.


const unknown3ac4202f = 1
const unknown3ac4202f = 1
const getCash = (eth.balance(this.address) - call.value)
const getCash = (eth.balance(this.address) - call.value)


def storage:
def storage:
stor0 is uint8 at storage 0
stor0 is uint8 at storage 0
stor0 is uint8 at storage 0 offset 8
stor0 is uint8 at storage 0 offset 8
stor0 is uint8 at storage 0 offset 16
stor0 is uint8 at storage 0 offset 16
controllerAddress is addr at storage 0 offset 24
controllerAddress is addr at storage 0 offset 24
stor0 is uint256 at storage 0 offset 8
stor0 is uint256 at storage 0 offset 8
interestRateModelAddress is addr at storage 1
interestRateModelAddress is addr at storage 1
unknownd90a730e is uint256 at storage 2
unknownd90a730e is uint256 at storage 2
name is array of uint256 at storage 3
name is array of uint256 at storage 3
symbol is array of uint256 at storage 4
symbol is array of uint256 at storage 4
decimals is uint8 at storage 5
decimals is uint8 at storage 5
stor5 is addr at storage 5
stor5 is addr at storage 5
adminAddress is addr at storage 5 offset 8
adminAddress is addr at storage 5 offset 8
stor5 is uint256 at storage 5 offset 8
stor5 is uint256 at storage 5 offset 8
totalBorrows is uint256 at storage 6
totalBorrows is uint256 at storage 6
totalSupply is uint256 at storage 7
totalSupply is uint256 at storage 7
accrualBlockNumber is uint256 at storage 8
accrualBlockNumber is uint256 at storage 8
borrowIndex is uint256 at storage 9
borrowIndex is uint256 at storage 9
totalReserves is uint256 at storage 10
totalReserves is uint256 at storage 10
reserveFactorMantissa is uint256 at storage 11
reserveFactorMantissa is uint256 at storage 11
stor12 is uint256 at storage 12
stor12 is uint256 at storage 12
balanceOf is mapping of uint256 at storage 13
balanceOf is mapping of uint256 at storage 13
allowance is mapping of uint256 at storage 14
allowance is mapping of uint256 at storage 14
unknown4dc3487d is mapping of uint256 at storage 15
unknown4dc3487d is mapping of uint256 at storage 15
unknown954f92a3 is mapping of uint256 at storage 16
unknown954f92a3 is mapping of uint256 at storage 16
stor17 is mapping of struct at storage 17
stor17 is mapping of struct at storage 17


def name(): # not payable
def name(): # not payable
return name[0 len name.length]
return name[0 len name.length]


def reserveFactorMantissa(): # not payable
def reserveFactorMantissa(): # not payable
return reserveFactorMantissa
return reserveFactorMantissa


def totalSupply(): # not payable
def totalSupply(): # not payable
return totalSupply
return totalSupply


def decimals(): # not payable
def decimals(): # not payable
return decimals
return decimals


def totalBorrows(): # not payable
def totalBorrows(): # not payable
return totalBorrows
return totalBorrows


def unknown4dc3487d(addr _param1): # not payable
def unknown4dc3487d(addr _param1): # not payable
require calldata.size - 4 >= 32
require calldata.size - 4 >= 32
return unknown4dc3487d[_param1]
return unknown4dc3487d[_param1]


def accrualBlockNumber(): # not payable
def accrualBlockNumber(): # not payable
return accrualBlockNumber
return accrualBlockNumber


def balanceOf(address _owner): # not payable
def balanceOf(address _owner): # not payable
require calldata.size - 4 >= 32
require calldata.size - 4 >= 32
return balanceOf[addr(_owner)]
return balanceOf[addr(_owner)]


def totalReserves(): # not payable
def totalReserves(): # not payable
return totalReserves
return totalReserves


def unknown954f92a3(addr _param1): # not payable
def unknown954f92a3(addr _param1): # not payable
require calldata.size - 4 >= 32
require calldata.size - 4 >= 32
return unknown954f92a3[_param1]
return unknown954f92a3[_param1]


def symbol(): # not payable
def symbol(): # not payable
return symbol[0 len symbol.length]
return symbol[0 len symbol.length]


def borrowIndex(): # not payable
def borrowIndex(): # not payable
return borrowIndex
return borrowIndex


def unknownd90a730e(): # not payable
def unknownd90a730e(): # not payable
return unknownd90a730e
return unknownd90a730e


def allowance(address _owner, address _spender): # not payable
def allowance(address _owner, address _spender): # not payable
require calldata.size - 4 >= 64
require calldata.size - 4 >= 64
return allowance[addr(_owner)][addr(_spender)]
return allowance[addr(_owner)][addr(_spender)]


def interestRateModel(): # not payable
def interestRateModel(): # not payable
return interestRateModelAddress
return interestRateModelAddress


def controller(): # not payable
def controller(): # not payable
return controllerAddress
return controllerAddress


def admin(): # not payable
def admin(): # not payable
return adminAddress
return adminAddress


#
#
# Regular functions
# Regular functions
#
#


def setController(address _c): # not payable
def setController(address _c): # not payable
require calldata.size - 4 >= 32
require calldata.size - 4 >= 32
if adminAddress != caller:
if adminAddress != caller:
revert with 0, 'E1'
revert with 0, 'E1'
controllerAddress = _c
controllerAddress = _c
log 0xe253457d: _c
log 0xe253457d: _c
return 0
return 0


def setAdmin(address _admin): # not payable
def setAdmin(address _admin): # not payable