Skip to content

Commit

Permalink
fix: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveVodrazka committed Jan 17, 2025
1 parent 6710949 commit e803a6b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
24 changes: 20 additions & 4 deletions src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ mod Governance {
treasury_calldata.append(governance_address.into());
treasury_calldata.append(0x1); // carmine amm addr
treasury_calldata.append(0x1); // zklend addr
treasury_calldata.append(0x027994c503bd8C32525FBDAf9d398bDd4e86757988C64581B055A06c5955eA49); // first guardian
treasury_calldata
.append(
0x027994c503bd8C32525FBDAf9d398bDd4e86757988C64581B055A06c5955eA49
); // first guardian
let (treasury_address, _) = deploy_syscall(
treasury_classhash, 42, treasury_calldata.span(), false
)
Expand All @@ -203,7 +206,8 @@ mod Governance {

proposals.add_custom_proposal_config(add_guardian_custom_proposal_config);

let remove_guardian_custom_proposal_config: CustomProposalConfig = CustomProposalConfig {
let remove_guardian_custom_proposal_config: CustomProposalConfig =
CustomProposalConfig {
target: treasury_address.into(),
selector: selector!("remove_guardian"),
library_call: false,
Expand All @@ -229,8 +233,20 @@ mod Governance {
let period = 21600; // 6 hours
let increments_count = 56;
let total_amount = 56000000000000000000; // 56 * 10**18 meaning 56 KONOHA tokens
vesting.add_linear_vesting_schedule(first_vest, period, increments_count, total_amount, 0x027994c503bd8C32525FBDAf9d398bDd4e86757988C64581B055A06c5955eA49.try_into().unwrap());
vesting.add_linear_vesting_schedule(first_vest, period, increments_count, total_amount, recipient);
vesting
.add_linear_vesting_schedule(
first_vest,
period,
increments_count,
total_amount,
0x027994c503bd8C32525FBDAf9d398bDd4e86757988C64581B055A06c5955eA49
.try_into()
.unwrap()
);
vesting
.add_linear_vesting_schedule(
first_vest, period, increments_count, total_amount, recipient
);

proposals
.set_default_proposal_params(
Expand Down
3 changes: 2 additions & 1 deletion src/upgrades.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ mod upgrades {
.read((prop_id_, 0));
let mut calldata: Array<felt252> = ArrayTrait::new();
let mut i: u32 = 1;
while (calldata_len != 0) {
while(calldata_len != 0)
{
calldata.append(proposals_comp.custom_proposal_payload.read((prop_id_, i)));
i += 1;
calldata_len -= 1;
Expand Down

0 comments on commit e803a6b

Please sign in to comment.