Skip to content

Commit

Permalink
A0-3302: bridge fees v2 (#26)
Browse files Browse the repository at this point in the history
* A0-3302: fees and bridge tokenomics

* wip : collect rewards

* per token rewards

* check amount

* payout

* payout requests

* treemap

* distribute rewards

* helper for collecting multiple

* keep the counter

* helper

* comments

* a0-3302-fees-v2 wip

* comment

* replace Balance with u128

* increase precission

* rename

* moch oracle calls

* refactor to work with quorum eq 1

* unwrap or default

* no-op option in payout

* note

* a message

* cleanup

* fix tests

* fix compilation

* fix tests

* wip : tests

* wip : test fixes

* wip: test fees

* add tests

* query rewards

* commission tests

* cleanup

* cleanup

* docstrings

* cleanup

* cleanup

* estimate gas before deployment (#32)
  • Loading branch information
fbielejec authored Nov 29, 2023
1 parent 86f2fb7 commit 2e7d6e2
Show file tree
Hide file tree
Showing 9 changed files with 1,252 additions and 240 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ test-ink-e2e: # Run ink e2e tests
test-ink-e2e: bootstrap-azero
export CONTRACTS_NODE="../../scripts/azero_contracts_node.sh" && \
cd azero/contracts/tests && \
cargo test -- --test-threads=1
cargo test e2e -- --test-threads=1 --nocapture

.PHONY: test-ink
test-ink: # Run ink tests
Expand Down
3 changes: 3 additions & 0 deletions azero/contracts/membrane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ path = "lib.rs"
default = ["std"]
std = ["ink/std", "scale/std", "scale-info/std", "psp22/std", "psp22-traits/std"]
ink-as-dependency = []

[profile.release]
overflow-checks = false
Loading

0 comments on commit 2e7d6e2

Please sign in to comment.