Skip to content

hook: GBPF — Synthetic GBP stablecoin hook on Base #658

@anon-dev789

Description

@anon-dev789

Chain

base

Hook Address

0x5613c279E8Db9815DBD0CdFbd10515EAbD350088

Hook Name

GBPFv4Hook

Description

Oracle-priced synthetic GBP stablecoin. beforeSwap returns full delta; V4 Quoter simulatable (fork test passes). Contracts immutable,
verified on Sourcify.

Hook means that any swap actually calls mint() or redeem(). The swap rate is a function of the USD/GBP rate and a curve that rewards minting/redeeming to balance sUSDS reserves.

Compiler run successful!

Ran 2 tests for test/fork/Quoter.fork.t.sol:QuoterForkTest
[PASS] test_quoter_simulates_mint_usds_to_gbpf() (gas: 281411)
Logs:
GBPF out for 100 USDS: 74.793033265057995644
gas estimate: 262561

[PASS] test_quoter_simulates_redeem_gbpf_to_usds() (gas: 382071)
Logs:
USDS out for 0.5 GBPF: 0.665840261793582991
gas estimate: 363145

Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 6.57s (4.91s CPU time)

Ran 1 test suite in 6.59s (6.57s CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests)

Deployer Address

0x398CA93b76806D3517DD3520F1aE09620Fcb5c24

Audit URL

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions