flashbots / flashbots/flashtestations

Abstract the TEE policy verification logic into a library useable by external contracts

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
v2
Dominant language
Solidity
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

# Problem

[Recently in the FlashblockNumber contract](https://github.com/Uniswap/flashblocks_number_contract/pull/6) we had to copy-paste sections of the BlockBuilderPolicy's caching logic into the FlashblockNumber contract in order for it to be able to outsource verifying the builder role to the BlockBuilderPolicy. This was error-prone and caused duplicative code

# Solution

Refactor this caching logic into a Solidity library that can be easily re-used by external contracts. This will make it so that a policy contract can outsource its auth logic to another policy with as little code duplication as possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.