Skip to content

feat: Implement vessel_manager contract #23

@0xTitan

Description

@0xTitan

Feature Request

Describe the Feature Request

Implement and tests the vessel_manager contract

Describe Solution

Main logic

shisui_base will host common functions.
File: src/core/vessel_manager.cairo

Tests

Implement the following tests :

  • add_vessel_owner_to_array
  • finalize_redemption
  • move_pending_vessel_rewards_to_active_pool
  • apply_pending_rewards
  • get_current_icr
  • redeem_close_vessel
  • calc_decayed_base_rate
  • get_current_vessel_amount
  • redistribute_debt_and_coll
  • calc_redemption_fee
  • get_entire_debt_and_coll
  • remove_stake
  • calc_redemption_rate
  • get_nominal_icr
  • remove_vessel_owner
  • close_vessel
  • get_pending_asset_reward
  • send_gas_compensation
  • close_vessel_liquidation
  • get_pending_debt_token_reward
  • update_base_reate_from_redemption
  • compute_new_stake
  • has_pending_reward
  • update_last_fee_op_time
  • decrease_vessel_coll
  • increase_vessel_coll
  • update_stake_and_total_stakes
  • decrease_vessel_debt
  • increase_vessel_debt
  • update_system_snapshots_exclude_coll_remainder
  • execute_full_redemption
  • is_valid_first_redemption_hint
  • update_vessel_reward_snapshots
  • execute_partial_redemption minutes_passed_since_last_fee_op

Requirement

None

Related Code

[VesselManager]https://github.com/Gravita-Protocol/Gravita-SmartContracts/blob/main/contracts/VesselManager.sol

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions