hats-finance / hats-contracts

MIT License
37 stars 47 forks source link

Play with openai #525

Closed jellegerbrandy closed 1 year ago

jellegerbrandy commented 1 year ago

Summary by CodeRabbit

### New Feature:
- Introduced `HATKlerosV2Connector` contract to bridge HatsFinance and Kleros court V2.
- Added functions for dispute management and arbitration cost calculation.

### Documentation:
- Updated comment for `MAX_BOUNTY_LIMIT` in `HATVault.sol` for better clarity.

Here's to the code that weaves and connects, 🎉

Bridging gaps with respect, no less. 🌉

Hats off to Kleros, our new guest, 🎩

In the realm of smart contracts, we're simply the best! 💪🚀

github-actions[bot] commented 1 year ago

Image description CodeRabbit

Walkthrough:

This update introduces a new contract, HATKlerosV2Connector, to bridge HatsFinance and Kleros court V2. It manages disputes and rulings, interacts with the Kleros arbitrator and Hat arbitrator contracts, and calculates arbitration costs. Additionally, a comment in HATVault.sol is updated for clarity.

Changes:

File Summary
contracts/HATKlerosV2Connector.sol A new contract that acts as a connector between HatsFinance and Kleros court V2. It includes data structures, mappings, and events for managing disputes and rulings, and functions for notifying the Kleros arbitrator of a challenged decision, ruling on a dispute, and calculating the arbitration cost.
contracts/HATVault.sol The constant MAX_BOUNTY_LIMIT comment is updated to clarify that it represents the maximum bounty limit and can be up to 90%. No changes to functionality.