Contract Overview
Balance:
0 AVAX

AVAX Value:
$0.00 (@ $29.61/AVAX)

Token:
More Info
Tag:
Not Available. Update?

Contract Creators:
Contract Source Code Verified (Exact Match)
Contract Name:
Distributor

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Created At:
Sat, 20 Apr 2024 23:57:52 GMT
Distributor.sol
contracts
Distributor.sol


Contract ABI
[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "minPeriod",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "minDistribution",
        "type": "uint256"
      }
    ],
    "name": "DistributionCriteriaUpdate",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "NewFundDeposit",
    "type": "event"
  },
  {
    "inputs": [],
    "name": "claimReflection",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "deposit",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "dividendsPerShare",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "dividendsPerShareAccuracyFactor",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "shareholder",
        "type": "address"
      }
    ],
    "name": "getUnpaidEarnings",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "minDistribution",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "minPeriod",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "gas",
        "type": "uint256"
      }
    ],
    "name": "process",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_minPeriod",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_minDistribution",
        "type": "uint256"
      }
    ],
    "name": "setDistributionCriteria",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "shareholder",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "setShare",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "shareholderClaims",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "shareholderIndexes",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "shares",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "totalExcluded",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "totalRealised",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalDistributed",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalDividends",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalShares",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "stateMutability": "payable",
    "type": "receive"
  }
]


Contract Creation Code
6080604052600180546001600160a01b03191673f261ebd3e99deaee37f4e1e15d7c05c9476e6d4e179055610e10600a55683635c9adc5dea00000600b5534801561004957600080fd5b50600080546001600160a01b03191633179055610c0b8061006b6000396000f3fe6080604052600436106100f75760003560e01c8063997664d71161008a578063e2d2e21911610059578063e2d2e219146102c3578063efca2eed146102d9578063ffb2c479146102ef578063ffd49c841461030f57600080fd5b8063997664d714610209578063b6b55f251461021f578063ce7c2ac21461023f578063d4fda1f21461029657600080fd5b806337563293116100c6578063375632931461019b5780633a98ef39146101b05780634fab0ae8146101c657806366817df5146101dc57600080fd5b806311ce023d1461010357806314b6ca961461013957806328fd31981461015b5780632d48e8961461017b57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b506101266ec097ce7bc90715b34b9f100000000081565b6040519081526020015b60405180910390f35b34801561014557600080fd5b50610159610154366004610a52565b610325565b005b34801561016757600080fd5b50610126610176366004610a7c565b6104b9565b34801561018757600080fd5b50610159610196366004610a9e565b610544565b3480156101a757600080fd5b506101596105b5565b3480156101bc57600080fd5b5061012660065481565b3480156101d257600080fd5b50610126600b5481565b3480156101e857600080fd5b506101266101f7366004610a7c565b60046020526000908152604090205481565b34801561021557600080fd5b5061012660075481565b34801561022b57600080fd5b5061015961023a366004610ac0565b6105ce565b34801561024b57600080fd5b5061027b61025a366004610a7c565b60056020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610130565b3480156102a257600080fd5b506101266102b1366004610a7c565b60036020526000908152604090205481565b3480156102cf57600080fd5b5061012660095481565b3480156102e557600080fd5b5061012660085481565b3480156102fb57600080fd5b5061015961030a366004610ac0565b610675565b34801561031b57600080fd5b50610126600a5481565b6000546001600160a01b031633146103585760405162461bcd60e51b815260040161034f90610ad9565b60405180910390fd5b6001600160a01b0382166000908152600560205260409020541561037f5761037f8261078c565b6000811180156103a557506001600160a01b038216600090815260056020526040902054155b1561040b57600280546001600160a01b0384166000818152600360205260408120839055600183018455929092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b031916909117905561043e565b8015801561043057506001600160a01b03821660009081526005602052604090205415155b1561043e5761043e826108ac565b6001600160a01b038216600090815260056020526040902054600654829161046591610b0f565b61046f9190610b22565b6006556001600160a01b0382166000908152600560205260409020819055610496816109c1565b6001600160a01b0390921660009081526005602052604090206001019190915550565b6001600160a01b03811660009081526005602052604081205481036104e057506000919050565b6001600160a01b038216600090815260056020526040812054610502906109c1565b6001600160a01b038416600090815260056020526040902060010154909150808211610532575060009392505050565b61053c8183610b0f565b949350505050565b6000546001600160a01b0316331461056e5760405162461bcd60e51b815260040161034f90610ad9565b600a829055600b81905560408051838152602081018390527f7d38de579bb682aa05ace7e32d15f88df69a3a53f6f89fcd0236f93fcc7e6362910160405180910390a15050565b6105be336109f1565b156105cc576105cc3361078c565b565b6000546001600160a01b031633146105f85760405162461bcd60e51b815260040161034f90610ad9565b806007546106069190610b22565b600755600654610625826ec097ce7bc90715b34b9f1000000000610b35565b61062f9190610b4c565b60095461063c9190610b22565b6009556040518181527f6a464fbfd2428ef7edab93930e64042148498d37c64c5122c4ab37843d6a3d119060200160405180910390a150565b6000546001600160a01b0316331461069f5760405162461bcd60e51b815260040161034f90610ad9565b60025460008190036106af575050565b6000805a905060005b84831080156106c657508381105b156107855783600c54106106da576000600c555b61070c6002600c54815481106106f2576106f2610b6e565b6000918252602090912001546001600160a01b03166109f1565b15610743576107436002600c548154811061072957610729610b6e565b6000918252602090912001546001600160a01b031661078c565b5a61074e8385610b22565b6107589190610b0f565b92505a600c8054919350600061076d83610b84565b9190505550808061077d90610b84565b9150506106b8565b5050505050565b6001600160a01b03811660009081526005602052604081205490036107ae5750565b60006107b9826104b9565b905080156108a85760015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610814573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108389190610b9d565b50806008546108479190610b22565b6008556001600160a01b0382166000908152600460209081526040808320429055600590915290206002015461087e908290610b22565b6001600160a01b0383166000908152600560205260409020600281019190915554610496906109c1565b5050565b600280546108bc90600190610b0f565b815481106108cc576108cc610b6e565b60009182526020808320909101546001600160a01b038481168452600390925260409092205460028054929093169291811061090a5761090a610b6e565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905591831681526003918290526040812054600280549193929161095690600190610b0f565b8154811061096657610966610b6e565b60009182526020808320909101546001600160a01b03168352820192909252604001902055600280548061099c5761099c610bbf565b600082815260209020810160001990810180546001600160a01b031916905501905550565b60006ec097ce7bc90715b34b9f1000000000600954836109e19190610b35565b6109eb9190610b4c565b92915050565b600a546001600160a01b03821660009081526004602052604081205490914291610a1b9190610b22565b1080156109eb5750600b54610a2f836104b9565b1192915050565b80356001600160a01b0381168114610a4d57600080fd5b919050565b60008060408385031215610a6557600080fd5b610a6e83610a36565b946020939093013593505050565b600060208284031215610a8e57600080fd5b610a9782610a36565b9392505050565b60008060408385031215610ab157600080fd5b50508035926020909101359150565b600060208284031215610ad257600080fd5b5035919050565b60208082526006908201526510aa37b5b2b760d11b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156109eb576109eb610af9565b808201808211156109eb576109eb610af9565b80820281158282048414176109eb576109eb610af9565b600082610b6957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201610b9657610b96610af9565b5060010190565b600060208284031215610baf57600080fd5b81518015158114610a9757600080fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220cc45311af6ee8a63139d75f24df07bc98e8531a5e01ea31c45ff634b7f3268eb64736f6c63430008140033