Skip to content

Fund Distribution Contracts v1.2.1

Latest

Choose a tag to compare

@gzeoneth gzeoneth released this 29 Oct 15:32
9d5714b

What's Changed

Breaking changes

RewardDistributor

  • The constructor takes a fallback recipient: (owner, fallbackRecipient, token, recipients, weights).
  • A payment a recipient can't accept goes to fallbackRecipient instead of the owner. The owner changes it with setFallbackRecipient.
  • OwnerRecieved is now FallbackRecieved and OwnerFailedRecieve is now FallbackFailedRecieve. Added FallbackRecipientUpdated, EmptyFallbackRecipient and InsufficientGas.
  • PER_RECIPIENT_GAS is 1,000,000 (was 100,000) and MAX_RECIPIENTS is 10 (was 64). distributeRewards reverts with InsufficientGas unless more than 1,050,000 gas remains before each native payment.
  • The storage layout changed.

New unaudited contract: WethUnwrapper

Build: contracts compile without the metadata hash, so bytecode differs from earlier releases

Full Changelog: v1.2.0...v1.2.1