Skip to content

Commit

Permalink
next fork of fortuna on preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Jul 22, 2024
1 parent c6cf4c3 commit e22f566
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ requirements = []
source = "github"

[etags]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1721090320, nanos_since_epoch = 123851000 }, "a8294651f1577c671d580c99c9bc5445ef1fd44e4aa3dde550434a4cbc8d50b6"]
"aiken-lang/fuzz@main" = [{ secs_since_epoch = 1721233319, nanos_since_epoch = 424723000 }, "a8294651f1577c671d580c99c9bc5445ef1fd44e4aa3dde550434a4cbc8d50b6"]
2 changes: 1 addition & 1 deletion genesis/previewV2.json

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions validators/tunav2.ak
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,16 @@ validator(fortuna_v1_hash: Data, fork_script_hash: Data) {
|> list.all(
fn(pair) {
let tuna_and_master_tokens_burned =
fn(name) {
builtin.slice_bytearray(0, big_tuna_length, name) == fortuna.token_name || builtin.slice_bytearray(
0,
counter_length,
name,
) == fortunav2.counter_prefix
}
fn(name) { or {
and {
builtin.slice_bytearray(0, big_tuna_length, name) == fortuna.token_name,
or {
builtin.length_of_bytearray(name) == 4,
builtin.length_of_bytearray(name) == 32,
},
},
builtin.slice_bytearray(0, counter_length, name) == fortunav2.counter_prefix,
} }

let Pair(name, quantity) = pair
quantity < 0 && !tuna_and_master_tokens_burned(name)
Expand Down

0 comments on commit e22f566

Please sign in to comment.