LogoLogo
  • 소개
  • 프로토콜 개요
  • 핵심 개념
  • 클레이스왑의 장점
  • 위험 & 보안
  • 개인정보처리방침
  • 보안 감사
  • Tokenomics
    • KSP
      • KSP Tokenomics
      • KSP 분배율 자동화
        • KSP 분배율 반영 정책
      • KSP Allocation
  • Product
    • Swap
    • Supply & Borrow
      • 자동 반환
      • 파라미터
      • Supply & Borrow 상세정책
    • V2 Pool
    • V3 Pool (Concentrated Liquidity Pool)
      • V2 to V3 마이그레이션
        • V2 to V3 마이그레이션 가이드
        • V2 to V3 마이그레이션 상세 정책
      • V3 풀 유동성 공급
        • V3 풀 유동성 공급 가이드
        • V3 풀 유동성 공급 상세 정책
      • V3 to V3 마이그레이션
        • V3 to V3 마이그레이션 가이드
        • V3 to V3 마이그레이션 상세 정책
      • V3 풀 유동성 회수
        • V3 풀 회수 가이드
        • V3 풀 유동성 회수 상세 정책
    • KSP Staking
      • Staking 정책
    • Governance
      • Governance 투표 정책
    • Pool Airdrop
    • APR & APY
      • TVL
      • Pool
      • Staking
  • Developers
    • Contract
      • V2Factory
      • V2Exchange
      • VotingKSP
      • V2Treasury
      • Distribution
      • Governor
      • Helper
      • V3Factory
      • V3Pool
      • NonfungiblePositionManager
      • NonfungibleTokenPositionDescriptor
      • V3SwapRouter
      • V3Migrator
      • V3Estimator
      • PositionMigrator
      • V3Treasury
      • V3AirdropOperator
      • UniversalRouter
    • Airdrop
      • Airdrop Operator 권한 획득
      • Airdrop 계획 진행
  • HOW-TO GUIDES
    • 클레이스왑 가이드
    • 서비스에 연결하기
      • [클립] PC에서 연결하기
      • [클립] 모바일에서 연결하기
      • [카이카스] PC에서 연결하기
    • 활용할 자산 입금하기
      • 클레이튼 자산 입금하기
      • 이더리움/BSC 자산 입금하기
      • 리플 자산 입금하기
    • 풀에 예치하기
      • [클립] PC에서 단일 예치하기
      • [부리또월렛] 모바일에서 단일 예치하기
      • [클립] PC에서 일반 페어 예치 하기
      • [클립] 모바일에서 일반 페어 예치 하기
      • [카이카스] PC에서 일반 페어 예치하기
      • [클립] PC에서 플러스 페어 예치하기
      • [공통] 활용할 자산 선택하기
    • 풀에서 출금하기
      • [클립] PC에서 단일 예치출금하기
      • [클립] PC에서 플러스 예치 출금하기
    • KSP 스테이킹 & 풀 투표하기
      • [클립] PC에서 KSP 스테이킹 하기
      • [클립] 모바일에서 KSP 스테이킹 하기
      • [카이카스] PC에서 KSP 스테이킹 하기
      • [클립] PC에서 풀 투표 하기
      • [클립] 모바일에서 풀 투표 하기
      • [카이카스] PC에서 풀 투표 하기
    • 보상 수령하기
    • FAQ
      • 클레이스왑은 어떤 서비스인가요?
      • 클레이(KLAY) & 클레이스왑(KSP)은 무엇인가요?
      • 유동성 풀(Liquidity pool)이 무엇인가요?
      • 유동성 풀의 예치방법, 특징이 무엇인가요?
      • 왜 클레이스왑에서 예치해야 하나요?
      • 획득한 보상은 어떻게 활용하나요?
  • KLAYswap
  • Orbit Bridge
  • KLAYswap git
  • Orbit Bridge git
  • KLAYswap audit report
Powered by GitBook
On this page
  • Code
  • Address
  • Events, Read-Only Functions, and State-Changing Functions
  1. Developers
  2. Contract

V2Treasury

PreviousVotingKSPNextDistribution

Last updated 11 months ago

Treasury Contract는 에어드랍 실행을 주관하는 컨트랙트입니다. 권한을 가진 Operator는 Treasury Contract를 통하여 에어드랍을 설정하고 집행할 수 있습니다.

Code

Github Link: (Will be updated after official launch)

Address

  • Cypress :

Events, Read-Only Functions, and State-Changing Functions

Events

ChangeCreationFee

event ChangeCreationFee(uint fee);
  • 생성 수수료(KSP) 변경 시 발생되는 이벤트

SetOperator

event SetOperator(address operator, bool valid);
  • Operator 설정 시 발생되는 이벤트

CreateDistribution

event CreateDistribution(address operator, address token, uint totalAmount, uint blockAmount, uint blockNumber, address[] targets, uint[] rates);
  • 에어드랍 설정 시 발생되는 이벤트

  • Parameters

RemoveDistribution

event RemoveDistribution(address operator, address token);
  • 에어드랍 해제 시 발생되는 이벤트

Deposit

event Deposit(address operator, address token, uint amount);
  • Deposit 이벤트

RefixBlockAmount

event RefixBlockAmount(address operator, address token, uint blockAmount);
  • RefixBLockAmount 이벤트

RefixDistributionRate

event RefixDistributionRate(address operator, address token, address[] targets, uint[] rates);
  • RefixDistributionRate 이벤트

Read-Only Functions

distributionCount

  • 에어드랍 계획 개수

distributionEntries

  • mapping(address => mapping(uint => address))

  • LP 별 distribution 주소

distributionOperator

  • mapping (address => address)

  • Distribution 별 Operator 주소

fee

  • Distribution 생성 수수료

owner

  • 현재 소유자

State-Changing Functions

changeCreationFee

function changeCreationFee(uint _fee) public 
  • Distribution 생성 수수료 변경 함수

  • only Owner

claim

function claim(address target) public
  • 유동성 풀 에어드랍 수령 함수

  • Parameters

    • target : 유동성 풀 주소

createKlayDistribution

function createKlayDistribution(uint blockAmount, uint blockNumber, address[] memory targets, uint[] memory rates) public payable
  • KLAY Distribution 생성 함수

  • only Operator

createTokenDistribution

function createTokenDistribution(address token, uint amount, uint blockAmount, uint blockNumber, address[] memory targets, uint[] memory rates) public
  • Distribution 생성 함수

  • only Operator

depositKlay

function depositKlay() public payable
  • KLAY 예치 함수

  • only Operator

depositToken

function depositToken(address token, uint amount) public
  • KIP7 기반 토큰 예치 함수

  • only Operator

refixBlockAmount

function refixBlockAmount(address token, uint blockAmount) public
  • Block 당 지급 수량 변경 함수

  • only Operator

refixDistributionRate

function refixDistributionRate(address token, address[] memory targets, uint[] memory rates) public
  • Block 당 지급율 변경 함수

  • only Operator

removeDistribution

function removeDistribution(address operator, address token) public
  • Distribution 제거 함수

  • Distribution.removeDistribution() 함수 호출

  • only Operator

0x6550302E095E10c50c695C7cdAAe380e181DD74E